stm32f103ret6 USART1 cannot send or receive on Creality v4.2.7 3d printer board
I am trying to port my Arduino Mega 3d printer firmware to stm32f103ret6 ( Creality v4.2.7 3d printer board).
For the momment i am trying to test simple tasks like turn on a pin or send via USART1. The board has a ch340g serial to usb converter so things should be easy.
This board comes with bootloader pre-installed in order to upload compiled fw from SD slot so i have set an offset of 28K(hope this is enough) at the STM32Cube IDE, the linker file: https://github.com/3DHexfw/3DHex/blob/master/MCU/Creality/Creality_v4.2.7_Silent/STM32F103RETX_FLASH.ld
In the next line you can find the sample code where i am trying to send over USART1 but with no luck: https://github.com/3DHexfw/3DHex/blob/master/MCU/Creality/Creality_v4.2.7_Silent/Core/Src/main.c
Any suggestions?