3 Replies Latest reply on Jul 28, 2020 9:32 PM by GaneshD_41

    How to create a dual bank firmware update

    anng_4696981

      I have the CY8C4045 chip.  Does it support dual bank firmware update?  If so, how to create dual bank firmware image?

        • 1. Re: How to create a dual bank firmware update
          GaneshD_41

          Hi,

           

          Can you please elaborate more on your query? Do you mean Dual-Application Bootloader?

           

          Thanks

          Ganesh

          • 2. Re: How to create a dual bank firmware update
            anng_4696981

            I use the chip CY8C4045.

            First can the chip support dual bank so we can update the new bank and switch to new bank after that?  It means every time it has new fw, it switches to boot from new bank, ping pong between bank 0 and bank 1.  If so, can PSoc creates different images for bank 0 and bank 1?

            If cannot not do that, then can this chip does Dual-Application Bootloader?  I think create App0 as a bootloader to boot to App0 then decide to boot to App1 or App2.

             

            Thanks,

             

            Anh Ngo

            • 3. Re: How to create a dual bank firmware update
              GaneshD_41

              Hi Anh,

               

              >>"First can the chip support dual bank so we can update the new bank and switch to new bank after that?  It means every time it has new fw, it switches to boot from new bank, ping pong between bank 0 and bank 1.  If so, can PSoc creates different images for bank 0 and bank 1?"

               

              --> The device supports only single block of Flash memory.

               

              >>"If cannot not do that, then can this chip does Dual-Application Bootloader?  I think create App0 as a bootloader to boot to App0 then decide to boot to App1 or App2."

               

              --> Yes. PSoC 4000 family supports Dual Application Bootloader. Your understanding is correct.

              Please find the attached reference project for Dual Application Bootloader. The commands Bootloader_Exit(Bootloader_EXIT_TO_BTLDB_1);

              Bootloader_Exit(Bootloader_EXIT_TO_BTLDB_2); and Bootloader_Exit(Bootloader_EXIT_TO_BTLDR); are used to switch to App_1, App_2 and Bootloader mode respectively.

               

              Each App (App0/App1) produces 2 cyacd files App0_1.cyacd and App0_2.cyacd . You have to bootload accordingly to place them in the partition 1 or partition 2 in the flash.

               

              Thanks and regards

              Ganesh