How to fill out 0xFF to unused flash(hex file) in PSoC Creator?

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

cross mob
HaLi_4101821
Level 1
Level 1
Welcome! First question asked

Hi,

As gist, has any configures of Creator change to fill out 0xFF to unused flash?

If positive, how to do it, please?

Thanks and Regards

Hawk

0 Likes
1 Solution
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi HaLi_4101821​,

Have you tried using the post build command feature in PSoC Creator? It helps to run a custom script after the build finish. This way, you can add your own custom script to fill 0xFF in the PSoC Creator build output file. You can find more information regarding post build commands in this link.

Meanwhile, could you provide more information regarding your application?

Thanks and Regards,

Rakshith M B

Thanks and Regards,
Rakshith M B

View solution in original post

0 Likes
3 Replies
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi HaLi_4101821​,

Have you tried using the post build command feature in PSoC Creator? It helps to run a custom script after the build finish. This way, you can add your own custom script to fill 0xFF in the PSoC Creator build output file. You can find more information regarding post build commands in this link.

Meanwhile, could you provide more information regarding your application?

Thanks and Regards,

Rakshith M B

Thanks and Regards,
Rakshith M B
0 Likes
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

Hawk,

Here's a link to a discussion about preloading PSoC5 EEPROM at programming-time.

EEPROM programming

I hope this helps.

Len

Len
"Engineering is an Art. The Art of Compromise."
0 Likes
Vison_Zhang
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 250 sign-ins

topic How to fill unused area of flash memory with a certain value for PSoC4S provides correct solution by adding below script in ld file

	.fill :
	{
    FILL(0xffff);
    . = ORIGIN(rom) + LENGTH(rom) - 1;
    BYTE(0xff)
    ___ROM_AT = .;
  	} >rom

 

0 Likes