Flash own ELF file on PSoC4 CY8CKIT-149

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
anku_4172646
Level 1
Level 1

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

0 Likes
1 Solution
LiDo_2439176
Level 5
Level 5
First question asked 50 replies posted 50 sign-ins

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

View solution in original post

0 Likes
1 Reply
LiDo_2439176
Level 5
Level 5
First question asked 50 replies posted 50 sign-ins

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

0 Likes