zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.48k stars 6.41k forks source link

samples: Code relocation nocopy sample has some unusual failure on nrf5340dk #45596

Closed PerMac closed 2 years ago

PerMac commented 2 years ago

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:

To Reproduce Steps to reproduce the behavior:

  1. go to samples/application_development/code_relocation_nocopy
  2. run west build -b nrf5340dk_nrf5340_cpuapp
  3. check the size of stat build/zephyr/zephyr.hex
  4. try nrfjprog --program build/zephyr/zephyr.hex --log
  5. see failure

Expected behavior Test passes

Impact Not clear

Environment (please complete the following information):

nvlsianpu commented 2 years ago

According to the sample description flashing process and zephr.hex extraction need to be performed manually. It works for me.