Page 1 of 1

How to pre-write binary data into Flash on xCORE-200 eXplore

Posted: Tue Dec 21, 2021 6:49 am
by ciphertext
Hi All,

Recently, there's a problem I need to resolve. I need to write binary data into Flash on xCore-200 eXplore.
Is there any method to accomplish this?
Thanks

Re: How to pre-write binary data into Flash on xCORE-200 eXplore

Posted: Wed Dec 22, 2021 3:41 pm
by CousinItt

Re: How to pre-write binary data into Flash on xCORE-200 eXplore

Posted: Tue Jan 11, 2022 7:49 am
by ciphertext
Hi CousinItt,

Thanks for information but there's something different.
I want to download data into Flash directly, and then read data from flash.
Can I do it ? Thanks

Re: How to pre-write binary data into Flash on xCORE-200 eXplore

Posted: Tue Jan 11, 2022 8:23 am
by ciphertext
Or if I have 2 more binary files to be stored into flash. How do I to configure the setting for address of each file?

Re: How to pre-write binary data into Flash on xCORE-200 eXplore

Posted: Tue Jan 11, 2022 5:00 pm
by CousinItt
When you say "directly" do you mean accessing the flash from an xcore device? Libquadflash should handle that, so you can read and write data. See the Libquadflash documentation.

If you mean you want to store multiple binary files in the data partition, it looks like xflash only supports a single data file. Probably you would need to find a way to wrap your binary files into a single data file, and in the process you could insert some metadata to allow you to locate the contents within the data partition. If you're thinking it's not particularly flexible, I have to agree.