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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
823 Views
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 Kudos
1 Solution
417 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
1 Reply
418 Views
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 Kudos