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
Solved! Go to Solution.
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
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.
-------------------------------------------------------------------------------
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