Device does not stay in bootloader state for long time

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

cross mob
yaga_3967241
Level 3
Level 3
50 sign-ins 25 sign-ins 10 replies posted

Hi,

We are using PSoC 5LP. In our workspace, there is one bootloader project and one bootloadable project, and they are link together.

We use this tool to do PSoC FW update: 

Before doing  PSoC FW update, we need to call Bootloadable_Load() from bootloadable project to put PSoC in bootloader mode.

We found that, after setting PSoC to bootloader mode (calling Bootloadable_Load()), PSoC stays in bootloader mode only for a couple seconds, then it goes out of bootloader mode. So if our script is quick enough, FW download to PSoC succeeds; otherwise it fails and I can tell the PSoC returns to normal application mode.

My questions are: Why bootloader mode does not stay for longer, and how to make it in bootloader state longer?

 

Best regards,

Winston

0 Likes
1 Solution
Alakananda_BG
Moderator
Moderator
Moderator
50 likes received 250 sign-ins 250 replies posted

Hi @yaga_3967241 ,

Generally if we call Bootloadable_Load() it should wait in bootloader forever.

You can see from the below flowchart that it will wait forever in the bootloader once Bootloadable_Load() is called.

Alakananda_BG_0-1658901281908.png

Regards,

Alakananda

View solution in original post

0 Likes
2 Replies
Alakananda_BG
Moderator
Moderator
Moderator
50 likes received 250 sign-ins 250 replies posted

Hi @yaga_3967241 ,

Generally if we call Bootloadable_Load() it should wait in bootloader forever.

You can see from the below flowchart that it will wait forever in the bootloader once Bootloadable_Load() is called.

Alakananda_BG_0-1658901281908.png

Regards,

Alakananda
0 Likes
BiBi_1928986
Level 7
Level 7
First comment on blog 500 replies posted 250 replies posted

Hello.

Change the default setting in the bootloader project.  Change bootloader component from 2 seconds to whatever timeout you need.  Right-click on bootloader component, select config... and change the Wait for command time (ms).  Make sure there is a check-mark in the box for "Wait for command".

Then build, download, the bootloader.  Also re-build bootloadable project and download it.  Then test the new bootloader timeout.

Good luck with your project.

0 Likes