Configurate uart without using stmcubeMx
I am currently working on a project to program a PLC. This one already has a program to control its operation. We are using the Nucleo board STM32F302RBT6. The goal is to extend the program to be able to integrate the uart communication. Unfortunately I can't configure the uart using the normal method on stmcubeMx because it would already damage the current control program. For the configuration I have chosen another method, that of copying all the lines of codes of configuration of the uart in my current program. In the files main.c, stm32f3xx_hal_msp.c and stm32f3xx_hal_conf.h I added all the necessary configurations as they appear in the uart configuration with stmcubeMx. In addition I added the stm32f3xx_hal_uart.c, stm32f3xx_hal_uart_ex.c, stm32f3xx_ll_usart.h, stm32f3xx_hal_uart.h, stm32f3xx_hal_uart_ex.h files in the drivers where they belong. Unfortunately the uart communication still does not work and when I compile my program I get the following error: Break at address "0xfffffffe" with no debug information available, or outside of program code.
would someone have some ideas or a method to help me to solve this problem?
