2024-05-11 05:53 AM
Several Issues causing this fail, as I can see from the console.
1. First, I used to STMCubeMX to generated code while doing the pin Configuration by my own. STM32WLE5CCU6 is the target device in my case. I followed the schematics to do the pin configuration. I Enabled the USART1 and USART2 but the generated code missing the Usart_if.h file in the includes folder. Therefore causing the fatal Error.
2. Several warning being issued ,11 to be exact. Due the BSP driver also not being included in the Driver folder.
How to solve these issues?
2024-05-11 09:49 PM
I did managed to get rid of the fatal error by enabling I2C communication from "Connectivity", Even though as per the my Electrical schematic those pins are not required at all. The program build was without error and but now with two warnings.
Warning-1. Description Resource Path Location Type implicit declaration of function 'MX_DMA_Init'; did you mean 'HAL_DMA_Init'? [-Wimplicit-function-declaration] usart_if.c /LoraWanEND_NODE/Core/Src line 107 C/C++ Problem
Warning-2.Description Resource Path Location Type implicit declaration of function 'MX_USART1_UART_Init' [-Wimplicit-function-declaration] usart_if.c /LoraWanEND_NODE/Core/Src line 108 C/C++ Problem
I would appreciate if you have any solution for the warnings.
Also I have a question that I kept wondering. whether for a Custom Board, we are required to have "BSP Driver"?
It Caught my attention on file radio_board_if.h, where it is written that STMCubeMX generated code do not support BSP Driver.
Also there are way explain in another file, For user board the directory can be copied to the project.
Kindly Check the pictures.
your kind feedback is much appreciated.
Thanks.
2024-05-31 03:38 AM
Hello @MahadiHasan32
For the 2 warnings, solution is available on this Post. For the BSP, it is available only for Evaluation boards (Nucleo, Disco, Eval). So, when generating a code for an MCU, the generated code does not support BSP Driver.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.