PSoC4S bootloader programming tips.

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.
NaMo_1534561
Level 5
Level 5
Distributor - Macnica (Japan)
100 replies posted 100 sign-ins 50 replies posted

Hello,

In the bootloader project, it was found that when writing firmware smaller than the firmware size already written, the previous data remains in the part that is not overwritten.

(The log data read by the PSoC Programmer is attached. Log is the firmware that uses up to 0x1600-0x417F and overwrites the firmware that uses only up to 0x1600-0x3FFF.)

What will happen to the program if unnecessary data remains like this?
When writing the firmware, the metadata is also written, and since this data is referenced, even if unnecessary data remains, it is ignored. (no problem)
Or, if unnecessary data remains, the program may seem to be working, but can't it be guaranteed?

Please tell me if and why data clearing is required for Flash areas larger than the program size.


MPN: CY8C4025LQI-S411

Best Regards,

Naoaki Morimoto

0 Likes
4 Replies
Alakananda_BG
Moderator
Moderator
Moderator
50 likes received 250 sign-ins 250 replies posted

Hi,

What will happen to the program if unnecessary data remains like this?

>>Nothing will happen because the code execution of your application will not reach unnecessary areas.

if unnecessary data remains, the program may seem to be working, but can't it be guaranteed?

>>We are checking and will get back to you.

Regards

 

Alakananda
0 Likes
NaMo_1534561
Level 5
Level 5
Distributor - Macnica (Japan)
100 replies posted 100 sign-ins 50 replies posted

Hello Alakananda-san,

>>We are checking and will get back to you.

Do you have any update on this?

Is it necessary to erase all areas where the bootloader program is written and then write the program to guarantee the operation of the firmware?

Best Regards,

Naoaki Morimoto

 

0 Likes
Alakananda_BG
Moderator
Moderator
Moderator
50 likes received 250 sign-ins 250 replies posted

Hi,

Is it necessary to erase all areas where the bootloader program is written and then write the program to guarantee the operation of the firmware?

>>We have not seen any problems with this kind of issue

Regards

Alakananda
0 Likes
NaMo_1534561
Level 5
Level 5
Distributor - Macnica (Japan)
100 replies posted 100 sign-ins 50 replies posted

Hello Alakananda-san,

Thank you for your reply.

I tell the customer that when updating the firmware with the bootloader, the original Bootloadable area can be overwritten without deleting it.

 

Best Regards,

Naoaki Morimoto

 

 

0 Likes