@echo off
set curdir=%~dp0
cd /d %curdir% 
convert_hex ..\Debug_FLASH\Exe\cva_bootloader_m0118.srec /CR:0x00000000,0x10000 /XS:32 -o cva_m0118_FlashDrv_iar.srec
convert_hex cva_m0118_FlashDrv_iar.srec /FA /FR:0x20005BF0-0x200063EB /FP:FF /CS9:@0x200063EC /XS:32 -o cva_m0118_FlashDrv_iar.srec
convert_hex cva_m0118_FlashDrv_iar.srec /XI:32 -o cva_m0118_FlashDrv_iar.hex