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

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
ciphertext
Member
Posts: 9
Joined: Mon Nov 08, 2021 10:40 am

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

Post 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


User avatar
CousinItt
Respected Member
Posts: 360
Joined: Wed May 31, 2017 6:55 pm

Post by CousinItt »

ciphertext
Member
Posts: 9
Joined: Mon Nov 08, 2021 10:40 am

Post 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
ciphertext
Member
Posts: 9
Joined: Mon Nov 08, 2021 10:40 am

Post 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?
User avatar
CousinItt
Respected Member
Posts: 360
Joined: Wed May 31, 2017 6:55 pm

Post 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.
Post Reply