Closed de-nordic closed 3 years ago
Does nrfjprog
even support binaries? I've never been able to use it that way, only with hex files. I flashed the frdm_k64f with binaries last week so at least with pyocd, west works correctly.
I do not think that the nrfjprog
works with bin files.
The sample documentation should allow user to build and run application; the flash command should be either universal or better described; the user should not end up figuring out why the sample does not work.
West flash, on bin file, with nrfjprog
does not return any error, and console output, from west flash
, suggest that everything has been flashed correctly, even progress of flashing is visible.
If all platforms can be correctly flashed with hex file, then the documentation should be changed to use hex. If not, then documentation requires update to point that out.
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.
Describe the bug The bug has been identified with nrf52840dk_nrf52840 platform, but may be reproducible with other platforms.
The documentation for the sample (https://docs.zephyrproject.org/latest/samples/subsys/mgmt/mcumgr/smp_svr/README.html) provides instruction on how to flash build image to device (https://docs.zephyrproject.org/latest/samples/subsys/mgmt/mcumgr/smp_svr/README.html#flashing-the-sample-image); unfortunately after flashing the application is not bootable.
To Reproduce Follow the steps of instruction. After "Flashing the sample image" step connect to device via UART, attached to console within Zephyr, and reset device to obtain the console dump similar to the provided below.
Expected behavior Following sample documentation should result in fully bootable and working application. Either the
west flash
command needs to be fixed or the documentation should be changed to use hex-file instead of bin-file.Impact Users can not rely on documentation sample to successfully build and test unmodified sample.
Logs and console output UART Console dump after reset of the device, where sample instruction has been followed step by step; the proper hardware platform has been selected for all steps:
Environment (please complete the following information): zephyrproject-rtos/Zephyr c31148b04cc99d3a590fc72adffdd168cb31f81c, vanilla
Additional context The
zephyr.signed.bin
is built correctly and works, when uploaded via mcumgr, so the problem is thatwest flash
cannot correctly flash file in such format, at least vianrfjprog
back-end.