Error 4 nrf_sdh_ble_enable on release only

I seem to get error 4 on nrf_sdh_ble_enable when building and running the application in release mode.

Everything works perfectly when building in debug mode and I've checked all of the forum posts about RAM start and size it's the same between debug and release but when building the release, I get that error and nrf52 crashes.

Have anyone seen this issue before and how do I resolve it?

Parents
  • Hello Jorgen,

    Thank you for your quick reply.

    Please find below 2 screenshots of both release and debug which shows identical RAM_START and RAM_SIZE.

    They both inherit from common config which is why it's odd.

    Thank you so much for your help.

    Cheers,

    Joseph

  • Hi,

    Yes, it looks like they are inherited correctly.

    Could you upload the .emProject file here? That would reveal if there is any project configs that can explain what is happening.

    I would also recommend you to downgrade the SES version to the version used for testing and verification of the SDK release, mentioned in the release notes:

    nRF5 SDK v17.1.0
    ------------------------
    Release Date: August, 2021
    
    The following toolchains/devices have been used for testing and verification:
     
     - ARM: MDK-ARM version 5.25   
     - GCC: GCC ARM Embedded 9.2020-q2.major
     - IAR: IAR Workbench 7.80.4
     - SES: SES 5.42a

    Using the later SES v6.xx versions have shown issues related to application optimization before.

    Best regards,
    Jørgen

Reply
  • Hi,

    Yes, it looks like they are inherited correctly.

    Could you upload the .emProject file here? That would reveal if there is any project configs that can explain what is happening.

    I would also recommend you to downgrade the SES version to the version used for testing and verification of the SDK release, mentioned in the release notes:

    nRF5 SDK v17.1.0
    ------------------------
    Release Date: August, 2021
    
    The following toolchains/devices have been used for testing and verification:
     
     - ARM: MDK-ARM version 5.25   
     - GCC: GCC ARM Embedded 9.2020-q2.major
     - IAR: IAR Workbench 7.80.4
     - SES: SES 5.42a

    Using the later SES v6.xx versions have shown issues related to application optimization before.

    Best regards,
    Jørgen

Children
No Data
Related