soc: ti: cc23x0: Add helper script to calculate crc32
As stated in [0] section 9.2 Customer Configuration: There are four different CRCs used to validate the CCFG data. One of the CRCs, the user record CRC, is optional and is the last four bytes of the 128B user record. The data over which the CRC is calculated starts at “Data Start Offset” from Table 9-2 and ends at the "CRC Offset". CRC field width is 4 bytes. Meaning the MCU will not start if the CRC fields are not correct. TI's tools will automagically set these fields, but other tools have to do it by hand. Therefore a new post-build-command is introduced to set the fields at least in the .hex file by generating a new _crc32.hex file. [0] https://www.ti.com/lit/ug/swcu193a/swcu193a.pdf Signed-off-by:Fabian Pflug <fabian.pflug@gumulka.eu>
Loading
Please sign in to comment