- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks ANKS. That is what I ultimately did, but I was thinking that maybe there was some other way than to use "magic" numbers.