Part Number: MSP430F5659
Good morning everybody!
Today I'm here because I was trying to deal with an issue related to FAT32 system module interfaced with micro SDHC Card 8GB.
I stored a .txt file in SD Card from my PC and the aim of what I'm trying to do is to read what I previously wrote in this file. prova.txt: "qwertyuiop123456789"
FATFS FatFS; FIL elba; DIR dir; FRESULT fat_ret0, fat_ret;
As you can see from my definitions I'm using FATFs library from TI. In the main I call:
fat_ret0=f_mount(0,&FatFS); fat_ret=f_open(&elba,"prova.txt", FA_READ); if(fat_ret==FR_OK) fat_ret=f_read(&elba, &readDATA_buffer, 20, &bytes_read); f_close(&elba);
The issue happens in f_read function when static FRESULT validate function is called.
if (!fs || !fs->fs_type || fs->id != id) return (FR_INVALID_OBJECT)
I really don't understand why I have this result, especially since I can see my .txt file correctely in the expression windows of CCS.
I really would appreciate any comment, help and advice in order to understand better if there is a problem related to my file or to FATFs interface with the SDHC card.
Many Thanks & Kind Regards,
Maria Angela
