Debug messages are output to a standard serial port. The
sendchar() function outputs a single character. If required,
you can customize this function to send the debug messages to some
other device. In most cases, a serial UART is used to print out the
debug messages.
Note
When the sendchar function runs in polling mode,
printing all debug messages significantly reduces the
performance. The preferred way is to rewrite the sendchar()
function to work in the interrupt mode.
Use the highest baud rate possible to reduce the impact
on performance from printing the debug messages.
If the debug mode is enabled and the embedded system is
connected to a high traffic LAN with plenty of broadcast
packets, the system might malfunction.
Printing debug messages blocks out the system task scheduler
during the time when the message is being sent from the serial
port. The incoming IP packets accumulate in the memory. This soon
causes an out of memory error. Any further incoming packets
are lost until some memory is released.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.