We had the following problem: it is necessary in the background during the technology operation to check the compliance of the checksum of the flashed code with the one calculated for the current program call by the current state of the program memory. In this regard, I ask you to answer a number of questions:
1) where is the firmware loaded from ROM located in RAM during the program execution and is there access to it in the background?
2) is it possible to write the firmware to the ROM along with the checksum calculated externally (for example, by the cyclic checksum algorithm), and how to get access to the recorded checksum value while the program is running?
3) is it possible to automatically check the firmware integrity by checksum and at what points: during restarts or in the background with a specified test period?