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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,244 Views
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 Kudos
Reply
1 Solution
1,214 Views
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

View solution in original post

2 Replies
1,227 Views
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 Kudos
Reply
1,215 Views
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