1 Reply Latest reply on Sep 19, 2019 11:45 PM by LinglingG_46

    如何一次同时烧录bootloader和application?

    SiCh_2873226

      Hi ,

           我们的bootloader和bootloadable的例程产生的bootloader程序和application程序如何合并成一个hex,一次烧录到芯片内?有什么AN或工具么?

       

      Best Regards

      Simon

        • 1. Re: 如何一次同时烧录bootloader和application?
          LinglingG_46

          PSoC4 :

           

          直接烧写bootloadable工程生成的hex。

           

          PSoC6:

           

          In, PSoC Creator 4.2, you need to add post_build_core1.bat and line post_build_core1.bat creator ${OutputDir} ${ProjectShortName} to user commands under project Build Settings in app0, to copy the resulting ELF file into the project’s root folder for merging with app1.

           

          Then add below code snippet to the ending of file app1->post_building_core1.bat. This command line enables merging the ELF file copied from app0 into hex file generated for app1.

           

          @rem Merges App0 and App1 into a single hex file for easier programming

          %CY_MCU_ELF_TOOL% -M %OUTPUT_DIR%\%PRJ_NAME%%ELF_EXT% ..\App0%ELF_EXT% --

          output %OUTPUT_DIR%\%PRJ_NAME%_merged%ELF_EXT% --hex %OUTPUT_DIR%\%PRJ_NAME%.hex

           

          You can refer to ce220960 for details of merging the bootloader and application files.