Vybrid USB printf

cancel
Showing results for 
Search instead for 
Did you mean: 

Vybrid USB printf

245 Views
Contributor V

Dear All,

We have a prototype with VF3x, and debugging our codes with DS-5 debugger, using MQX. But since, it is too time consuming to stop DS-5 with breakpoint and see the variables/register and re-start it, we wish to use USB port of Vybrid, such as a printf() function, and see the variables in a terminal.

How can we use Vybrid's USB port for printf function with/without MQX?

Best regards.

Mehmet Ali Ipin

Labels (6)
Tags (4)
0 Kudos
2 Replies

12 Views
NXP Employee
NXP Employee

Hi,

I have never tried something similar and it might not be an easy task.

First in case you want to use the internal USB module of Vybrid you will have to implement the USB CDC class.

Maybe the MQX example of virtual_com C:\Freescale\Freescale_MQX_4_1\usb\device\examples\cdc\virtual_com\build\iar\cdc_vcom_twrvf65gs10_a5

And map the output to the printf.

But you will be tied to use MQX in your project. If you can use a USB to Serial converter and use the UART module just for design can help too.

Best Regards,

Alejandro

12 Views
Contributor V

Dear Alejandro,

Thank you very much for your answer,

Best regards.

Mehmet Ali Ipin

0 Kudos