iMXRT-1064; stack offset

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

iMXRT-1064; stack offset

Jump to solution
1,367 Views
jaripeltonen
Contributor IV

Hi,

I'm planning to use the in-built IAP Flash programming routines in my SW. MCUXpresso IDE user guide advices to set the Stack Offset value in Managed Linker Script menu. What is the optimum value for Stack Offset that should be used for iMXRT-1064?

 

Thanks & best regards,

Jari

Labels (1)
Tags (2)
0 Kudos
Reply
1 Solution
1,350 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
In the previous reply, I think I misunderstood your question, you can forget it.
Now, back to your question, for the RT106x, it's not necessary to set the Stack Offset to exceed 0 to revered some RAM for calling ROM APIs.It's okay to keep the default value (0).
Hope it helps.
Have a great day.
TIC

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

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
4 Replies
1,358 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
1) What is the optimum value for Stack Offset that should be used for iMXRT-1064?
-- In my opinion, it doesn't exist an optimum value for Stack Offset, the developer should select an appropriate value based on the specific demo project.
From my experience, the default value is good in most of the demo projects.
Hope it helps.
Have a great day.
TIC

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

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply
1,354 Views
jaripeltonen
Contributor IV

Hi,

I was asking about Stack offset for two reasons;

a) in MCUXpress User Guide (chapter 17) it says that, for example, for LPC1343 Stack offset has to be set to value 32 and there's a recommendation to check the amount of memory needed by IAP routines

b) in fsl_romapi demo project for iMXRT-1064 Stack offset is set to value 0

So, I was wondering if there's a fixed value or a minimum value (other than zero) that I should use for Stack offset to be sure IAP routines work properly on iMXRT-1064?

Best regards,

Jari

0 Kudos
Reply
1,351 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
In the previous reply, I think I misunderstood your question, you can forget it.
Now, back to your question, for the RT106x, it's not necessary to set the Stack Offset to exceed 0 to revered some RAM for calling ROM APIs.It's okay to keep the default value (0).
Hope it helps.
Have a great day.
TIC

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

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply
1,345 Views
jaripeltonen
Contributor IV

Hi,

Thanks for your clarification! I will use the default value (0).

Best regards,

Jari

0 Kudos
Reply