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.

CCS/CCSTUDIO: Hot to get fil size

Part Number: CCSTUDIO


Tool/software: Code Composer Studio

Hi there,

I'm working on CCS5 with gel function so I can copy the content of a file on a user vector.

I was able to correctly use the GEL_MemoryLoad(UpdateBuffer, PAGE_DATA, 1, filename, 16, 0) function so I'm able to copy the content of "filename" to UpdateBuffer, defined as follow:

#define UPDATE_BUFFER_SIZE 65535

Uint16 UpdateBuffer[UPDATE_BUFFER_SIZE];

On my application "filename" is a .bin file located on a folder on my computer.

Is there a way to get the filename size? (both in bytes or words)

Thank you

Regards

Stefano