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

PSoC™ 6 Forum Discussions

JeHa_3912621
Level 3
Level 3
25 replies posted 10 replies posted 10 questions asked

------------------------------------------

  Post-build commands for Cortex-M4 core

------------------------------------------

E:\Work\19.Watch\Software\cy8c62-V0.001\Workspace05 - test\App1\Watch001.cydsn>"C:\Program Files (x86)\Cypress\PDL\3.1.0""\tools\win\elf\cymcuelftool.exe" -M .\CortexM4\ARM_GCC_541\Debug\Watch001.elf ..\App0.elf -- output

--: Failed to open --

E:\Work\19.Watch\Software\cy8c62-V0.001\Workspace05 - test\App1\Watch001.cydsn>.\CortexM4\ARM_GCC_541\Debug\Watch001_merged.elf --hex

'.\CortexM4\ARM_GCC_541\Debug\Watch001_merged.elf' 不是内部或外部命令,也不是可运行的程序

或批处理文件。

E:\Work\19.Watch\Software\cy8c62-V0.001\Workspace05 - test\App1\Watch001.cydsn>.\CortexM4\ARM_GCC_541\Debug\Watch001.hex

--------------- Build Succeeded: 01/08/2020 15:06:08 ---------------

按照步骤配置了,编译后没有合并成功。

这个是app1的.bat文件:

@rem Set proper path to your PDL 3.x and above installation

@set PDL_PATH="C:\Program Files (x86)\Cypress\PDL\3.1.0"

@set CY_MCU_ELF_TOOL=%PDL_PATH%"\tools\win\elf\cymcuelftool.exe"

@set IDE=%1

@if "%IDE%" == "creator" (

    @set OUTPUT_DIR=%2

    @set PRJ_NAME=%3

    @set ELF_EXT=.elf

)

@if "%IDE%" == "uvision" (

    @set OUTPUT_DIR=%2

    @set PRJ_NAME=%3

    @set ELF_EXT=.axf

)

@if "%IDE%" == "iar" (

    @set OUTPUT_DIR=%2

    @set PRJ_NAME=%3

    @set ELF_EXT=.out

)

@if "%IDE%" == "eclipse" (

    @set OUTPUT_DIR=%2

    @set PRJ_NAME=%3

    @set ELF_EXT=

)

@rem Merges App0 and App1 into a single hex file for easier programming

%CY_MCU_ELF_TOOL% -M %OUTPUT_DIR%\%PRJ_NAME%%ELF_EXT% ..\App0%ELF_EXT% -- output

%OUTPUT_DIR%\%PRJ_NAME%_merged%ELF_EXT% --hex

%OUTPUT_DIR%\%PRJ_NAME%.hex

0 Likes
1 Solution
ShipingW_81
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 replies posted

JeHa_3912621

所附的bat文件最后hex merge的命令看上去有点问题,-- output应改为--output,中间没有空格。应该添加的全部命令行,如下参考,可以重新试一下 -

@rem Merges App0 and App1 into a single hex file for easier programming

%CY_MCU_ELF_TOOL% -M %OUTPUT_DIR%\%PRJ_NAME%%ELF_EXT% ..\App0%ELF_EXT% --output %OUTPUT_DIR%\%PRJ_NAME%_merged%ELF_EXT% --hex %OUTPUT_DIR%\%PRJ_NAME%.hex

View solution in original post

0 Likes
1 Reply
ShipingW_81
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 replies posted

JeHa_3912621

所附的bat文件最后hex merge的命令看上去有点问题,-- output应改为--output,中间没有空格。应该添加的全部命令行,如下参考,可以重新试一下 -

@rem Merges App0 and App1 into a single hex file for easier programming

%CY_MCU_ELF_TOOL% -M %OUTPUT_DIR%\%PRJ_NAME%%ELF_EXT% ..\App0%ELF_EXT% --output %OUTPUT_DIR%\%PRJ_NAME%_merged%ELF_EXT% --hex %OUTPUT_DIR%\%PRJ_NAME%.hex

0 Likes