Vybrid USB printf

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Vybrid USB printf

800 次查看
MehmetAliIpin
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

标签 (6)
标记 (4)
0 项奖励
回复
2 回复数

567 次查看
alejandrolozan1
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

567 次查看
MehmetAliIpin
Contributor V

Dear Alejandro,

Thank you very much for your answer,

Best regards.

Mehmet Ali Ipin

0 项奖励
回复