6 Replies Latest reply on Jul 14, 2017 4:51 AM by jobi

    [CY8CKIT-042-BLE PIONEER KIT] How to create a hex file from elf file in linux?


      Hi Guys,


      I am trying to build binary for CYBL10563-56LQX1 processor with came with came with CY8CKIT-042-BLE PIONEER KIT.


      I managed to generate the a make file from the PSoC Creator and use it to build the application under Ubuntu Linux.


      But the hex file created by the objcopy does not work. I mean the PSoC Programmer does not load.


      The command I used to generate the hex file is as follows:


      arm-none-eabi-objcopy -j .text -j .data -O ihex "$1" output/debug/bin.hex


      I have compared the binary produced by objcopy and cyelftool.exe with a hex editor and found that the format is completely different.


      Clearly the linux command is not doing the job.


      Anyone knows how I can generate the correct hex file for the KIT? Or may be load the objcopy hex file?


      Your help will be much appreciated.


      Thanks in advance.