Copy from flash

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

cross mob
AlSa_1585471
Level 1
Level 1
Welcome!

Hello everyone,

need an simple example how to copy internal flash data from adress 0x21100-0x214FF to 0x32100-0x324FF.

That's 4 rows

For write i would use CySysFlashWriteRow.

How to read, respectively how to set a pointer to start adress 0x21100 and read out the full raw.

Thanks

Alex

0 Likes
1 Solution

Just use two pointers initialized with the required addresses. There is nothing special needed to read from flash.

Bob

View solution in original post

0 Likes
4 Replies
AlSa_1585471
Level 1
Level 1
Welcome!

come on guys, please

uint8_t value = 0;

Would like to store value from internal flashaddress 0x21100 to var value.

Should be pretty easy, but i never did it bevor.

Very thanks

0 Likes

Just use two pointers initialized with the required addresses. There is nothing special needed to read from flash.

Bob

0 Likes

Hi Bob,

thank you.

am currently confused how to do that

Could you please write this 2 rows code?

Just for

"uint8_t value = 0;

Would like to store value from internal flashaddress 0x21100 to var value."

I've been testing for a few hours, and blackouted

Best regards

Alex

0 Likes

have got it

0 Likes