i.MXRT105x Middleware Pack  Version 1.5.1
MDK-Middleware examples and CMSIS-Drivers for NXP i.MXRT105x devices
printf retargeting

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:debug_console
    • Compiler:I/O:STDOUT User
    • Compiler:I/O:STDIN User
    • Compiler:I/O:STDERR User
      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.