3 Replies Latest reply on Apr 15, 2016 8:20 AM by nasac_2167841

    Production Flashing for app based on 3.5.2 and OTA feature

    shra_2185826

      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

        • 1. Re: Production Flashing for app based on 3.5.2 and OTA feature
          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 


          1 of 1 people found this helpful
          • 2. Re: Production Flashing for app based on 3.5.2 and OTA feature
            shra_2185826

            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

            • 3. Re: Production Flashing for app based on 3.5.2 and OTA feature

              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

              1 of 1 people found this helpful