Reset to start bootloader

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

cross mob
GaSh_293351
Level 1
Level 1
5 replies posted Welcome! 5 questions asked

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
Moderator
250 solutions authored 100 solutions authored 50 solutions authored

(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
Moderator
250 solutions authored 100 solutions authored 50 solutions authored

(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