cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

RyYo_1406951
Contributor II

■English
Is there a way to create a Hex file whose "User's Flash (Program)" area is All "1"?

■Japanese
「User's Flash(Program)」領域がAll「1」のHexファイル作成する方法はありますか?

本質問は以下スレッド続きとなります。

Flash Write ALL 1/0

0 Likes
8 Replies
JoMe_264151
Expert II

I understand your question, but what is the reason? what do you want with an all-0xff hex-file?

Bob

0 Likes
Anonymous
Not applicable

At a guess, he wants a method of measuring some operation being performed either by recording the operation into flash, or by the flash chip being programmed with the firmware image (if that is what he is measuring)

Here's the original post: Flash Write ALL 1/0

0 Likes
RyYo_1406951
Contributor II

Bob-san

■English

"ALL 1 Hex File" is necessary because I want to do a retention test of Flash.

■Japanese

Flashのリテンションテストを行いたいため、"ALL 1 Hex File"が必要です。

0 Likes
JoMe_264151
Expert II

A flash retention specification was already made by Cypress, you really may trust that. Check the PSoC family datasheet.

You do not need to check the whole flash for retainig data, a single row would do.

BTW: What will the CPU do when executing all '1' program?

Bob

RyYo_1406951
Contributor II

>A flash retention specification was already made by Cypress, you really may trust that. Check the PSoC family datasheet.

>You do not need to check the whole flash for retainig data, a single row would do.

⇒Since we want to check not only Cypress data but also by me, a Hex file of All "1 (0xFF)" is necessary.

0 Likes
Anonymous
Not applicable

A program of all 0xFF would have odd behavior when running, since you wouldn't be allowing for a small section of space to be used for a running application.

You could try using some sort of hack with a programmer to write/read to the chip the "1"s and "0"s, but that would be a lot of effort.

0 Likes
Vasanth
Moderator
Moderator

Hi Ryuuji san,

Creating a hexfile with all ones will be not helpful as check sum verification is an important step as per programming spec and it will note be possible. Can't you check this at some specific rows(as bob suggested) if you want to do it ?

Best Regards,
VSRS

0 Likes
RyYo_1406951
Contributor II

回答ありがとうございました

0 Likes