HAL_Timeout issue from the application integrated to xcube SBSFU
Hello people,
I am trying to integrate the xcube sbsfu feature to our application and everything went well but there is an issue while sending the .sfb via ymodem.
It starts downloading the firmware and after receiving 2 packets (4.9%), it stops downloading (see attached picture) and throws the below errors.
-- -- !!Aborted by user!!
-- !!Operation failed!!
When I debugged the code, I found the problem is coming from the below code
__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET
I guess the system is setting this to RESET and HAL_timeout is getting returned. May be because of huart->Instance->ISR or FLAG.
Could anyone please let me know what changes are required to successfully download the firmware on microcontroller (STM32L452).
Is this because of timer settings or timing mismatch?
Note :
- I still have to figure out how to generate .sfb file for our application. For now, I am trying the download the .sfb from the example project (STM32L476RG)
- I am using the sbsfu features of STM32L432KC and integrated them to our user application running on STM32L452. memory mappings are altered accordingly.
Thanks,
Ankush
