Enter a brief description of your changes
(Required)
Minor changes are by default collapsed in the page history.
No changes
The page does not exist yet.
Failed to load changes
Version by on
Leave Collaboration
Are you sure you want to leave the realtime collaboration and continue editing alone? The changes you save while editing alone will lead to merge conflicts with the changes auto-saved by the realtime editing session.
Using Libc's stdio to Send Formatted Strings
Last modified by Microchip on 2026/10/23 09:39
Overview
In this video:
Provide good community tutorials to understand how to use printf()
Set up a file and a stream using FDEV_SETUP_STREAM
Copy our existing IRQ-based void USART0_Transmit(unsigned char data) function, then modify the parameter types to match what FDEV_SETUP_STREAM expects to create int USART0_Transmit_IO( char data, FILE *steam ), in the process extending the functionality of our USART_irq driver
If you need to work with Microchip Support staff directly, you can submit a technical support case. Keep in mind that many questions can be answered through our self-help resources, so this may not be your speediest option.