PSoC Bootloader writing Metadata Row after every reset

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

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi All,

   

in order to change or repair any metadata rows, the PSoC Bootloader component v1.50 calls the SetActiveAppInMetadata() function after each reset (near the end of the Bootloader_Start() function).

   

This function then calls ...SetFlashByte(), which will call CySysFlashWriteRow() (in Flash.c, see code location pictures in attachment).

   

In most cases the active app (and all the other metadata content) would stay the same, because it only changes when uploading a new firmware through the bootloader. The above mentioned calls are performed even if the content of the metadata row does not see any change. So am I missing something here, or is the bootloader indeed erasing and programming the metadata rows each time and thereby wasting a flash write cycle at each reset?

   

Kind regards.

0 Likes
2 Replies
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi,

Your understanding is right. The current component implementation is done in this format. May be in next component version it will be solved. You can edit the code of the current component to avoid this.

Best Regards,
VSRS

0 Likes
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi,

   

If you want to modify the component, first have to create a component library, then you will be able to import an existing component into your library.

   

File->New->Project, then click the "Other" tab, and select "PSoc Library"

   

In the workspace explorer, you can then click on the components tab, then right click and import component.

   

Change the source library to the PSoC creator one, and choose your component. This document should be helpful http://www.cypress.com/file/137436/download

   

 

   

Best Regards,
VSRS

0 Likes