iMXRT-1064; stack offset

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

iMXRT-1064; stack offset

跳至解决方案
1,365 次查看
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

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
1,348 次查看
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 项奖励
回复
4 回复数
1,356 次查看
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 项奖励
回复
1,352 次查看
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 项奖励
回复
1,349 次查看
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 项奖励
回复
1,343 次查看
jaripeltonen
Contributor IV

Hi,

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

Best regards,

Jari

0 项奖励
回复