09-12-2018 05:11 AM
Hi, i need to read data from a file in a bare metal application. Since the file contains too much data, it crashes. Is there a way to do it?
09-13-2018 12:25 PM
09-14-2018 03:48 AM
Thank you im gonna take a look into it !! I must load a lot of weights for a convolutional net and when the layers are too big it crashes. Previously i've been using linux and it ran perfectly probably because there is a file system. Now i moved the application on bare metal and i've been having some issues. I'll let you know how it works.
09-14-2018 03:35 PM
Hi, i was taking a look to xilmfs. It seems i can create my own file system in DDR, create , open , write and read files in it. But can i copy files from my computer's file system to the new file system? I have some files containing "weights" which i need to transfer in DDR.
09-15-2018 05:41 AM
09-15-2018 08:39 AM
Thanks a lot , i will try creating the mfs file which contains my files and then use mfs apis to read it. Unfortunately i avoided using linux because in my application im using the DMAC PL330 and it gives me several problems on linux, while it perfectly works on bare metal. I will let you know in a few days , thank you.
09-15-2018 05:14 PM
There is a way in SDK to load a file from your computer and put its contents in the device memory.
Under the "Xilinx" upper tab, select "Dump/Restore Data File"
Then fill the info in the pop-up window.
09-16-2018 02:35 AM - edited 09-17-2018 06:21 AM
Thank you Ericv , i will test both methods tomorrow when i get back to the office.
Update: i tested the dump/restore memory feature and it does not work for my purpose. I am writing a file in a memory location but when i read from it , i always read the same number value despite from the file i load into it.