Hi
Our definitive application is loaded by a custom loader, which checks the applicative header (that contains the binary size) and its CRC.
I've created my open Flash Loader to use with our custom board with Cortex-M0 and SPI flash. My Flash loader creates a "dummy" header of the flashed binary, so that when i reboot the board, my custom loader can check the CRC of the application, gets the binary size and starts it (copy to RAM etc...).
My problem is that i need the binary size at the beginning of the CRC computation but the flash loader has function init(), programPage() that does not provide binary size. And even at the end, we don't known the real size, because it is only multiple of page size.
Is it possible to get the binary size in another way?
Will it be possible to do that in a future version, in init for example?
Note that it is already possible with IAR workbench.
Our definitive application is loaded by a custom loader, which checks the applicative header (that contains the binary size) and its CRC.
I've created my open Flash Loader to use with our custom board with Cortex-M0 and SPI flash. My Flash loader creates a "dummy" header of the flashed binary, so that when i reboot the board, my custom loader can check the CRC of the application, gets the binary size and starts it (copy to RAM etc...).
My problem is that i need the binary size at the beginning of the CRC computation but the flash loader has function init(), programPage() that does not provide binary size. And even at the end, we don't known the real size, because it is only multiple of page size.
Is it possible to get the binary size in another way?
Will it be possible to do that in a future version, in init for example?
Note that it is already possible with IAR workbench.