icf file

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决
1,597 次查看
nesrinemhiri
Contributor III

i use the kinetis MK10FX512VLQ12 my code generate a hardfault as it shows this picture:

it's probably that the problem it's due to memory size.you find attached also the icf file .

please help me to find the source of this bug

thank you

Nesrine

Original Attachment has been moved to: 512KB_Pflash_512KB_Dflash.icf.zip

标签 (1)
0 项奖励
回复
1 解答
1,495 次查看
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Nesrine,

Seems icf file is ok, did the code try to write some register in which clock gate is not on?  or did the code write to some place in the flash? You may check the following registers when the hardfault happens.

1.png


Have a great day,
Kan

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

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,496 次查看
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Nesrine,

Seems icf file is ok, did the code try to write some register in which clock gate is not on?  or did the code write to some place in the flash? You may check the following registers when the hardfault happens.

1.png


Have a great day,
Kan

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

0 项奖励
回复
1,495 次查看
nesrinemhiri
Contributor III

I checked registers the problem is that The FPU is disabled from reset so You must enable it before you can use any floating-point

instructions.

thank you Kan

Nesrine