Part Number: PROCESSOR-SDK-AM437X
Other Parts Discussed in Thread: AM4378
Tool/software: Code Composer Studio
I'm developing a bare metal program based on i2ctest in "processor_sdk_rtos_am437x_6_03_00_106".I want to read 256kbit binary file then write them to EEPROM by i2c. My file operation as follow:
test_file=fopen(filename,"rb");
char* txBuf32ByteFullSpace1;
txBuf32ByteFullSpace1=(char*)malloc(2+1024*32);//+2 for 2byte address
int fSize=0;
fSize=fread(txBuf32ByteFullSpace1+2,1,1024*32,test_file);
everytime fSize < the real file size,because of 0x1a
I can't solve this.it seems that "rb" is not be rightlydistinguished by progrom.
i even try test_file=fopen(filename,"rabbit"); CCS can pass the compile and debug it.
CCS version:9.3.0
c version :7.3.1(linaro)



