Currently I am working on a space/pin-constraint project. The software is run on a ARM M4F (MAX32660 MCU) Datasheet.
I have connected the MCU to my Dev-Machine via a Segger J-Link J-Link Debug probe through the SWD-Port.
I am using Eclipse CDT C/C++ Eclispe CDT C/C++.
My question:
Is it possible to send custom data via the SWD interface and show it in a Eclipse "Console-Like" window? I am okay with MCU-To-Eclipse Data-Direction and standard CMSIS Libs, as well as self-coded.
I am thinking about:
void SWD_Write(u32 data){ /* magic */ }
.....
if ( ... ){ SWD_Write( .... ); }
.....
Which results in a text-output (Best with timestamps, but not an issue if none available). It must be possible to export the text (either manual copy/paste or piped to file).
What I have researched so far:
- I read about the ITM Article about ARM ITM Peripheral. But sadly, I cant use it as it requires a SWO pin - which is not available on my MCU.
- Currently I am using stack variables and assigning values to them. I then hover the mouse and read the value from the Eclipse Debug GUI. This is not what I want!