11-07-2011 07:19 PM
Hi,
I am using the LM3S8962 on a custom PCB, programmed with LV 2010 V 10.0f2 32-bit and uVision V4.03q.
I am creating a new XLS file and writing a fairly large string, about 780 characters, from memory (after converting some numbers to strings and concatenating a few strings together) to a SD card and am getting instances of bad corrupt files (unable to open, move or delete the files, with a Windows machine reading the SD card saying the file is over 2GB). Sometimes the file is created correctly but it contains a large string of random junk characters. I'd say this problem happens 1 out of 4 times I try to make these files. I also have tried using TCP/IP to get this data off the LM3S8962, and the files I get have the same junk characters in the same spot in them as the file written to the SD card. Thus I think sure this is a problem with the uC and not the SD card setup.
This is an example from one case (in other examples the junk characters are in different parts of the files). The line should look like this:
<__dcp point="cone" diameter="0.01" sensor="Mosquito" depthresolution=".0004" cbrerr="9999999">
But I am getting this:
<__dcp x7´·:‘1··2‘24°¶²º2¹‘‘9²·9·¹‘&·¹¸º´º7‘22¸:492¹·¶:º4··‘1±92¹9‘œœœœœœ‘…………44º22¸:4‘1±9‘œ—Ÿ…44º22¸:4‘1±9‘—‘Ÿ…44º22¸:4‘™‘1±9‘˜‘Ÿ…44º22¸:4‘1±9‘˜Ÿ…44º22¸:4‘‘1±9‘—Ÿ…44º22¸:4‘1±9‘—‘Ÿ…44º22¸:4‘œ‘1±9‘—Ÿ…44º22¸:4‘˜›‘1±9‘—‘Ÿ…
Has anyone else had similar issues or know what is causing it and more importantly how to solve it?
Thanks.
11-10-2011 02:31 PM
VBNan24,
Where is this data coming from (before its in memory).
Can you confirm that it is stored in memory correctly?
You say this problem happens 25% of the time, the other 75% does this work perfectly as expected through both TCP and on the SD card?
Can you post the code you are using?
Let us know.
-Sam K
National Instruments