__user_setup_stackheap() in comp.c is missing assembly language return statement

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

__user_setup_stackheap() in comp.c is missing assembly language return statement

跳至解决方案
1,745 次查看
aah
Contributor I

In MQX release 4.0.2 in mqx/source/psp/cortex_m/compiler/rv/comp.c

_asm void __user_setup_stackheap(void)

{

    mov r0, #0

    mov r2, #0

}

Should be:

_asm void __user_setup_stackheap(void)

{

    mov r0, #0

    mov r2, #0

    bx lr

}

Please update the file in the next software release.

0 项奖励
回复
1 解答
1,339 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Alex:

Thank you for reporting this. I noticed in the latest MQX version, C:\Freescale\Freescale_MQX_4_1\mqx\source\psp\cortex_m\compiler\rv_uv4\comp.c, this function has changed to

__asm void __user_setup_stackheap(void)

{

    mov r0, #0

    mov r2, #0

    bx lr

}


Have a great day,
Daniel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,340 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Alex:

Thank you for reporting this. I noticed in the latest MQX version, C:\Freescale\Freescale_MQX_4_1\mqx\source\psp\cortex_m\compiler\rv_uv4\comp.c, this function has changed to

__asm void __user_setup_stackheap(void)

{

    mov r0, #0

    mov r2, #0

    bx lr

}


Have a great day,
Daniel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复