cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 and IAP

jowakar122
Associate III

Hello, 
I have been trying to implement IAP in my device. But my code gets stuck in "UART_WaitOnFlagUntilTimeout". For once I was able to transfer the binary file of the new user application but later whenever I am trying to send the binary file it is getting stuck. It doesn't even show any debug error message.
I took reference from this: https://github.com/stm32-hotspot/STM32G0xx_IAP/tree/main
I have kept the IAP main at starting address which is 0x08000000 and my user application at 0x08008000. 

11 REPLIES 11

did you get any progress on this issue?

Now I am also designning a IAP for STM32G474VET6, I have the same issue as you I think, when I start to transfer bin file with tera term, the transfer stopped and I step into the code, it seems UART_Receive time_out

dqsh06_0-1736737592659.png

I did this design according to AN4657. the tranfer with tera term as below

dqsh06_1-1736737689681.png

I also used uart1, I am sure it can work, because i received the menu and send 1 for choosing download.

any progress, please contact me.

thanks.

 

@dqsh06 I have tried every option possible but couldn't find the solution. 
I do get the menu and it waits for the binary file when pressed 1.