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
Solved! Go to Solution.
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.
Have a great day,
Kan
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
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.
Have a great day,
Kan
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
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