I'm trying to make SEGGER RTT work. I'm using CMake to compile my application on Ubuntu.
I added `#include SEGGER_RTT.h` to `main.c`. In main() I call `SEGGER_RTT_Init()` and then I just do a while loop with `SEGGER_RTT_WriteString(0, "HELLO \n");`
In my `custom_config_qspi.h` I added `#define CONFIG_RTT 1`.
I also added the SEGGER_RTT.c and SEGGER_RTT_printf.c and SEGGER headers.
This is what I do:
- Build and flash my DA14681 microcontroller
- Grep from memory map the address of _SEGGER_RTT
- Open JLink RTT Viewer V6.70 :
- Type of connection: USB,
- Target: DA14681
- Interface: SWD (4000 Hz)
- RTT control block: Address from grep
But I receive no output
I hop you could help me ..thanks