icf file

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,593件の閲覧回数
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,491件の閲覧回数
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,492件の閲覧回数
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,491件の閲覧回数
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