Hi,
I was able to make ETM trace for nRF52840 work (from wiki.segger.com/nRF52_Series_Devices#Tracing_on_nRF52840).
Thanks for the example and documentation.
However, if you don't use SES, you can't enable the ETM trace (I'm not sure why now, for STM32 it works flawlessly in Ozone). SES calls "OnTraceStart" which I guess writes something to registers (I used to do this manually, but it was tedious; I really don't wish to sniff it via logic sniffer).
I'd hope that like monitor mode, you can call some some commands via GDB (GDB MI) that do this for you, like I ported monitor mode to pure gcc+make+gdb:
github.com/hiviah/nrf52840-monitor-mode-gcc-gdb-only
I have made monitor mode working for BLE DFU OTA bootloader/updater, but I'd like to have BLE DFU OTA+monitor mode (this works), but also add ETM trace .
Could I ask for advice how to set registers/setting via commands to JLink GDB server so that it works with Ozone (or settings in Ozone scripts)?
I updated to latest JLink libraries, SES, Ozone:
* JLink libs JLink_Linux_V784a
* Ozone v3.28.c
* Segger Embedded Studio 7.10a
I was able to make ETM trace for nRF52840 work (from wiki.segger.com/nRF52_Series_Devices#Tracing_on_nRF52840).
Thanks for the example and documentation.
However, if you don't use SES, you can't enable the ETM trace (I'm not sure why now, for STM32 it works flawlessly in Ozone). SES calls "OnTraceStart" which I guess writes something to registers (I used to do this manually, but it was tedious; I really don't wish to sniff it via logic sniffer).
I'd hope that like monitor mode, you can call some some commands via GDB (GDB MI) that do this for you, like I ported monitor mode to pure gcc+make+gdb:
github.com/hiviah/nrf52840-monitor-mode-gcc-gdb-only
I have made monitor mode working for BLE DFU OTA bootloader/updater, but I'd like to have BLE DFU OTA+monitor mode (this works), but also add ETM trace .
Could I ask for advice how to set registers/setting via commands to JLink GDB server so that it works with Ozone (or settings in Ozone scripts)?
I updated to latest JLink libraries, SES, Ozone:
* JLink libs JLink_Linux_V784a
* Ozone v3.28.c
* Segger Embedded Studio 7.10a