Read-Only Author Marius Cosa Posted 21-Jan-2009 08:55 GMT Toolset ARM |  FAT12 trouble Marius Cosa Hello, I'm trying to modify one of Keil's USB MSC samples to create by default a folder where files can be placed. The funny part is that when I change the FAT12 root directory entry to the following:
const unsigned char RootDirEntry[DIR_ENTRY] = {
'B', 'O', 'O', 'T', ' ', ' ', ' ',' ', ' ', ' ', ' ',0x28,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
'U', 'P', 'D', 'A', 'T', 'E', ' ', ' ', ' ', ' ', ' ',0x10,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,
};
where 'update' is the folder (thanks to the 0x10 attribute) I can no longer place files in the controller's RAM - windows reports that the disk is full when I try to copy a file there (the directory is started at the first available sector - number 2). I understand that this is a difficult question, but at the same time that it is likely to be a configuration problem. Hope you can help. |