Posts

Showing posts from October, 2018

Semihosting

Image
Have you ever had situation when you wanted to send string over uart from microcontroller to PC, but you didn't have UART-USB converter? I bet you have experienced it. Today I will show you a workaround of it. Programing console or windows application on Windows or Linux is easier than programming embedded systems in some cases. I mean printf function is present default . Printf function allows show string in formatted way. Embedded systems built on microcontrollers also allows usage printf function. Today I will show you how to implement printf function in semihosting mode. Semihosting is the feature of the st-link debugger. STM32F401 development board, and SW4STM32 workbench will be used. Depending on debugger and integrated development environment(IDE) enabling of semihosting may look different. There are just few steps to enable printf capability. 1. Add monitor arm semihosting enable command in Debug configurations ...