Changes

CW308T-AURIX

873 bytes added, 14:30, 7 September 2018
Modifying Boot Header
== Modifying Boot Header ==
To access some features of the TC233LP, such as the Lockstep control and disabling boot pins, the boot header at the beginning of the hex file must be modified. One way to do this is to use the "Edit" button in Memtool. After selecting the first memory range (should begin with 0xA0000000), hit "Edit". Most of the important settings (including lockstep control and boot control) are in the final 2 bytes of the second word (address 0xA0000004).  After modifying the boot header, you'll need to calculate the CRC32 of the header for addresses 0xA0000000 to 0xA0000017, as well as its compliment (bitwise NOT). A resource like https://www.lammertbies.nl/comm/info/crc-calculation.html can be used to calculate the CRC. Make sure the input type is hex. The CRC32 should go in address 0xA0000018, while its compliment should go in address 0xA000001C. For example, the full boot header for lockstep enabled operation should be: 00000000 B3590170 00000000 00000000 00000000 00000000 964C0E85 69B3F17A. Note that the boot header must be manually edited each time a project is recompiled. One way to avoid this is to edit the startup file that sets the boot header. This is included in the hal/aurix folder in ChipWhisperer's firmware directory as crt0-tc2x.S. The boot header can be found on lines 72 to 79. Note that the CRC32/compliment still has to be calculated for lines 72 to 77, replacing the values of lines 78 and 79.
After modifying the boot header, you'll need to calculate the CRC32 of the header for addresses 0xA0000000 to 0xA0000017, as well as its compliment.
== Schematic and Layout ==
Approved_users, administrator
366
edits