1
在Eclipse中,當我將C elf文件轉換爲IMG文件時,出現構建後錯誤。Eclipse:後期構建命令未找到
這是錯誤:
Building target: USBDebug.elf
Invoking: ARM Sourcery Windows GCC C Linker
arm-none-eabi-gcc ./cyfx_gcc_startup.o ./cyfxtx.o ./cyfxusbdebug.o ./cyfxusbdscr.o -T"C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.2\/firmware/common/fx3.ld" -nostartfiles -Wl,-Map,USBDebug.map -Wl,-d -Wl,--no-wchar-size-warning -Wl,--gc-sections -Wl,--entry,CyU3PFirmwareEntry "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.2\\firmware\u3p_firmware\lib\fx3_debug\cyfxapi.a" "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.2\\firmware\u3p_firmware\lib\fx3_debug\cyu3lpp.a" "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.2\\firmware\u3p_firmware\lib\fx3_debug\cyu3threadx.a" "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.2\\arm-none-eabi\lib\libc.a" "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.2\\lib\gcc\arm-none-eabi\4.5.2\libgcc.a" -mcpu=arm926ej-s -mthumb-interwork -g -gdwarf-2 -o"USBDebug.elf"
**/usr/bin/sh: C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.2\util\elf2img\elf2img.exe: command not found
Finished building target: USBDebug.elf
cs-make[1]: [post-build] Error 127 (ignored)**
cs-make --no-print-directory post-build
Converting ELF to image (.img) format
"C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.2\\util\elf2img\elf2img.exe" -i USBDebug.elf -o USBDebug.img
這似乎很奇怪,我認爲在/ usr/bin/sh的出現,即使我在窗戶。我可以進入命令提示符,並輸入此和它完美的作品
"C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.2\\util\elf2img\elf2img.exe" -i USBDebug.elf -o USBDebug.img
有人會知道爲什麼我找不到命令嗎?