cancel
Showing results for 
Search instead for 
Did you mean: 

If I want to send the data I’m currently sending over the debug serial wire instead over SPI bus, what’s involved?

Syntech
Visitor

I am developing some trackers for personal use in VR and have found an excellent solution that meets my needs using the STM32CubeIDE environment and some boards. I create and test the files, but I realize that debugging over serial communication is not my preferred method. Instead, I want to transmit the data using an nRF module to a PC program that will utilize this information, to achieve this I'm using this part as a drop-in circuit and then linking it to the RF side of things. The STM32 will contain the flash and output the fused data raw to the NRF which includes all the connection and base firmware code, How can I modify the serial communication(or change it in the cube ide environment) to use protocols like I2C or SPI so that I can integrate it into a circuit? after I figure this out I can move to making the boards.

1 REPLY 1
Pavel A.
Evangelist III

You can send your own debug prints in any format you like, over any interface including the ITM.

However if you want to substitute the debugger interface form SWD to something else, this is not feasible because the SWD has special path to the guts of STM32.