 RE: Problem with generating a single hex file for code banked application Tsuneo Chinzei What is the purpose for you to make the HEX file? Isn't it burning it to SiLabs 'F122 ? I once posted a related topic on SiLabs forum, http://www.cygnal.org/ubb/Forum4/HTML/000735.html Here is updated version (for USB debug adapter) 0) Apply BL51 linker - SiLabs IDE doesn't fully recognize object generated by LX51 1) OC51 - Convert original banked omf file into separated object files of each bank > OC51 mycode.omf mycode.B01, mycode.B02, mycode.B03 are generated. 2) OH51 - Convert each separated object file to HEX file > OH51 mycode.B01 HEX (mycode_B01.hex) > OH51 mycode.B02 HEX (mycode_B02.hex) > OH51 mycode.B03 HEX (mycode_B03.hex) 3) SRecord - Split banked code area from common code For Bank 2 and 3 > srec_cat mycode_B02.hex -intel -crop 0x8000 0x0000 -o mycode_B02_b.hex -intel > srec_cat mycode_B03.hex -intel -crop 0x8000 0x0000 -o mycode_B03_b.hex -intel 4) FlashUtilCl - Write them to the FLASH > FLASHUtilCL downloadusb -E mycode_B01.hex "" 0 0 > FLASHUtilCL downloadusb -B2 mycode_B02_b.hex "" 0 0 > FLASHUtilCL downloadusb -B3 mycode_B03_b.hex "" 0 0 SRecord http://srecord.sourceforge.net/ Tsuneo |