OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 5660|回复: 1

用RT studio导入MTK项目,编译失败。

[复制链接]

1

主题

1

帖子

0

精华

新手入门

积分
4
金钱
4
注册时间
2020-9-29
在线时间
0 小时
发表于 2020-9-29 17:47:49 | 显示全部楼层 |阅读模式
1金钱
导入的是潘多拉的第一个例程,就是红灯一闪一闪那个。用RT studio构建的时候,提示如下错误。
arm-none-eabi-gcc "D:/RT-ThreadStudio/workspace/IoT_Board-master/IoT_Board-master/rt-thread/components/drivers/src/workqueue.c"
arm-none-eabi-gcc "D:/RT-ThreadStudio/workspace/IoT_Board-master/IoT_Board-master/examples/01_basic_led_blink/applications/main.c"
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -ffunction-sections -fdata-sections -Wall  -g -gdwarf-2 -Xlinker --gc-sections -Wl,-Map,"rtthread.map" -Xlinker --cref -o "rtthread.elf"  ./minilibc/ctype.o ./minilibc/math.o ./minilibc/qsort.o ./minilibc/rand.o ./minilibc/stdlib.o ./minilibc/string.o ./minilibc/time.o  ./finsh/cmd.o ./finsh/msh.o ./finsh/msh_cmd.o ./finsh/msh_file.o ./finsh/shell.o ./finsh/symbol.o  ./cpu/backtrace.o ./cpu/context_gcc.o ./cpu/cpuport.o ./cpu/div0.o ./cpu/showmem.o  ./STM32L4xx_HAL_Driver/startup_stm32l475xx.o ./STM32L4xx_HAL_Driver/stm32l4xx_hal.o ./STM32L4xx_HAL_Driver/stm32l4xx_hal_cortex.o ./STM32L4xx_HAL_Driver/stm32l4xx_hal_dma.o ./STM32L4xx_HAL_Driver/stm32l4xx_hal_flash.o ./STM32L4xx_HAL_Driver/stm32l4xx_hal_flash_ex.o ./STM32L4xx_HAL_Driver/stm32l4xx_hal_gpio.o ./STM32L4xx_HAL_Driver/stm32l4xx_hal_pwr.o ./STM32L4xx_HAL_Driver/stm32l4xx_hal_pwr_ex.o ./STM32L4xx_HAL_Driver/stm32l4xx_hal_rcc.o ./STM32L4xx_HAL_Driver/stm32l4xx_hal_rcc_ex.o ./STM32L4xx_HAL_Driver/stm32l4xx_hal_tim.o ./STM32L4xx_HAL_Driver/stm32l4xx_hal_tim_ex.o ./STM32L4xx_HAL_Driver/stm32l4xx_hal_uart.o ./STM32L4xx_HAL_Driver/stm32l4xx_hal_uart_ex.o ./STM32L4xx_HAL_Driver/system_stm32l4xx.o  ./Kernel/clock.o ./Kernel/components.o ./Kernel/cpu.o ./Kernel/device.o ./Kernel/idle.o ./Kernel/ipc.o ./Kernel/irq.o ./Kernel/kservice.o ./Kernel/mem.o ./Kernel/memheap.o ./Kernel/mempool.o ./Kernel/object.o ./Kernel/scheduler.o ./Kernel/signal.o ./Kernel/thread.o ./Kernel/timer.o  ./Drivers/board.o ./Drivers/drv_clock.o ./Drivers/drv_gpio.o ./Drivers/drv_usart.o  ./DeviceDrivers/completion.o ./DeviceDrivers/dataqueue.o ./DeviceDrivers/pin.o ./DeviceDrivers/pipe.o ./DeviceDrivers/ringblk_buf.o ./DeviceDrivers/ringbuffer.o ./DeviceDrivers/serial.o ./DeviceDrivers/waitqueue.o ./DeviceDrivers/workqueue.o  ./Applications/main.o   
d:/rt-threadstudio/repo/extract/toolchain_support_packages/arm/gnu_tools_for_arm_embedded_processors/5.4.1/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7e-m/fpu\libg.a(lib_a-exit.o): In function `exit':
exit.c.text.exit+0x16): undefined reference to `_exit'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:52: rtthread.elf] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.


你们是怎么解决的?

正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

3

主题

312

帖子

0

精华

高级会员

Rank: 4

积分
907
金钱
907
注册时间
2011-10-19
在线时间
196 小时
发表于 2020-9-30 13:26:26 | 显示全部楼层
_exit这些函数是GCC编译器裸机程序的syscall类低层接口且大多都是些空函数。
如果你的MTK项目之前也是裸机且也是用GCC都应该会有,所以可以是工程配置没有将其添加到工程内。
实在不行就自己再添加这些syscall接口。


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-11-22 17:38

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表