Hello,
I am developing a solution based on nrf52-DK, using nRF52840.
I have a .hex file produced by the R&D team
So far I can flash successfully the board with :
- drag-and-drop the .hex file to the virtual disk presented by the board on USB
- JLink (command is "JLink.exe -device nRF52840_xxAA -if SWD -speed 4000 -AutoConnect 1 -CommandFile script_flashing.jlink"
- nrfjprog.exe (command is "nrfjprog.exe -f NRF52 --program firmware.hex --chiperase --verify"
but for production reasons, and in order to use later on programmers like Flasher PRO from SEGGER, I would like to use JFlash.exe
So far it programs only 32K bytes, then falls in timeout error
Here is the command I am using : "JFlash.exe -openprj nRF52840_trial.jflash -open firmware.hex -jflashlogC:\tmp\jflash.log -auto -exit"
It fails, and the end of the logfile contains this :
- Start of flash programming
- Programming range 0x00000000 - 0x00007FFF ( 8 Sectors, 32 KB)
- Programming range 0x00008000 - 0x0000FFFF ( 8 Sectors, 32 KB)
- Programming range 0x00010000 - 0x00017FFF ( 8 Sectors, 32 KB)
- Programming range 0x00018000 - 0x0001FFFF ( 8 Sectors, 32 KB)
- ERROR: Timeout while programming sector, RAMCode did not respond in time (PC = 0x00000A64, XPSR = 0x61000003, SP = 0x20000550)!
- End of flash programming
- ERROR: Program failed
- Start of restoring
- End of restoring
- ERROR: Failed to auto program target
J-Flash V8.10a Error: Timeout while programming sector, RAMCode did not respond in time (PC = 0x00000A64, XPSR = 0x61000003, SP = 0x20000550)!
Program failed
Failed to auto program target
Disconnecting ...
- Disconnected
Would you please have any advice to solve this ? or to identify what I am doing wrong ?
In the JFLash GUI, I selected device "nRF52840_XXAA"
Thanks for your help.