iMXRT-1064; stack offset

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

iMXRT-1064; stack offset

ソリューションへジャンプ
1,435件の閲覧回数
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,418件の閲覧回数
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,426件の閲覧回数
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,422件の閲覧回数
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,419件の閲覧回数
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,413件の閲覧回数
jaripeltonen
Contributor IV

Hi,

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

Best regards,

Jari

0 件の賞賛
返信