Announcements

Ever wondered how you could shape the future in collaboration with others? Join us at OktoberTech Asia Pacific and get inspired. Click here to sign up FREE of charge.

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

PSoC™ 5, 3 & 1 Forum Discussions

yaga_3967241
Level 3
25 sign-ins 10 replies posted 10 questions asked
Level 3

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 50 likes received 250 sign-ins 250 replies posted
Moderator

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 50 likes received 250 sign-ins 250 replies posted
Moderator

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
250 replies posted 250 sign-ins 100 solutions authored
Level 7

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