SD card Write Fail TWR-LCD MCF51JM128

Discussion created by WERNER VERSCHUUR on Apr 11, 2011
Latest reply on Dec 26, 2011 by WERNER VERSCHUUR

Hi Guys


Busy with a new project where I have to log events to uSD card with Touch LCD support.

I chose the TWR-LCD in stand-alone mode withe JM128. Using Codewarrior V6.3.

The files sytem is FatFS by Mr Chan. The Processor expert Bean supplied with the TWR kit is labeled V0.7c. All functions "File open, Directory change and File read" works perfect except for f_write. I have spent the past 2 weeks trying to get the file write function to work correctly, at a point where I can actually write the first character of a string to an existing file, some how the data pointers get corrupted and wrong characters are saved to the file.


I rewrote the PE Bean with the latest Fatfs from Chan, no luck the results are the same. 


Did anyone else come across the problem? Desperately going to try and upload my project folder for viewing and possible assistance.


Extract the folder to Freescale eGUI\FreescaleeGUI TWR-LCD Examples\TWR-LCD Demo Projects\CW MCU 6.3\


Any help will be greatly appreciated.