Dear friends,
I am trying configure a sample project of SDK (i.MXRT1052). I am with a Hard Fault (below console message). Please I need help!
Thanks a lot! Have a greate day!
Solved! Go to Solution.
Hi Rubens Junior
As far as I know, you are using the SEMC driver example, am I right? this demo makes use of the SDRAM memory, so when you change the clock settings of the SEMC, it gives you a hardfault. If you want to use the SDRAM for the heap memory, you have to skip the change of clocks and you need to add the DCD, please check the following post:
https://community.nxp.com/message/1214651
Hope this could clarify your question
Best regards
Jorge Alcala
Hello,
Hi Rubens Junior
Could you please share more information about the problem that you are facing? For example:
This way we can have a better idea of what is causing this problem.
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
-------------------------------------------------------------------------------
jorgeantonioalcala and friends,
Below is the features of my project:
MCUXpresso IDE v10.3.1 [Build 2233] [2019-02-20]
evkbimxrt1050_semc
No
In addition, I am try manipulated the heap alocation. Actualy, the heap is alocated in the internal RAM, but I need alocate the heap in the external RAM (BOARD_SDRAM - Size 32MB).
I did set below and the project buil with success, however occurs the hardfault above.
Please, I ask your colaboration.
Best Regards!
Rubens Júnior
Hi Rubens Junior
How are you changing the semc example? when you mentioned that you are modifying the heap allocation, are you using the manger linker option from the MCUXpresso? Unfortunately, a hardfault can be happening due to many reasons, so if possible, please try to be more detailed in the process that you are following before you get the hardfault.
Best regards
Jorge Alcala
Hi jorgeantonioalcala,
Thank you very much for your attention!
Follow my answers:
How are you changing the semc example?
I just changed the heap allocation.
when you mentioned that you are modifying the heap allocation, are you using the manger linker option from the MCUXpresso?
Yes, I am using the manager linker option as the below print.
Unfortunately, a hardfault can be happening due to many reasons, so if possible, please try to be more detailed in the process that you are following before you get the hardfault.
I just made the heap allocation modification.
Let me know what I can do.
Thanks a lot!
Rubens Júnior
Hi Rubens Junior
Could you specify what change did you make in the heap allocation?
It is something related with the SDRAM, if there isn't enough memry for the heap, it could give a hardfault if the memory management is not performed correctly, for example with a RTOS system.
Regards
Jorge Alcala
Dear jorgeantonioalcala,
Thank you very much.
Follow my modification in the heap memory.
Thanks a lot!
Rubens Júnior
Hi Rubens Junior
As far as I know, you are using the SEMC driver example, am I right? this demo makes use of the SDRAM memory, so when you change the clock settings of the SEMC, it gives you a hardfault. If you want to use the SDRAM for the heap memory, you have to skip the change of clocks and you need to add the DCD, please check the following post:
https://community.nxp.com/message/1214651
Hope this could clarify your question
Best regards
Jorge Alcala