Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 232530

Forum Post: TMS570LS3137: UniFlash v8.8.0 behavior with MCU programming & CRC

$
0
0
Part Number: TMS570LS3137 Other Parts Discussed in Thread: UNIFLASH , Tool/software: Hello there, We need some help on the following experience with discrepancies that we cannot get a hold of. We would like to use UniFlash to program production units. However, if the MCU was never been flashed by IAR EWARM, the UniFlash programming with the .HEX file will not match the CRC computed by the in-chip CRC Engine. If we flash at least once with EWARM, then use UniFlash, all good. We use the following steps to understand but we failed: Compile with IAR EWARM, release mode, 1MB Flash ROM been allocated from 0x0 to 0xFFFFF, with unused bytes filled with 0xFF . This action outputted both .OUT and .HEX files. Save both .OUT and .HEX file to a folder. Use EWARM “Download active application” to MCU Flash, 64-bit CRC computed by the in-chip TI TMS570LS3137 CRC engine is 0x861D XXXXXXXXXXXX for the range from 0x0 to 0xFFFFF (1MB), with 8-byte addressing mode (CRC engine). Re-flash the .HEX file from step 1 using UniFlash v8.8.0, still the same CRC 0x861D XXXXXXXXXXXX was observed. Using UniFlash, we’ve compared both the .OUT and .HEX image files with MCU memory contents read back from the Flash ROM, all match. All seems perfect up to this point! Compile with IAR EWARM, release mode, 1MB Flash ROM been allocated from 0x0 to 0xFFFFF, with unused bytes filled with 0x00 . This action outputted both .OUT and .HEX files. UniFlash: flash .HEX file ( 0x00 filled) to MCU, CRC 0xF611 XXXXXXXXXXXX - this step is to replace only all filled by from 0xFF to 0x00. UniFlash: flash .HEX file ( 0xFF filled) to MCU, CRC 0x52EB XXXXXXXXXXXX !!! We don’t understand. Repeat step 1 above (use 0xFF as filling for unused bytes) EWARM “Download active application” to MCU Flash: CRC 0x861D XXXXXXXXXXXX was observed, which is repeatable. UniFlash: flash .HEX file ( 0xFF filled) to MCU, CRC 0x861D XXXXXXXXXXXX – it is now good! Any UniFlash settings that I've missed? Thanks in advance.

Viewing all articles
Browse latest Browse all 232530

Trending Articles