AN4989 Rev 3
83/118
AN4989
Printf debugging
117
Add printf Code
Above int main(void) (USER CODE 0 section), add:
extern void initialize_monitor_handles(void);
Then configure the semihosting system call: In int main(void) before the while(1) loop
(USER CODE 1 section) add:
Initialise_monitor_handles();
Then inside the while(1) loop, add:
Printf(“Hello World!\n”);
HAL_Delay(1000);
Click
Project -> Build Project
to compile and link everything.
Содержание STM32 Series
Страница 46: ...Connecting to the board AN4989 46 118 AN4989 Rev 3 Figure 30 Keil hotplug step2 ...
Страница 91: ...AN4989 Rev 3 91 118 AN4989 Debug through hardware exploration 117 Figure 69 STM32F4 F7 dual MCO capabilities ...
Страница 103: ...AN4989 Rev 3 103 118 AN4989 Managing DBGMCU registers 117 Figure 78 Generator Options debug MCU in STM32CubeIDE ...