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

Failed to download firmware in Segger Embedded Studio

Hi,

I have an error to download firmware in nRF52840-DK, from output console show it failed at verification on address 0x00000000. 

I try to compile the light switch example from "\examples\light_switch\client\" folder into two nRF52840-DK boards but somehow only one board success, Can you help me to figure out what happens?

Thanks 

Output Console

Preparing target for download
Executing script TargetInterface.resetAndStop()
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Downloading ‘s140_nrf52_6.1.0_softdevice.hex’ to J-Link
Programming 2.5 KB of addresses 00000000 — 00000a17
Programming 147.6 KB of addresses 00001000 — 00025e7b
J-Link: Flash download: Bank 0 @ 0x00000000: 1 range affected (155648 bytes)
J-Link: Flash download: Total time needed: 2.345s (Prepare: 0.048s, Compare: 0.018s, Erase: 0.000s, Program: 2.267s, Verify: 0.003s, Restore: 0.008s)
Verification failed @ address 0x00000000

Parents Reply Children
  • Can you please try to download the light switch example via Segger Embedded Studios? First erase the board (either via nRF Programmer app) or via nrfjprog. Then, compile the example in SES. Next, press Target -> Connect J-Link. Then, press Target -> Download <project name>, where project name could be ble_app_blinky_pca10040_s132 or light switch_pca10040... for example. Does that work?

  • I did try above method, it seems like doesn't work. and compare the flash memory with the compiled hex found that some of the hex value is not exactly the same... 

  • Which mesh sdk version are you currently using? Are you using this SES project: light_switch_client_nrf52840_xxAA_s140_6_0_0.emProject? Also, how do you know that it seems like it does not work? Have you tried debugging the example? Do you receive any logging output? You can do this directly in SES by pressing F5.

  • I use mesh SDK 3.0 and project light_switch_client_nrf52840_xxAA_s140_6_1_0.emProject. 

    and below is the output log

    Preparing target for download
    Executing script TargetInterface.resetAndStop()
    Reset: Halt core after reset via DEMCR.VC_CORERESET.
    Reset: Reset device via AIRCR.SYSRESETREQ.
    Downloading ‘s140_nrf52_6.1.0_softdevice.hex’ to J-Link
    Programming 2.5 KB of addresses 00000000 — 00000a17
    Programming 147.6 KB of addresses 00001000 — 00025e7b
    J-Link: Flash download: Bank 0 @ 0x00000000: 1 range affected (155648 bytes)
    J-Link: Flash download: Total time needed: 2.489s (Prepare: 0.118s, Compare: 0.018s, Erase: 0.000s, Program: 2.263s, Verify: 0.002s, Restore: 0.086s)
    Verification failed @ address 0x00000000

    And unable to debug the code due to it failed during flash verification. 

  • I just tested the mesh SDK v3.0 with the light_switch_client_nrf52840_xxAA_s140_6_1_0.emProject & was able to successfully download the code. Which version of SES are you using? I used v3.40. Are you running Windows 10? Could you try to download the mesh sdk v3.0.0 zip again to double check that there is not any issues with linker settings or similar. Or just download the latest mesh sdk & test that instead. 

Related