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

PSoC™ Creator & Designer Forum Discussions

GaSh_293351
Level 1
Level 1

In order to start the bootloader, can it be done with a software reset? Or do I need a hardware reset?

0 Likes
1 Solution
GeonaP_26
Moderator
Moderator 50 likes received 25 likes received 10 likes received
Moderator

(1) To start bootloader from bootloadable via fimware, user needs to schedule bootloader in metadata and software reset the device. Bootloadable component supports Bootloadable_Load() API for this.

void Bootloadable_Load(void)

{

    /* Schedule Bootloader to start after reset */

    Bootloadable_SET_RUN_TYPE(Bootloadable_SCHEDULE_BTLDR);

    CySoftwareReset();

}

(2) Upon power on reset, the bootloader will wait for new image for 'Wait for command time' specified in configuration window.

View solution in original post

0 Likes
1 Reply
GeonaP_26
Moderator
Moderator 50 likes received 25 likes received 10 likes received
Moderator

(1) To start bootloader from bootloadable via fimware, user needs to schedule bootloader in metadata and software reset the device. Bootloadable component supports Bootloadable_Load() API for this.

void Bootloadable_Load(void)

{

    /* Schedule Bootloader to start after reset */

    Bootloadable_SET_RUN_TYPE(Bootloadable_SCHEDULE_BTLDR);

    CySoftwareReset();

}

(2) Upon power on reset, the bootloader will wait for new image for 'Wait for command time' specified in configuration window.

0 Likes