twister (and west) has a timeout for flashing operation set to 20 sec and cannot finish the process with this time
this can be caused by some bogus size which linux thinks the resulting hex is: 755 MB (elf is ~1MB)!
one can try to flash the product hex with nrfjprog directly and will see a failure:
nrfjprog --program /home/maciej/zephyrproject2/zephyr/twister-out/nrf5340dk_nrf5340_cpuapp/samples/application_development/code_relocation_nocopy/sample.application_development.code_relocation_nocopy/zephyr/zephyr.hex --log
Parsing image file.
ERROR: [ Worker] - Address 0x00100000 does not map to a known memory.
ERROR: The file specified is not a valid hex file, has data outside valid areas
ERROR: or does not have data in valid areas.
I guess it might be caused by nrf53 was upgraded since the sample implementation. The sample mentioned nrf53 PDK which evolved into a proper dk and I assume there are differences in the memory map between those.
To Reproduce
Steps to reproduce the behavior:
go to samples/application_development/code_relocation_nocopy
Describe the bug A hex produced by sample for "code relocation nocopy" https://github.com/zephyrproject-rtos/zephyr/blob/main/samples/application_development/code_relocation_nocopy/sample.yaml#L5 is unflashable and casues twister failures on nrf5340dk_nrf5340_cpuapp. I think there are couple of issues:
I guess it might be caused by nrf53 was upgraded since the sample implementation. The sample mentioned nrf53 PDK which evolved into a proper dk and I assume there are differences in the memory map between those.
To Reproduce Steps to reproduce the behavior:
samples/application_development/code_relocation_nocopy
west build -b nrf5340dk_nrf5340_cpuapp
stat build/zephyr/zephyr.hex
nrfjprog --program build/zephyr/zephyr.hex --log
Expected behavior Test passes
Impact Not clear
Environment (please complete the following information):