I am new to using ti microcontroller and finding my feet... maybe someone in forum can point me in the right direction
Objective is to generate ECC and flash to TMS570LS3137 MCU - I'm using USB Dev Kit for target hardware, and I have not tried flashing ECC to hardware yet, but I found some differences between linker and nowECC generated ECC.
Used Linker Generated ECC (Code Composer Studio 5.5) to produce binary with following amendments to linker command file:
MEMORY
{
FLASH_VECTORS (RX) : origin=0x00000000 length=0x00000020
FLASH_APP (RX) : origin=0x00000020 length=0x002FFFE0
EEPROM_SEC1 (R) : origin=0xF0200000 length=0x00004000
EEPROM_SEC2 (R) : origin=0xF0204000 length=0x00004000
EEPROM_SEC3 (R) : origin=0xF0208000 length=0x00004000
EEPROM_SEC4 (R) : origin=0xF020C000 length=0x00004000
ECC_VECTORS (R) : origin=0xF0400000 length=0x00000004 ECC={ input_range=FLASH_VECTORS, fill=false }
ECC_APP (R) : origin=0xF0400004 length=0x0005FFFC ECC={ input_range=FLASH_APP, fill=false }
.
.
and update to sections:
SECTIONS
{
.
.
.ecc0 : {} > ECC_VECTORS
.ecc1 : {} > ECC_APP
}
There is some meta data that is appended to binary after build, and this meta data is located within FLASH VECTORS region so I was concerned that some ECC values would now be invalid.
I did notice in the MAP file that the location for the meta data was identified as UNINITIALIZED, and read somewhere that ECC would not be generated for uninitialised memory locations. This gave me hope that I could use the linker method but thought I would cross-check by generating same ECC using nowECC (v2.22)
I have been unable to generate the same ECC data using the same ELF out file, whatever options I select, and I've re-read user guide several times. I had assumed the nowECC would generate data to flash at 0xF0400000 and this would be same as binary output from the linker commands, but I believe I must be mistaken.
The processors.wiki.ti.com/.../Linker_Generated_ECC mentions to specify fill=false to get same output as nowECC.
I have also looked at SPNA126–February 2011 ECC Handling in TMSx70-Based Microcontrollers
Q1) can output from linker generated ECC and nowECC be compared and be expected to be same?
Q2) if Q1 suggests can compare, what nowECC options would I need to choose to generate same output?
Any tips, or pointers to more information that can help me bottom out this ECC generation would be most welcome.