The program runs well on the real machine nrf52840, but cannot be executed in debugging mode:

1. The same program, same configuration, after flash to the chip, runs normally

2. Starting debug mode, unable to execute, as show in the figure

3. When different configurations are used, i.e. when debugging and optimization are not set, flash to the real machine nrf52840 and debugging mode all run well

4. Code size and flash space partitioning config, as shown in the figure

5. May I ask how to solve the key difference between debugging mode and flash to real machine operation when the same program and configuration has not been changed?

Related