cancel
Showing results for 
Search instead for 
Did you mean: 

OTA implementation stm32l072

satyam9896
Associate II

SO I HAVE STARTED MY PROJECT WITH STM32L072 SERIES WHICH IS HAVING 192B FLASH 64 PIN IC along with bluenrg-m2sa. my concern and doubt is regarding implementation of ota feature to stm32l072 ic which i never implemented and work on before and also the examples and other refrences are mostly availabe for L4 or F series IC so my request to give me and help me with appropriate resoures and file so that i can easily implement the ota feature to my project and can easily understand also.

21 REPLIES 21
Andrew Neil
Evangelist III

@satyam9896 wrote:

 PROJECT WITH STM32L072 ... along with bluenrg-m2sa. 


So which part's firmware are you trying to update - the STM32L072 or the BlueNRG ?

 

https://www.st.com/resource/en/application_note/an4657-stm32-inapplication-programming-iap-using-the-usart-stmicroelectronics.pdf

i will update the stm32l0 ic only and using the bluenrg to recieve the hex or code from dedicated app if any.


@satyam9896 wrote:

 using the bluenrg to recieve the hex or code 


Strongly recommend that you do not send hex!

Writing a reliable hex decoder is non-trivial, and hex is very inefficient over the air.

satyam9896
Associate II

okay so bin i will use however please help in implementation.

You've marked this as solved.

If it's not solved, you can un-mark the solution:

https://community.st.com/t5/community-guidelines/help-others-to-solve-their-issues/ta-p/575256#:~:text=If%20you%20accidentally%20chose%20the%20wrong%20post%20as%20solution%2C%20you%20can%20always%20revert%20this%20action%20by%20clicking%20%22Not%20the%20Solution%22

 


@satyam9896 wrote:

 please help in implementation.


Did you read the linked Application Note?

What have you tried so far?

Where are you stuck?

satyam9896
Associate II

Sorry my bad. i did not that i hve marked it but anyways coming to the point linked app note so i have not seen that yet.

so far i have downloaded the project and tried to go through the given examples 

https://github.com/STMicroelectronics/fp-sns-allmems1/tree/main/Projects/STM32L476JG-SensorTile/Applications/ALLMEMS1

I just dont know how to start and from where to start.

 

Before looking at code, you should read the Application Note - to understand what the code is trying to achieve:

https://www.st.com/resource/en/application_note/an4657-stm32-inapplication-programming-iap-using-the-usart-stmicroelectronics.pdf

 

satyam9896
Associate II

but this application is saying programming using USART but my Aim to get the firmware updated via bluetooth communication. is that application will explain me about OTA ? and that tho using ble?

 

Any & every update scheme involves two parts:

  1. Transferring the data;
  2. Getting that data into the Flash.

The two are independent - you can substitute a different way to transfer the data without affecting the Flash programming.