Using Tiva TM4C123G development board I have implemented a CRC16 based calculation memory. All fine.
However I would like perform this checksum test on my internal flash and internal eeprom.
I am using Code Composer Studio v5.5. I have not found anyway that CCS can calculate the CRC and put it in a specific adress. So my idéa was the the MCU makes the first boot after software download and checks if we have a CRC that is other than 0xFFFF. If we read 0xFFFF at CRC adress we calc the new checksum and write it down to flash. All other times the checksum will be compared. New release will overwrite previous checksum adress with 0xFFFF.
I do already know how to calculate checksum. The problem is what linker commands or synthax do u use to allocate and get access to this CRC storage in my flash memory.
What could I write in startup_css.c and main.c to save and read my crc "variable" at this static adress. Could you please provide a code example that also shows how to reach it from main.c