Hi,
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
Keywords:
Device:
Hi daleonpz,
Please take a look at the freertos_rtt project of the SDK1.0.14. This project is located under projects\dk_apps\templates path and redirects I/O (e.g. printf) to SEGGER's Real Time Terminal. Please check the printf() function in freertos_rtt\startup\config.c file. This function uses SEGGER_RTT_vprintf(). The CONFIG_RTT macro should be defined as well in custom_config_xxxx.h. Regarding the RTT, this example should be taken as a reference. For more information, please refer to SEGGER website.
Thanks, PM_Dialog
谢谢你的回复. .这是一个与th HW问题e debugger. I ordered another and it worked.
Hi daleonpz,
Glad that you got it working! If you have any other question, please feel free to create a new forum ticket.
Thanks, PM_Dialog