Part Number: TMS320F280045
Tool/software: Code Composer Studio
Hi,
I have a project for the F280045 for which I have Flash ECC enabled. I added the ECC memory ranges to the Linker Command File MEMORY section using the correct start address according to SPRS945C table 6-2 (i.e. 0x01080000 for bank 0) and a length of 1 byte for every 8 bytes of flash memory covered. This is all tested and works well (compiles, runs and is able to detect ECC errors). I will need to convert the OUT file to a HEX file for flashing.
I was using the following in CCS Build -> Steps -> Post-Build steps:
"${CG_TOOL_HEX}" -i "${BuildArtifactFileName}" -o "${BuildArtifactFileBaseName}.hex" -romwidth 16
After a succesful compilation and linking, the hex2000 application gives me the following warning:
warning: section DSP.out(.ecc2) at 01080000h falls in unconfigured memory
Effectively, the memory addresses after 0x01080000 were not included as part of the resulting HEX file.
I tried removing the post build steps and using the C2000 Hex Utility options on the project properties (which I assume should be equivalent). I enabled the utility, selected intel output and configured the romwidth option to 16. I obtain the same warning in the console and the HEX file still doesn't contain the ECC memory ranges. I added the option to create a mapfile output, the CONTENTS section doesn't list the ECC memory ranges.
What I understand from SPRU513 is that the ranges defined Linker Command File would be "configured memory" and would be used to create the HEX file, but it doesn't seem to be the case for the ECC memory.
I have a similar project for the TMS570LS033x using ECC as well and it works without a problem using post build steps similar to the described above (romwidth = 32)
I would like to avoid duplicating what is already specified in the Linker Command File in a command file to use the hex2000 ROMS directive (haven't tried and not sure if this works). Is there something else I could try or is this the only path to include the ECC ranges in the HEX output?
Thanks in advance,
Jose Lopez