Problems with usb_echo/printf on custom IMXRT1062 board with cdc vcom

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

Problems with usb_echo/printf on custom IMXRT1062 board with cdc vcom

跳至解决方案
1,893 次查看
Carlio
Contributor II

Hi there, 

 

Background:

I am working on a board without a JTAG/SWD port and need to be able to redirect the fsl_debug_console functionality for printf to the USB cdc VCOM port. I have tried the example dev_cdc_vcom_bm in the MCUXpresso SDK which works for setting up a VCOM (after adding a __NOP() in the main loop though) and echo back the characters, but I can’t get the usb_echo/printf to work. I have tried the same code on the evalkit (but for the IMXRT1064) and that works without any problems. I am developing in MCUXspresso IDE and using MCU Boot Utility to flash the image to my board.  

Question:

Is there a way to redirect printf to the cdc VCOM port without a JTAG/SWD and if so, how would you go about doing this?

 

Best regards,

C

0 项奖励
回复
1 解答
1,863 次查看
Carlio
Contributor II

Thank you for your reply @jeremyzhou . I actually found a demo application in the SDK that solved this issue using the serial_manager utility that I had apparently missed. 

Best regards,

C

在原帖中查看解决方案

2 回复数
1,876 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
1) Is there a way to redirect printf to the CDC VCOM port without a JTAG/SWD and if so, how would you go about doing this?
-- Unfortunately, it needs the developerS to implement the job as the SDK library doesn't provide the option or API interface for USB CDC to work with the printf and scanf.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复
1,864 次查看
Carlio
Contributor II

Thank you for your reply @jeremyzhou . I actually found a demo application in the SDK that solved this issue using the serial_manager utility that I had apparently missed. 

Best regards,

C