cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC Creator & Designer Software

New Contributor II

我在 PSOC4.2 中编译时,遇到如下错误

arm-none-eabi-gcc.exe -mcpu=cortex-m0plus -mthumb -I.\include -I.\rt-thread\include -I.\rt-thread\components\finsh -I.\rt-thread\libcpu\arm\cortex-m4 -I. -IGenerated_Source\PSoC6 -IGenerated_Source\PSoC6\pdl\cmsis/include/ -IGenerated_Source\PSoC6\pdl\devices/psoc6/include/ -IGenerated_Source\PSoC6\pdl\devices/psoc6/include/ip/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/crypto/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/device/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/efuse/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/flash/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/gpio/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/ipc/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/lvd/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/profile/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/prot/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/scb/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/sysanalog/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/sysclk/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/sysint/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/syslib/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/syspm/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/systick/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/trigmux/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/wdt/ -IGenerated_Source\PSoC6\pdl\utilities/ -Wa,-alh=.\CortexM0p\ARM_GCC_541\Debug/cy_device.lst -g -D DEBUG -D CY_CORE_ID=0 -D CY_PSOC_CREATOR_USED=1 -D CY8C6247BZI_D54 -Wall -ffunction-sections -ffat-lto-objects -Og -c Generated_Source\PSoC6\pdl\drivers\peripheral\device\cy_device.c -o .\CortexM0p\ARM_GCC_541\Debug\cy_device.o

arm-none-eabi-gcc.exe -mcpu=cortex-m0plus -mthumb -I.\include -I.\rt-thread\include -I.\rt-thread\components\finsh -I.\rt-thread\libcpu\arm\cortex-m4 -I. -IGenerated_Source\PSoC6 -IGenerated_Source\PSoC6\pdl\cmsis/include/ -IGenerated_Source\PSoC6\pdl\devices/psoc6/include/ -IGenerated_Source\PSoC6\pdl\devices/psoc6/include/ip/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/crypto/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/device/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/efuse/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/flash/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/gpio/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/ipc/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/lvd/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/profile/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/prot/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/scb/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/sysanalog/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/sysclk/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/sysint/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/syslib/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/syspm/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/systick/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/trigmux/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/wdt/ -IGenerated_Source\PSoC6\pdl\utilities/ -Wa,-alh=.\CortexM0p\ARM_GCC_541\Debug/retarget.lst -g -D DEBUG -D CY_CORE_ID=0 -D CY_PSOC_CREATOR_USED=1 -D CY8C6247BZI_D54 -Wall -ffunction-sections -ffat-lto-objects -Og -c Generated_Source\PSoC6\pdl\utilities\retarget_io\retarget.c -o .\CortexM0p\ARM_GCC_541\Debug\retarget.o

arm-none-eabi-as.exe -mcpu=cortex-m0plus -mthumb -I. -IGenerated_Source\PSoC6 -IGenerated_Source\PSoC6\pdl\cmsis/include/ -IGenerated_Source\PSoC6\pdl\devices/psoc6/include/ -IGenerated_Source\PSoC6\pdl\devices/psoc6/include/ip/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/crypto/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/device/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/efuse/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/flash/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/gpio/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/ipc/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/lvd/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/profile/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/prot/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/scb/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/sysanalog/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/sysclk/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/sysint/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/syslib/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/syspm/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/systick/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/trigmux/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/wdt/ -IGenerated_Source\PSoC6\pdl\utilities/ -alh=.\CortexM0p\ARM_GCC_541\Debug/context_gcc.lst -g -W -o .\CortexM0p\ARM_GCC_541\Debug\context_gcc.o rt-thread\libcpu\arm\cortex-m4\context_gcc.S

rt-thread\libcpu\arm\cortex-m4\context_gcc.S: Assembler messages:

rt-thread\libcpu\arm\cortex-m4\context_gcc.S:110: Error: selected processor does not support `vstmdbeq r1!,{d8-d15}' in Thumb mode

rt-thread\libcpu\arm\cortex-m4\context_gcc.S:119: Error: thumb conditional instruction should be in IT block -- `moveq r4,#0x01'

rt-thread\libcpu\arm\cortex-m4\context_gcc.S:140: Error: selected processor does not support `vldmiane r1!,{d8-d15}' in Thumb mode

rt-thread\libcpu\arm\cortex-m4\context_gcc.S:148: Error: thumb conditional instruction should be in IT block -- `bicne lr,lr,#0x10'

The command 'arm-none-eabi-as.exe' failed with exit code '1'.

--------------- Build Failed: 06/17/2019 17:27:55 ---------------

请问如何解决?

0 Likes
Reply
1 Solution
Moderator
Moderator

所附的工程比较复杂,编译错误疑似是不同平台间代码移植导致指令集不兼容。

View solution in original post

0 Likes
Reply
6 Replies
Moderator
Moderator

你PDL是什么版本?你用的project是哪个?不是原版网上的话,可以发上来我们编译试试吗?

Roy Liu
0 Likes
Reply
New Contributor II

我的PDL 是用的 PDL 3.1.0,  Project 在

链接:https://pan.baidu.com/s/1YWM-u5wCMpMux3atm9DsDg

提取码:5gxn

0 Likes
Reply
New Contributor II

psoc4.2keil88.png

psoc4.2   -mfloat-abi=softfp   在那里能改 ?

0 Likes
Reply
Moderator
Moderator

方便把你的工程附上来?我这边网络无法正常访问百度网盘。

另外PSoC Creator 4.2是无法修改softfp的,因为Creator默认通过-mfloat-abi=softfp将其写死,意味着默认会使用softfp,改为hardfp需要借助外部工具。

以下帖子供参考- How to enable / disable the M4 floating-point unit

0 Likes
Reply
New Contributor II

Project 在附件中

0 Likes
Reply
Moderator
Moderator

所附的工程比较复杂,编译错误疑似是不同平台间代码移植导致指令集不兼容。

View solution in original post

0 Likes
Reply