Bootloader soft reset

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

cross mob
Anonymous
Not applicable

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;

0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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.

Bob

0 Likes
GeonaP_26
Moderator
Moderator
Moderator
250 solutions authored 100 solutions authored 50 solutions authored

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.

Thanks,

Geona Mary

0 Likes