XRT1042 Stack Overflow when _main() function is called

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

XRT1042 Stack Overflow when _main() function is called

258 Views
riccardo_carlot
Contributor II

Hello,

I'm working with a new project based on MIMXRT1040-EVK, I'm facing with a problem of Stack Overflow, it happens when the Rest_ISR() calls the main() function.

Here the screenshot setting the breakpoint before the main() call and just after that.

riccardo_carlot_1-1699520926807.png

riccardo_carlot_0-1699520866988.png

What is happening? What could I check?

 

Thank you a lot.

Regards

0 Kudos
2 Replies

248 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @riccardo_carlot 

I hope that you are doing well! 

I did a sanity test on my side with the following setup, but I did not saw this issue.

diego_charles_0-1699570205554.png

Did you make any special setup to your project? Any changes in the linker etc? 

 

All the best, 

Diego

0 Kudos

221 Views
riccardo_carlot
Contributor II

Hello Diego,

thank for your interest, I'm sorry for my late, I didn't receive the notify through email.

The strange is that the code runs well also in overflow. I didn't touch the linker configuration or some other setting, just created a new project and start using a simple SPI.

The problem, now, is that the issue dissappeared. I worked this week regardless the stack overflow, this morning I would have shared the project with you, so I checked the problem again but now I don't have anythig to show with you, it works properly.

I don't want to waste your time, I will open the topic again as soon as the problems comes out.

Thank you so much.

0 Kudos