This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
hello,
my program some like that:
unsigned short realimbuf[163840];
...
FILE * rdfile;
rdfile=fopen("....","r");// read an image data
unsigned int filesize;
filesize=fread(realimbuf,1,163840,rdfile);
...
but
debug : find filesize value is 149180 ;
memory : realimbuf only have a part of image data , some data have not read in this memory , so what is the problem ?
i hope some people tell me the reason.
thank all!
thank!
luo
Hi,
With the information provided it is very difficult to pinpoint an exact reason for the problem. Since you are using Console I/O functions, I would first read through the very informative page below, especially regarding heap and stack requirements:
http://processors.wiki.ti.com/index.php/Tips_for_using_printf
Also, I frequently test console I/O operations in a variety of boards and processors and therefore I send you just a small project I use here (requires CCSv5.2.1). It may help you perform a check on syntax and other things.
Hope this helps,
Rafael