I try to write some codes to rest space of MCU's flash ROM (behind my program), so I should know the lastest byte of my program. How to do all of these?
Why not placing this codes to the end of the physical memory area. So you always have this codes at the same adress. Even when you insert some more Bytes to your original source code you don't have to move this codes to another location.