MCUXpresso with Azure RTOS gives stack overflow error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MCUXpresso with Azure RTOS gives stack overflow error

ソリューションへジャンプ
3,559件の閲覧回数
MAUZ
Contributor I

Hi

 

I am using MCUXpresso IDE V11.3.1 and testing one of the example code (Washing Machine demo from NXP) with Azure RTOS on MIMXRT1064 processor. 

When I break in a thread and look at heap and stack it shows the stack as overflowMAUZ_0-1623279941523.png

In fact it does for any Azure RTOS code inside a thread.

Is is normal or is it a bug?

Thanks

0 件の賞賛
返信
1 解決策
3,499件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @MAUZ 

  I get the internal reply:

The debug feature in MCUXpresso IDE does not support Azure RTOS currently. In Azure RTOS, every thread has its own stack. For example, in the following picture, the stack of thread_0 is from 0x20000718 to 0x20000b17. The current stack pointer is 0x20000af8 in the SP register. So there is no stack overflow here.

 

kerryzhou_1-1624329577283.png

So, to the Azure RTOS project, we don't need to check the IDE stack, as that is not precise, we need to check each thread stack to check whether it is overflow or not.

Best Regards,

Kerry

 

 

元の投稿で解決策を見る

0 件の賞賛
返信
7 返答(返信)
3,500件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @MAUZ 

  I get the internal reply:

The debug feature in MCUXpresso IDE does not support Azure RTOS currently. In Azure RTOS, every thread has its own stack. For example, in the following picture, the stack of thread_0 is from 0x20000718 to 0x20000b17. The current stack pointer is 0x20000af8 in the SP register. So there is no stack overflow here.

 

kerryzhou_1-1624329577283.png

So, to the Azure RTOS project, we don't need to check the IDE stack, as that is not precise, we need to check each thread stack to check whether it is overflow or not.

Best Regards,

Kerry

 

 

0 件の賞賛
返信
3,488件の閲覧回数
MAUZ
Contributor I

Thanks a lot for the clarification

0 件の賞賛
返信
3,550件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @MAUZ 

  Thank you for your interest in the NXP MIMXRT product, I would like to provide service for you.

   Could you please tell me where you get your mentioned testing Washing Machine demo from NXP?

   NXP SDK also contains the Azure RTOS project:

\SDK_2.9.2_EVK-MIMXRT1064\boards\evkmimxrt1064\azure_rtos_examples

Do you test it on your side, whether that has issues or not?

You can download the SDK from this link:

https://mcuxpresso.nxp.com/en/builder?hw=EVK-MIMXRT1064

 

Please check it at first.

If you still have issues about it, please kindly let me know.

Best Regards,

kerry

0 件の賞賛
返信
3,531件の閲覧回数
MAUZ
Contributor I

Thanks for the support.  I downloaded the samples from https://mcuxpresso.nxp.com/en/builder?hw=EVK-MIMXRT1064 as you mentioned. and tried the threadx demo.

I still see the stack overflow when I hit a breakpoint inside a thread. I have shared the screen shot in my original email.

Again the question is why I see the stack overload or this this a bug in the tool

 

 

 

0 件の賞賛
返信
3,527件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @MAUZ 

  Thanks for your confirmation, I have tested the internal new sdk version, also meet your issues, the result is:

kerryzhou_0-1623908912414.png

Please keep patient, I will report it internally to the SDK team to check this issues.

Any updated information, will let you know. 

Best Regards,

kerry

 

0 件の賞賛
返信
3,521件の閲覧回数
MAUZ
Contributor I

Thank You for investigating.

I look forward to getting a solution.

0 件の賞賛
返信
3,511件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @MAUZ 

    Already in the SDK team process, any updated information will let you know, thanks for your contribution.

 

Best Regards,

kerry

 

0 件の賞賛
返信