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.

Reading *.bin files

Other Parts Discussed in Thread: TMS320C5515

Hi,

Lately I have been working on getting the TMS320C5515 to execute code out of flash.

I've finally got a working example going, where the microcontroller executes a small amount of code from RAM at bootup and then switches over to executing code out of flash.

Basically I was able to take the *.bin file produced by my project in CCS6, modify it and load it into flash.

The modifications consisted of terminating the RAM sections so the TI boot loader stops loading in code from flash, and when loading into flash any code that would execute from flash, the section headers were stripped out.

I was able to get the project up and running today, but with limited success.

It seems that the algorithm used to calculate the number of bytes that should be read in each section is off, but it only occurs sometimes.

I have an issue where when reading how many bytes a certain sector should be, it comes up short.

I designed it around the documentation inside of SPRABD7B section 3.1.

Table 3 explains the file format for the *.bin file.

Does anybody know of any example code that demonstrates how to properly interpret a *.bin file?

I'm thinking my code incorrectly calculates how many padding bytes there should be, this only seems to happen when the linker fills in a hole with a value too.

Can the linker filling in values for the holes change the interpretation of the *.bin file?

I'll look more into it tomorrow to see exactly what the issue is, but it's tough to reproduce and takes a long time for me to get to that point in the code.

Any suggestions would be welcomed!

Thanks,