2 Replies Latest reply on Sep 7, 2017 10:53 PM by GeonaP_26

    Bootloader soft reset

      I know..another stupid question (o;


      In the same bootloader/bootloadable datasheet there is a paragraph saying:


      "At startup, the bootloader code loads configuration bytes for its own configuration. It must also initialize the stack and other resources as well as peripherals to do the transfer. When the transfer is complete, control is passed to the bootloadable project with a software reset."



      What does "soft reset" actually refer to?


      Does it reset all existing peripheral configurations from the bootloader and handles over control to the application like it would after a regular reset?

      Or can it be assumed the peripherals setup already in the bootloader can be used in the application?


      In the UART example the initialization is done once in the bootloader and repeats in the example application...


      Slowly but surely I am getting there (o;

        • 1. Re: Bootloader soft reset

          What does "soft reset" actually refer to?

          It is a softwarereset and has an API CySoftwareReset(). Under normal conditions all resources the bootloader needed get released as the interface, LEDs etc and the project starts with its own initialization.

          Due to the huge amount of resourcescthe BLE takes there are some "tricks" (yet I never used) to re-use components for BLE when OTA(updating Over The Air) is required.



          • 2. Re: Bootloader soft reset

            As the bootloader and bootloadable are completely self-contained PSoC Creator projects, each has its own device configuration settings. While changing to new configuration which involves setting of thousands of PSoC registers, it is necessary to make sure that  you reset the bits for the old configuration, in addition to setting the bits for the new configuration. eg: PSoC’s digital and analog routing features.


            Software reset causes all PSoC registers to be reset to their default states. Later configuration for the new project can begin. Initialization of all PSoC registers to their device reset default states, configuration time and flash memory usage can both be reduced.




            Geona Mary