中级会员
 
- 积分
- 481
- 金钱
- 481
- 注册时间
- 2016-6-2
- 在线时间
- 116 小时
|
发表于 2019-10-30 08:49:18
|
显示全部楼层
怕图片传不上去发个文字版的
../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c(235): error: #513: a value of type "void *" cannot be assigned to an entity of type "BlockLink_t *"
../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c(934): error: #513: a value of type "void *" cannot be assigned to an entity of type "osPoolId"
../Middlewares/Third_Party/FreeRTOS/Source/tasks.c(2806): error: #513: a value of type "void *" cannot be assigned to an entity of type "TCB_t *"
使用正确的类型转换之后,没有报错了,但是一运行就卡在中断服务函数‘SVC_Handler’
出错的地方也找到了,
- __asm void vPortSVCHandler( void )
- {
- PRESERVE8
- ldr r3, =pxCurrentTCB /* Restore the context. */
- ldr r1, [r3] /* Use pxCurrentTCBConst to get the pxCurrentTCB address. */
- ldr r0, [r1] /* The first item in pxCurrentTCB is the task top of stack. */
- ldmia r0!, {r4-r11} /* Pop the registers that are not automatically saved on exception entry and the critical nesting count. */
- msr psp, r0 /* Restore the task stack pointer. */
- isb
- mov r0, #0
- msr basepri, r0
- orr r14, #0xd
- bx r14
- }
复制代码
请问您有遇到同样的问题吗?有没有什么解决办法啊?
|
|