If you wish to use printf-style retargeting via the UART, follow these steps:
- In the Manage Run-Time Environment window select:
- Device:SDK Utilities:assert
- Device:SDK Utilities:debug_console
- Device:SDK Utilities:serial_manager
- Device:SDK Utilities:serial_manager_uart
- CMSIS-Compiler:Core
- CMSIS-Compiler:STDERR(API):Custom
- CMSIS-Compiler:STDIN(API):Custom
- CMSIS-Compiler:STDOUT(API):Custom
Required components for printf debugging
- Copy the file
retarget_stdio.c
from <PACK_root>\Templates
to \<project_dir>
and add it to the project
Continue by building and debugging the project.