@echo off
set curdir=%~dp0
cd /d %curdir% 
convert_hex ..\Debug_FLASH\Exe\cva_bootloader_m0128.srec /CR:0x00000000,0x10000 /XS:32 -o cva_m0128_FlashDrv_iar.srec
convert_hex cva_m0128_FlashDrv_iar.srec /FA /FR:0x200033F0-0x20003FEB /FP:FF /CS9:@0x20003FEC /XS:32 -o cva_m0128_FlashDrv_iar.srec
convert_hex cva_m0128_FlashDrv_iar.srec /XI:32 -o cva_m0128_FlashDrv_iar.hex