I would like to put a checksum to the end of flash area. I wrote a program to calculate checksum and write it to the bin file. Then I added the program to after building actions. The bin file works fine. But when I debug the program, the checksum is missing. It seems that gdb ignores the bin file and somehow the unmodified program is used. Could you tell me how to make it work in debugging environment?