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.

Flash Based Bootloader CRC



Hi,

I ma using DK 129x ,CCS v6 and TivaWare_C_Series-2.1.0.12573 ,I am using flash based boot loader .

I have an interpretation about the CRC32 used with the boot loader which check the four bytes in the header of the firmware's image,i am wandering how can i build the firmware image with with an 8 word header appended at the top of the interrupt vector table. with that values :

Word 0: 0xFF01FF02
Word 1: 0xFF02FF03
Word 2: Length of the firmware binary image in bytes.
Word 3: CRC32 calculated over entire image except for
the 4 bytes occupied by this word. The CRC calculation
includes the header marker words and the length word.

Thank you

Ahmed Hassan

  • Hi,

    Suggest that find out other method(s), at least for the first two words, W0 and W1 - these locations are reserved and must comply with the hardware - there should be the stack pointer location and the address of first executable location, to be loaded into PC. Maybe at the end of vector table, on non-used locations, rather than at the beginning, where important system interrupt vectors must reside.

    Petrei

  • Hello Petrei,

    Thanks for your interest,You are right and that what the boot loader already does as it scans all the vector table till it gets the marker words.But still my problem how can i add that information with the firmware images.

    Ahmed

  • Hi,

    See for reference this thread : http://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/t/372271.aspx

    where I posted an example picked up from other TI forum. All is done by the tools, see also the linker file.

    Petrei