Linux cyusb version of CyAPI IsBootLoaderRunning()

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

cross mob
PeSh_4780406
Level 1
Level 1

Working on porting some windows code based on CyAPI for the FX3 to cyusb Linux library. Looking around the cyusb library I don't see a equivalent function to IsBootLoaderRunning(). Does one exist or is there a way I can use the existing cyusb functions to get the same information?

Thanks for any pointers

0 Likes
1 Solution
YatheeshD_36
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello,

You can use the control IN transfer and A0 vendor command to check if the bootloader is running.

Do a control IN Transfer with:

length = 1.

reqCode = 0xA0;

If the transfer is success then the bootloader is running else no.

Please refer to the below code where the mentioned method is used in Windows Cpp using CyAPI.lib

pastedImage_1.png

Thanks,

Yatheesh

View solution in original post

0 Likes
2 Replies
YatheeshD_36
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello,

You can use the control IN transfer and A0 vendor command to check if the bootloader is running.

Do a control IN Transfer with:

length = 1.

reqCode = 0xA0;

If the transfer is success then the bootloader is running else no.

Please refer to the below code where the mentioned method is used in Windows Cpp using CyAPI.lib

pastedImage_1.png

Thanks,

Yatheesh

0 Likes

Worked exactly as expected thanks!

0 Likes