This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to stream accelerometer to Jlink VCOMport?

My accelerometer readings appear in my segger embedded studio "Debug Terminal" window.

It looks like this.

I want to stream the data via COM port to this "serial oscilloscope" https://x-io.co.uk/serial-oscilloscope/

I have enabled VCOM in the J-LINK configurator. It's connected with SWD. I have connected pins 5 and 17 on the jlink port to loop back TX and RX.

My VCOM shows as COM5  in my device Manager

How do I send text to the COM port?

I've tried using  

  printf("LIS3DH_SaveSample new_sample = %d, %d, %d\n", new_X, new_Y, new_Z);
NRF_LOG_INFO("LIS3DH_SaveSample new_sample = %d, %d, %d\n", new_X, new_Y, new_Z);

but nothing appears at the COM port. I only see the output in the debug Terminal

Parents Reply Children
Related