![]() Note: the project contain also the file for CUBE-MX Get the SW clicking here, but remember to ask us the password for open it. Please specify also your country and your city, this are only for our personal statistics. Please send us an email and ask us the password for: Printf-NU091-ATOLLIC HAL_GPIO_TogglePin(GPIOA, GPIO_PIN_5) // PORTA, Pin PA5 Use CUBE-MX to configure your USART2 on the NUCLEO board.įor use the printf is necessary insert the C code show below. So for implement the printf via USB port is necessary configure the USART2 and redirect the PUTCHAR to USART. If you look the schematics of the STM32 NUCLEO boards you see that the USART2 of the STM32xxx present on your NUCLEO board, is connect to the STM32F103CBT6 that implement the ST-LINK-v2 functionalities. It’s possible use the USB connector present on the STM32 NUCLEO board for send data from NUCLEO to the PC thanks to the functionalities of the ST-LINK-v2 present on the NUCLEO boards. ![]() I suggest to use on the PC a terminal emulator like TeraTerm, configured has show below. Install the tools for use STM32, see here. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |