cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any template or example program for implementing OTA? I have 2MB SPI EEPROM, SIM808 for GPRS communication and STM32F070 on board.

Ahmed.Waqar
Associate II
Posted on February 24, 2018 at 13:03

Hello,

Is there any template or example program for implementing OTA? I have 2MB SPI EEPROM, SIM808 for GPRS communication and STM32F070 on board.

I am using CoIDE and have little understanding about how to do it, such as

  • Receive binary file to the board form GPRS module

  • Save it in external flash memory then use IAP to flash the new firmware

  • Then finally use DFU mode for changing the start address of the MCU

But except receiving the binary file and storing it in EEPROM, I have no idea about how to proceed further. Please provide assistance. 

Regards,

#clive #clive1 #clive-one #andrew-neil
12 REPLIES 12
Posted on April 20, 2018 at 14:27

The conversion has been forked to this thread

https://community.st.com/0D50X00009XkfgXSAR

This seems to describe more RAM than is physically available in the F103C8, ie 20KB 0x20000000..0x20004FFF

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Ahmed.Waqar
Associate II
Posted on April 21, 2018 at 10:37

Thanks Sir

Turvey.Clive.002

. Now I am using STM32F103RE that has 64k ram. But when I configure its clock, debugger gets struct in while loop at

if (HAL_RCC_OscConfig(&oscinitstruct)!= HAL_OK)

{

/* Initialization Error */

while(1);

}

Please check the following modification for 8 MHz HSE. Am I doing it wrong?

0690X0000060AeGQAU.png

I am using following IAP example

.\AN4657-STM32Cube_IAP_using_UART\Projects\STM3210C_EVAL\IAP_Main\EWARM\STM3210C_EVAL\

Posted on April 21, 2018 at 10:46

Even it is getting struct with following configuration as well

0690X0000060AiHQAU.png