- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I would like to extract the HEX file that can be flashed with PSoC programmer from the generated ELF file.
Is cyelftool.exe the tool to do it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Why do you need to create HEX file from ELF file. Creator creates both of them together actually. Please let us know what prevents you from using the hex file created by PSoC Creator ?
Best Regards,
VSRS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi VSRS,
We are evaluating a static and dynamic analysis tool for our code. The tool needs to be run on the command line. So for software testing we build the code on the command line. The target based testing can be done if we get the instrumented code on the target. So we need to know all the steps and build from command line.
-arptt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
thanks for the clarification. As NJAY mentioned objcopy -j .text -j .data -O ihex <input-file.elf> <output-file.hex> will do the job. Make sure you are running it in an elevated command prompt.
Best Regards,
VSRS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try the (GNU/GCC toolchain) tool objcopy, something in the lines of
objcopy -j .text -j .data -O ihex <input-file.elf> <output-file.hex>