Hi
I'm trying to learn how to store a log file in to a SD-card. All is fine until I want to check the file on my PC (Win7). When I open the card I can see the file in explorer but if I try open the file my computer says that it can't find the file.
The size of the file is 1kb so some information should be there.
I can't find any examples codes to test for ARM:s
note: I use Flowcode ARM v.4 with an ECIO.
/Jesper
Can't open a file created on a SDcard.
Moderator: Benj
Can't open a file created on a SDcard.
- Attachments
-
- templogg.fcf_arm
- (6.5 KiB) Downloaded 230 times
Jeppe
Don't say oups!? Say Interesting!
Don't say oups!? Say Interesting!
- Steve
- Matrix Staff
- Posts: 3431
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
Re: Can't open a file created on a SDcard.
This is not my area of expertise, so I can only offer suggestions on how I would try to solve this issue.
You could try reading the SD card on the PC in some kind of raw format and compare it with a similar file that can be read properly. There is probably free software for this somewhere on the web.
Another thing I would try is to create a file on the card using the PC and then develop firmware on the chip to read it back. Once you have this working, you can try modifying the data within an existing file (using the chip) and reading it back on the PC. And then once this is ok, start creating files using the chip.
I hope this is of some use.
You could try reading the SD card on the PC in some kind of raw format and compare it with a similar file that can be read properly. There is probably free software for this somewhere on the web.
Another thing I would try is to create a file on the card using the PC and then develop firmware on the chip to read it back. Once you have this working, you can try modifying the data within an existing file (using the chip) and reading it back on the PC. And then once this is ok, start creating files using the chip.
I hope this is of some use.
- JonnyW
- Posts: 1230
- Joined: Fri Oct 29, 2010 9:13 am
- Location: Matrix Multimedia Ltd
- Has thanked: 63 times
- Been thanked: 290 times
- Contact:
Re: Can't open a file created on a SDcard.
Hello. This may be completely off but I remember an issue similar to this using a USB disk on a Linux-based embedded device.
When it came to read the file in Windows (using notepad) the file could not be read (it was a few years ago and I cant really remember but I might have had better luck in Wordpad?).
Anyway, the issue was that the file had not been closed properly, so although the filer was aware that the object existed, its contents could not be read.
I hope this helps,
Jonny
When it came to read the file in Windows (using notepad) the file could not be read (it was a few years ago and I cant really remember but I might have had better luck in Wordpad?).
Anyway, the issue was that the file had not been closed properly, so although the filer was aware that the object existed, its contents could not be read.
I hope this helps,
Jonny
Re: Can't open a file created on a SDcard.
Thanks
It looks like the problem exists in the "create file" macro. If I create a blank file on my PC and store it on the SD card, I can then write to that file and also open it on my PC.
It looks like the problem exists in the "create file" macro. If I create a blank file on my PC and store it on the SD card, I can then write to that file and also open it on my PC.
Jeppe
Don't say oups!? Say Interesting!
Don't say oups!? Say Interesting!