This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Erase failed on Cortex M4

Today I have recieved the new nRF52 Development kit PCA10040. I did a update for the nRFgo Studio to version 1.21.2.3.

The softdevice s132_nrf52_2.0.0 will be flashed without errors. The template from SDK 11.0 will also be build without errors. But when I try to load the template on the chip, I will get this error:

Erase Failed! Error: Flash Download failed - "Cortex-M4"

Do I have to change the Target start adress for the IROM?

My is now:

IROM1:0x1B00 and size is 0x65000

IRAM1:20001F00 and size is 0x6100

Or what else is the reason for "Erase failed!"?

UPDATE:

It wont hit the err code. In the picture below, the breakpoint will never hit. If I set the breakpoint on SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL); then it will hit the breakpoint. But I can not check what happens in the SOFTDEVICE_HANDLER_INIT function. Because SOFTDEVICE_HANDLER_INIT is defined in softdevice_handler.h. In this file I cant set a breakpoint and check the err code.

Test.rar

image description

Parents
  • If you are using the S132 v2.0 SoftDevice the ROM/RAM settings should be:

    IROM1: Start: 0x1C000 Size: 0x64000

    IRAM1: Start: 0x20002000 Size: 0xE000

    The minimum required RAM is 0x13C8, but I have set it a bit higher. The actual requirement will depend upon the configuration chosen at sd_ble_enable() time. sd_ble_enable() will return * p_app_ram_base. indicating the minimum APP_RAM_BASE required by the SoftDevice for the configuration. Please refer the S13x_nRF5x_2.0.0 Migration Document, found here.

    Update:

    You need to check for new updates in the Packs Installer, see the screenshot below.

    image description

    -Bjørn

  • I didnt know that it was just the alpha SDK. But with the newer one I have to install familyPack 8.5.0 Error #541: 'NordicSemiconductor::Device:Startup:8.5.0' component is missing, pack 'NordicSemiconductor.nRF_DeviceFamilyPack.8.5.0' is not installed

    But the pack installer shows me, that DeviceFamilyPack is uptodate. And when I check the Keil Software packs it seems also to be uptodate.(Last update: Version: 8.3.2 Date: 16.12.2015)

    Where else I can download deviceFamilyPack.8.5.0?

Reply
  • I didnt know that it was just the alpha SDK. But with the newer one I have to install familyPack 8.5.0 Error #541: 'NordicSemiconductor::Device:Startup:8.5.0' component is missing, pack 'NordicSemiconductor.nRF_DeviceFamilyPack.8.5.0' is not installed

    But the pack installer shows me, that DeviceFamilyPack is uptodate. And when I check the Keil Software packs it seems also to be uptodate.(Last update: Version: 8.3.2 Date: 16.12.2015)

    Where else I can download deviceFamilyPack.8.5.0?

Children
No Data
Related