This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How should I reset my device when using RTT?

I just started using RTT because I needed to trace execution through some ble events and the uart could not keep up.

It is very nice, but I am used to frequently resetting the microcontroller using the IF BOOT/RESET button on my PCA10028 board. This is nice because it doesn't break uart connection so I can debug a bit faster.

If I press this button, I am unable to program using Keil 5.14.0.0, it complains that:

**JLink Warning: RESET (pin 15) high, but should be low. Please check target hardware.

Sure -- I can reprogram the firmware but I would prefer to set up a button on the development kit dedicated to resetting (and it shouldn't reset the RTT connection).

  • @syntroniks: I also seeing the issue when pressing reset on the DK board that it stopped RTT viewer. What I did was running the chip in debug mode then I can reset the chip (in KEIL) without restarting the RTT viewer. If you want to run in normal mode and can physically reset I think you can try to do some small hack to connect the RESET pin on the chip to a button by a wire and can press the button when needed.

    What did you mean by " it doesn't break uart connection "? I don't think pressing reset/boot button cause UART to be reset. Of course the chip reset, but it will re-initialize UART and can start transmitting again without the need for restarting the UART terminal on PC.

  • Your second paragraph is correct, I think you got my meaning. Thanks for the suggestions, I think I can work something out from this.

Related