You are here

How to get Bootloadable Application Version Info Programmatically | Cypress Semiconductor

How to get Bootloadable Application Version Info Programmatically

Summary: 2 Replies, Latest post by dave_glatfelter_1957376 on 19 Oct 2016 05:43 AM PDT
Verified Answers: 1
Last post
Log in to post new comments.
dave_glatfelter_1957376's picture
User
10 posts

Hello,  Can anyone tell me how to go about getting the Bootloadable Component's Application Version programmatically from the bootloadable application code?  I realize that it's stored in the Meta data, but there doesn't appear to be a similar function to Bootloader_GetMetadata.  Also, Bootloadable_v1_50.pdf says that the define, Bootloadable_META_APP_VER_OFFSET is now deprecated.

Thanks.

 

ANKS's picture
Cypress Employee
89 posts

Hello,

 

You have to find the address in the Flash where the bootloadable application version is stored (by going to the definition of Bootloader_GetMetadata API and then going to the some macro define values).Once you get the address you can read it via \CY_GET_REG16 API.

I am attaching certain Snapshots showing how I calculated the address  and then printed the application version of bootloader in Bootloadable project.Similarly you can do for Bootloader project.

dave_glatfelter_1957376's picture
User
10 posts

Thanks ANKS.  That is what I ultimately did, but I was thinking that maybe there was some other way than to use "magic" numbers. 

Log in to post new comments.