This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

can't program bootloader code by nrfjprog tool

Hi Nordic, we need to modify bootloader code base on your dfu example. Now We meet a problem that we can't program it by clicking icon "Load" on keil comile project. report error as below:

//-----------------------------------------------------------------------
Programing device.
ERROR: JLinkARM DLL reported an error. Try again. If error condition
ERROR: persists, run the same command again with argument --log, contact Nordic
ERROR: Semiconductor and provide the generated log.log file to them.
nrfjprog.exe --program "D:\project\SPW07A\Bootloader_Code\examples\dfu\bootloader\pca10040\dual_bank_ble_s132\arm5_no_packs\_build\nrf52832_xxaa_s132.HEX" -f NRF52  --chiperase --log
Parsing hex file.
Erasing code and UICR flash areas.
Applying system reset.
Checking that the area to write is not protected.
Programing device.
ERROR: JLinkARM DLL reported an error. Try again. If error condition
ERROR: persists, run the same command again with argument --log, contact Nordic
ERROR: Semiconductor and provide the generated log.log file to them.
-----------------------------------------------------------------------------------------------------//

according to error's hint, I add --log after --program "#H" -f NRF52 --chiperase --log and get the log text. pls refer the attached file.JLinkARM.log.txt but i can't find the reason. if we use the same project to program it on EVB PCA10040, it is ok. why ? Is the different between the EVB PCA10040 's JLINK and our JLINK cause the issue? how to fix it? Thanks.

Parents
  • We can debug our board by our J-Link with port SWD and program our board by JFlash. We have developed my product successfully.it mean that my J-link debug probe is ok and why using nrfjprog erase cmd that is ok but using nrfjprog program cmd that failed on our board. Now in production stage, we want to use your nrfjprog cmd group to progarm mass production in factory efficiently .Another, how to upload the attached picture or schematic to your devzone site? I can't find the way.

Reply
  • We can debug our board by our J-Link with port SWD and program our board by JFlash. We have developed my product successfully.it mean that my J-link debug probe is ok and why using nrfjprog erase cmd that is ok but using nrfjprog program cmd that failed on our board. Now in production stage, we want to use your nrfjprog cmd group to progarm mass production in factory efficiently .Another, how to upload the attached picture or schematic to your devzone site? I can't find the way.

Children
No Data
Related