You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2021/10/06 22:27:26 UTC

[GitHub] [mynewt-core] danielkucera opened a new issue #2691: Building for nRF52810

danielkucera opened a new issue #2691:
URL: https://github.com/apache/mynewt-core/issues/2691


   Hi,
   
   I'm trying to compile for nRF52810 but failing. I cannot find any example so I am trying to bend 52832 example.
   I have found this patch from @alvarop : https://github.com/alvarop/mynewt-core/commit/9fe0f2b96322a48824418bc005db42f1c52d0a22#diff-5f33e3c2dbee3aecfa37c7f194a190d72331e43ecddc3f2a6d7fac768408e997
   But I am getting hardfault.
   
   This is part of my syscfg.yml:
   ```
   syscfg.defs:
       BSP_NRF52:
           description: 'Set to indicate that BSP has NRF52'
           value: 1
       ENC_FLASH_DEV:
           description: 'Encrypting flash driver over interal flash for testing'
           value: 0
       RAM_RESIDENT:
           description: 'Compile app to be loaded to RAM'
           value: 0
   
   syscfg.vals:
       # Enable nRF52832 MCU
       MCU_TARGET: nRF52810
   
       UART_0_PIN_TX: 14
       UART_0_PIN_RX: 15
       UART_0: 1
   ...
   ```
   When debugging, I can see that here https://github.com/apache/mynewt-core/blob/master/hw/mcu/nordic/nrf52xxx/src/system_nrf52.c the code for NRF52 is executed instead of NRF52810_XXAA.
   How do I undefine `NRF52` and define `NRF52810_XXAA` ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mynewt-core] danielkucera commented on issue #2691: Building for nRF52810

Posted by GitBox <gi...@apache.org>.
danielkucera commented on issue #2691:
URL: https://github.com/apache/mynewt-core/issues/2691#issuecomment-937282419






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mynewt-core] danielkucera closed issue #2691: Building for nRF52810

Posted by GitBox <gi...@apache.org>.
danielkucera closed issue #2691:
URL: https://github.com/apache/mynewt-core/issues/2691


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mynewt-core] alvarop commented on issue #2691: Building for nRF52810

Posted by GitBox <gi...@apache.org>.
alvarop commented on issue #2691:
URL: https://github.com/apache/mynewt-core/issues/2691#issuecomment-937289619


   https://github.com/alvarop/ostur/tree/master/fw/2.0/hw/bsp/nrf52811_usb
   
   Should be similar enough to the nrf52810


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mynewt-core] danielkucera commented on issue #2691: Building for nRF52810

Posted by GitBox <gi...@apache.org>.
danielkucera commented on issue #2691:
URL: https://github.com/apache/mynewt-core/issues/2691#issuecomment-937306252


   Perfect, thank you, it works now! This was all that was needed (changes in comparison to 52832):
   ```
   +++ b/hw/bsp/e73-tbx/pkg.yml
   @@ -26,7 +26,7 @@ pkg.keywords:
        - nrf52
    
    pkg.cflags:
   -    - '-DNRF52'
   +    - '-DNRF52810_XXAA'
    
    pkg.cflags.HARDFLOAT:
        - -mfloat-abi=hard -mfpu=fpv4-sp-d16
   diff --git a/hw/bsp/e73-tbx/split-e73-tbx.ld b/hw/bsp/e73-tbx/split-e73-tbx.ld
   index 696b6c4..e4f63ed 100644
   --- a/hw/bsp/e73-tbx/split-e73-tbx.ld
   +++ b/hw/bsp/e73-tbx/split-e73-tbx.ld
   @@ -20,7 +20,7 @@ OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
    MEMORY
    {
      FLASH (rx) : ORIGIN =  0x00042000, LENGTH = 0x3a000
   -  RAM  (rwx) : ORIGIN =  0x20000000, LENGTH = 0x10000
   +  RAM  (rwx) : ORIGIN =  0x20000000, LENGTH = 0x6000
    }
    
    /* Linker script to place sections and symbol values. Should be used together
   diff --git a/hw/bsp/e73-tbx/syscfg.yml b/hw/bsp/e73-tbx/syscfg.yml
   index 12ec223..79c1ab3 100644
   --- a/hw/bsp/e73-tbx/syscfg.yml
   +++ b/hw/bsp/e73-tbx/syscfg.yml
   @@ -29,7 +29,7 @@ syscfg.defs:
    
    syscfg.vals:
        # Enable nRF52832 MCU
   -    MCU_TARGET: nRF52832
   +    MCU_TARGET: nRF52810
    
        UART_0_PIN_TX: 14
        UART_0_PIN_RX: 15
   ```
   The middle one repeats several times in multiple linker scripts.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mynewt-core] utzig commented on issue #2691: Building for nRF52810

Posted by GitBox <gi...@apache.org>.
utzig commented on issue #2691:
URL: https://github.com/apache/mynewt-core/issues/2691#issuecomment-937268074


   > How do I undefine `NRF52` and define `NRF52810_XXAA` ?
   
   In your BSP, eg like this: https://github.com/apache/mynewt-core/blob/master/hw/bsp/nordic_pca10056/pkg.yml#L32


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mynewt-core] alvarop commented on issue #2691: Building for nRF52810

Posted by GitBox <gi...@apache.org>.
alvarop commented on issue #2691:
URL: https://github.com/apache/mynewt-core/issues/2691#issuecomment-937289619


   https://github.com/alvarop/ostur/tree/master/fw/2.0/hw/bsp/nrf52811_usb
   
   Should be similar enough to the nrf52810


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mynewt-core] danielkucera closed issue #2691: Building for nRF52810

Posted by GitBox <gi...@apache.org>.
danielkucera closed issue #2691:
URL: https://github.com/apache/mynewt-core/issues/2691


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mynewt-core] danielkucera commented on issue #2691: Building for nRF52810

Posted by GitBox <gi...@apache.org>.
danielkucera commented on issue #2691:
URL: https://github.com/apache/mynewt-core/issues/2691#issuecomment-937282419


   Yes, thank you, that is an improvement. But I am still getting hardfault. An example bsp would be best. Otherwise I will spend weeks on this with my skills :disappointed: 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mynewt-core] utzig commented on issue #2691: Building for nRF52810

Posted by GitBox <gi...@apache.org>.
utzig commented on issue #2691:
URL: https://github.com/apache/mynewt-core/issues/2691#issuecomment-937268074


   > How do I undefine `NRF52` and define `NRF52810_XXAA` ?
   
   In your BSP, eg like this: https://github.com/apache/mynewt-core/blob/master/hw/bsp/nordic_pca10056/pkg.yml#L32


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org