Production Flashing for app based on 3.5.2 and OTA feature

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
shra_2185826
Level 2
Level 2
First like received

Hi,

We are developing an application based on 3.5.2 and it is suppose to use OTA feature.

The application size currently has enforced us to use external serial flash to keep downloaded copy of code.

For production flashing we do not want SDK kind of environment to be used.

Also h/w wise module will have option of only to be programmed through JTAG.

Is there any package of offline openocd using STLink available to solve the situation for us.

Cheers,

Shishir

0 Likes
1 Solution
Anonymous
Not applicable
Which platform are you using - which MCU and which Broadcom device?


Depending on this 3.5.2 might not be a stable long term release to use 


Regarding programming you can use an olimex jtag ftdi programmer to program offline through openocd 


This is the recommended way


The other way is to program the flash in a flash programmer before assembly 


View solution in original post

3 Replies
Anonymous
Not applicable
Which platform are you using - which MCU and which Broadcom device?


Depending on this 3.5.2 might not be a stable long term release to use 


Regarding programming you can use an olimex jtag ftdi programmer to program offline through openocd 


This is the recommended way


The other way is to program the flash in a flash programmer before assembly 


We are using murata YD module(STM32F205 + BCM43362).

My question was more inline with the requirement of flashing of external serial flash along with flash memory of micro for OTA to work reliably.

I believe there is some magic behind download_apps command which makes OTA working.

right now we merge bootloader + DCT + APP binary together at appropriate address of memory and flash through STLink ( utility + dongle) as single binary and it works for us.

But with OTA there is addition step involved to program external flash memory with something.

Is that also possible some how to use OpenOCD + STLink?

I'll procure olimex jtag to give it a try.

Cheers,

Shishir

0 Likes
Anonymous
Not applicable

There is no specific magic for the external SFLASH

it just uses an openOCD tcl script to program the SFLASH via the MCU with the appropriate OTA/Factory reset image

You can use a flash programmer to do the same

If you want to do this via the JTAG and using the ST-Link - then you will have to run the same tcl script which invokes an application on the MCU to read/write SFLASH

If you doing this in the production line - I would recommend you use a Flash programmer to program the SFLASH before mounting