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.