new rtos project doesn't build

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

new rtos project doesn't build

跳至解决方案
1,082 次查看
davidandresky
Contributor II

I downloaded Kinetis Design Studio with the Kinetis SDK 2.x and tried creating a new project for the FRDM-KW41Z with all drivers and FreeRTOS selected. I expected to be able to build the project right out of the gate but get the following errors? Is there an environment variable I need to set?

15:05:20 **** Build of configuration Debug for project test_project_v2 ****
make -j8 all
Building file: ../utilities/fsl_debug_console.c
Building file: ../startup/startup_MKW41Z4.S
Building file: ../startup/system_MKW41Z4.c
Building file: ../utilities/fsl_sbrk.c
Invoking: Cross ARM C Compiler
Building file: ../source/main.c
Building file: ../freertos/Source/portable/MemMang/heap_4.c
Invoking: Cross ARM GNU Assembler
Building file: ../utilities/fsl_notifier.c
arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g3 -D"CPU_MKW41Z512VHT4" -I../CMSIS -I../board -I../drivers -I../freertos/Source/include -I../freertos/Source/portable/GCC/ARM_CM0 -I../freertos/Source/portable/GCC/ARM_CM4F -I../source -I../startup -I../utilities -std=gnu99 -MMD -MP -MF"utilities/fsl_debug_console.d" -MT"utilities/fsl_debug_console.o" -c -o "utilities/fsl_debug_console.o" "../utilities/fsl_debug_console.c"
Invoking: Cross ARM C Compiler
Building file: ../freertos/Source/portable/GCC/ARM_CM4F/port.c
Invoking: Cross ARM C Compiler
arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g3 -x assembler-with-cpp -MMD -MP -MF"startup/startup_MKW41Z4.d" -MT"startup/startup_MKW41Z4.o" -c -o "startup/startup_MKW41Z4.o" "../startup/startup_MKW41Z4.S"
Invoking: Cross ARM C Compiler
Invoking: Cross ARM C Compiler
arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g3 -D"CPU_MKW41Z512VHT4" -I../CMSIS -I../board -I../drivers -I../freertos/Source/include -I../freertos/Source/portable/GCC/ARM_CM0 -I../freertos/Source/portable/GCC/ARM_CM4F -I../source -I../startup -I../utilities -std=gnu99 -MMD -MP -MF"startup/system_MKW41Z4.d" -MT"startup/system_MKW41Z4.o" -c -o "startup/system_MKW41Z4.o" "../startup/system_MKW41Z4.c"
arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g3 -D"CPU_MKW41Z512VHT4" -I../CMSIS -I../board -I../drivers -I../freertos/Source/include -I../freertos/Source/portable/GCC/ARM_CM0 -I../freertos/Source/portable/GCC/ARM_CM4F -I../source -I../startup -I../utilities -std=gnu99 -MMD -MP -MF"utilities/fsl_sbrk.d" -MT"utilities/fsl_sbrk.o" -c -o "utilities/fsl_sbrk.o" "../utilities/fsl_sbrk.c"
Invoking: Cross ARM C Compiler
arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g3 -D"CPU_MKW41Z512VHT4" -I../CMSIS -I../board -I../drivers -I../freertos/Source/include -I../freertos/Source/portable/GCC/ARM_CM0 -I../freertos/Source/portable/GCC/ARM_CM4F -I../source -I../startup -I../utilities -std=gnu99 -MMD -MP -MF"utilities/fsl_notifier.d" -MT"utilities/fsl_notifier.o" -c -o "utilities/fsl_notifier.o" "../utilities/fsl_notifier.c"
arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g3 -D"CPU_MKW41Z512VHT4" -I../CMSIS -I../board -I../drivers -I../freertos/Source/include -I../freertos/Source/portable/GCC/ARM_CM0 -I../freertos/Source/portable/GCC/ARM_CM4F -I../source -I../startup -I../utilities -std=gnu99 -MMD -MP -MF"source/main.d" -MT"source/main.o" -c -o "source/main.o" "../source/main.c"
arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g3 -D"CPU_MKW41Z512VHT4" -I../CMSIS -I../board -I../drivers -I../freertos/Source/include -I../freertos/Source/portable/GCC/ARM_CM0 -I../freertos/Source/portable/GCC/ARM_CM4F -I../source -I../startup -I../utilities -std=gnu99 -MMD -MP -MF"freertos/Source/portable/MemMang/heap_4.d" -MT"freertos/Source/portable/MemMang/heap_4.o" -c -o "freertos/Source/portable/MemMang/heap_4.o" "../freertos/Source/portable/MemMang/heap_4.c"
Invoking: Cross ARM C Compiler
arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g3 -D"CPU_MKW41Z512VHT4" -I../CMSIS -I../board -I../drivers -I../freertos/Source/include -I../freertos/Source/portable/GCC/ARM_CM0 -I../freertos/Source/portable/GCC/ARM_CM4F -I../source -I../startup -I../utilities -std=gnu99 -MMD -MP -MF"freertos/Source/portable/GCC/ARM_CM4F/port.d" -MT"freertos/Source/portable/GCC/ARM_CM4F/port.o" -c -o "freertos/Source/portable/GCC/ARM_CM4F/port.o" "../freertos/Source/portable/GCC/ARM_CM4F/port.c"
Finished building: ../startup/startup_MKW41Z4.S

C:\Users\DAVIDA~1\AppData\Local\Temp\ccemUdBe.s: Assembler messages:
C:\Users\DAVIDA~1\AppData\Local\Temp\ccemUdBe.s:181: Error: lo register required -- `ldmia r0!,{r4-r11,r14}'
Building file: ../freertos/Source/portable/GCC/ARM_CM0/port.c
C:\Users\DAVIDA~1\AppData\Local\Temp\ccemUdBe.s:583: Error: unshifted register required -- `tst r14,#0x10'
C:\Users\DAVIDA~1\AppData\Local\Temp\ccemUdBe.s:584: Error: selected processor does not support Thumb mode `it eq'
C:\Users\DAVIDA~1\AppData\Local\Temp\ccemUdBe.s:585: Error: selected processor does not support Thumb mode `vstmdbeq r0!,{s16-s31}'
C:\Users\DAVIDA~1\AppData\Local\Temp\ccemUdBe.s:587: Error: selected processor does not support Thumb mode `stmdb r0!,{r4-r11,r14}'
C:\Users\DAVIDA~1\AppData\Local\Temp\ccemUdBe.s:591: Error: selected processor does not support Thumb mode `stmdb sp!,{r3}'
C:\Users\DAVIDA~1\AppData\Local\Temp\ccemUdBe.s:599: Error: lo register required -- `ldmia sp!,{r3}'
C:\Users\DAVIDA~1\AppData\Local\Temp\ccemUdBe.s:604: Error: lo register required -- `ldmia r0!,{r4-r11,r14}'
C:\Users\DAVIDA~1\AppData\Local\Temp\ccemUdBe.s:606: Error: unshifted register required -- `tst r14,#0x10'
C:\Users\DAVIDA~1\AppData\Local\Temp\ccemUdBe.s:607: Error: selected processor does not support Thumb mode `it eq'
C:\Users\DAVIDA~1\AppData\Local\Temp\ccemUdBe.s:608: Error: selected processor does not support Thumb mode `vldmiaeq r0!,{s16-s31}'
C:\Users\DAVIDA~1\AppData\Local\Temp\ccemUdBe.s:726: Error: unexpected character `w' in type specifier
C:\Users\DAVIDA~1\AppData\Local\Temp\ccemUdBe.s:726: Error: bad instruction `ldr.w r0,=0xE000ED88'
C:\Users\DAVIDA~1\AppData\Local\Temp\ccemUdBe.s:729: Error: unshifted register required -- `orr r1,r1,#(0xf<<20)'
Invoking: Cross ARM C Compiler
freertos/Source/portable/GCC/ARM_CM4F/subdir.mk:18: recipe for target 'freertos/Source/portable/GCC/ARM_CM4F/port.o' failed
make: *** [freertos/Source/portable/GCC/ARM_CM4F/port.o] Error 1
make: *** Waiting for unfinished jobs....
arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g3 -D"CPU_MKW41Z512VHT4" -I../CMSIS -I../board -I../drivers -I../freertos/Source/include -I../freertos/Source/portable/GCC/ARM_CM0 -I../freertos/Source/portable/GCC/ARM_CM4F -I../source -I../startup -I../utilities -std=gnu99 -MMD -MP -MF"freertos/Source/portable/GCC/ARM_CM0/port.d" -MT"freertos/Source/portable/GCC/ARM_CM0/port.o" -c -o "freertos/Source/portable/GCC/ARM_CM0/port.o" "../freertos/Source/portable/GCC/ARM_CM0/port.c"
Finished building: ../utilities/fsl_sbrk.c
Finished building: ../freertos/Source/portable/MemMang/heap_4.c


Finished building: ../freertos/Source/portable/GCC/ARM_CM0/port.c

Finished building: ../startup/system_MKW41Z4.c
Finished building: ../source/main.c
Finished building: ../utilities/fsl_notifier.c



Finished building: ../utilities/fsl_debug_console.c

15:05:21 Build Finished (took 858ms)

0 项奖励
1 解答
724 次查看
davidandresky
Contributor II

Found the solution. I went back to the SDK builder on the web site and made sure everything was selected properly. Downloaded an updated version of the SDK and now the project builds.

在原帖中查看解决方案

0 项奖励
1 回复
725 次查看
davidandresky
Contributor II

Found the solution. I went back to the SDK builder on the web site and made sure everything was selected properly. Downloaded an updated version of the SDK and now the project builds.

0 项奖励