■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ファイル作成する方法はありますか?
本質問は以下スレッド続きとなります。
I understand your question, but what is the reason? what do you want with an all-0xff hex-file?
Bob
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
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"が必要です。
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
>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.
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.
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
回答ありがとうございました