I have to establish a file transfer mode between C# and CCS. To make sure the text files has transferred properly, after sending a file I read it from C# to compare with the origin.
I need to look at the flash memory content all the time for these reasons:
- I get different results of writing to specific memory segments, for instance: if I start writing at 0x20000, some characters distord, but if I start at 0x20008, everything works OK then, 0x20016 half OK half garbage, etc..
- Even with the Non-problems mode (0x20008) just the transferring the first file works fine, if I send another file and try to read it then, all I get is just garbage.
This photo if anyone would like to see the writing/reading procedure code: