- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am learning USB development with Cypress FX3 and I met a problem when going through the tutorials.
I got stuck at the step when I need to use "Project -> Build Project" to generate image file in EZ USB Suite. I got a lot of files, like D file, O file, elf file, etc. except the image file. Does anyone meet the same problem before? Has anyone solved this problem?
By the way, "cs-make[1]: [post-build] Error 2 (ignored)" is showed after I 'build' the project. I am running 64 Win10 OS.
Best,
Eric
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, Please add the following command in Post-Build Steps in Eclipse Properties.
'${FX3_INSTALL_PATH}/util/elf2img/elf2img.exe' -i ${ProjName}.elf -o ${ProjName}.img -v
File->Properties->C/C++ Build ->Settings ->Build Steps ->Post-build steps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1) Are you getting the same problem with all the firmware, or only one particular firmware is not building?
2) Have you make sure that you selected "copy to workspace" while importing the project ?
3) I suppose you are using Windows. Please go through the attached application note which shows how to import and build existing projects. Please refer section 8 of the AN75705 http://www.cypress.com/documentation/application-notes/an75705-getting-started-ez-usbr-fx3tm-zh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
It seems the problem only happens when I try to generate image file for project AN75705. I tried some examples in the files and there is no problem.
Best,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have the same problem with AN75779 example project. I edited the make file to add elf2img. But still, there is no image file generated. Can anyone help? Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please download the latest AN75779 App Note firmware.
We have fixed this issue and also added other features too.
Check App Note Revision History for added features.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
srdr,
Thanks. I downloaded the new ones and it is working now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, the best thing is to add a final step to any makefiles you are using for your project(s), as shown below. In this case 'make' will expect the elf2img utility to be available. elf2img itself is generally found in the util/elf2img folder of the FX3 SDK. HTH.
compile: $(C_OBJECT) $(A_OBJECT) $(EXES) # add the step necessary to create an img file ../elf2img/elf2img -i $(MODULE).elf -o $(MODULE).img
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, Please add the following command in Post-Build Steps in Eclipse Properties.
'${FX3_INSTALL_PATH}/util/elf2img/elf2img.exe' -i ${ProjName}.elf -o ${ProjName}.img -v
File->Properties->C/C++ Build ->Settings ->Build Steps ->Post-build steps