View previous topic :: View next topic |
Author |
Message |
electr0dave
Joined: 10 Aug 2014 Posts: 24
|
|
Posted: Tue Aug 12, 2014 2:21 pm |
|
|
In fact it works like you said ....
But I tried to do something else .... I did reset the circuit and "dir" again so I can see if the file was still there.
The answer is no :(.
image hosting sites |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Aug 12, 2014 2:23 pm |
|
|
I'm at a different location for most of today. I'm not at hardware bench.
I can't work on it now. Maybe someone else can help. |
|
![](templates/subSilver/images/spacer.gif) |
electr0dave
Joined: 10 Aug 2014 Posts: 24
|
|
Posted: Tue Aug 12, 2014 2:41 pm |
|
|
OK, I added something written to the file and apparently works even after reset.
PCM programmer your help was invaluable!
Obviously, I also thank all those who came here to answer!
I will continue to put here some questions that may arise, but now finally I have something to "work".
![Wink](images/smiles/icon_wink.gif) |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah
Joined: 11 Mar 2010 Posts: 19378
|
|
Posted: Tue Aug 12, 2014 3:22 pm |
|
|
Now, for the 'fixes'.
There are two sets. The generic ones linked to (which are worth doing), and the ones for MBR support:
<http://www.ccsinfo.com/forum/viewtopic.php?t=43402&highlight=mbr>
This fix would remove the need to reformat the card.
There are to fundamentally different ways of laying out the data on the card. The first is the 'floppy' layout, and the second the 'hd' layout. The CCS drivers as standard only support the former. This fix adds support for the latter. |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
![](templates/subSilver/images/spacer.gif) |
electr0dave
Joined: 10 Aug 2014 Posts: 24
|
|
Posted: Wed Aug 13, 2014 7:03 am |
|
|
I'm making some changes.
1st - fat.c file in line 221
Code: | #define FAT16
// # define FAT32 |
2nd - gives error while compiling
3rd - change line 1342 to
Code: | if (write_fat (Next_Free_Clust, 0xFFFF) == EOF) |
In this case, EOF is returned, giving error to initialize FAT, when the card is not inserted.
Without the card inserted:
free screen capture
I know that the next change can not be "the right one", but it seems to work ...
1 - I put in line 2601:
Code: | ec += mmcsd_init();
if(ec != GOODEC)
return EOF; |
2 - below the last "# endif" I commented:
Code: | //if(ec != GOODEC)
// return EOF; |
The image below shows two tests: the first without the card (error message) and the second with the card (showing the prompt).
images upload |
|
![](templates/subSilver/images/spacer.gif) |
|