1 Reply Latest reply on Apr 13, 2019 4:21 AM by LiDo_2439176

    Flash own ELF file on PSoC4 CY8CKIT-149

    anku_4172646

      Hello,

       

      is there any way I can flash my own ELF file on a PSoC4 (CY8CKIT-149)??

       

      I have wrote my own Startup-Code and HW initialization and would like to run it on the PSoC. Unfortunately I do not find any possibility to flash the PSoC using PSoC Creater.

       

      Br,

      Andreas

        • 1. Re: Flash own ELF file on PSoC4 CY8CKIT-149
          LiDo_2439176

          Hi Andreas,

           

          there are two ways:

           

          1) use cyelftool.exe tool to convert your elf file to hex file. You will find it in

                    C:\Program Files (x86)\Cypress\PSoC Creator\4.2\PSoC Creator\bin\ directory.

           

                     cyelftool -C "<path>\<your_file>.elf" --flash_row_size 128 --flash_size 131072 --flash_offset 0x00000000

           

              Then use PSoC Programmer. This is the short way.

           

          2) use openocd 2.1 tool using kitprog as cmsis-dap programmer.

           

          Best regards,

          Liviu