I use RT1052 to develop a HMI(GUI is threadx GUIX),when the program run more than ten hours later, it's stoped.
the debugger remind “Bus Fault (BFSR) IMPRECISERR (2) Imprecise data bus error” ,“Hard Fault (HFSR)
FORCED (30) Indicates a forced hard fault, generated by escalation of a fault with configurable priority that cannot be handled, either because of priority or because it is disabled”,BUt I did not find the bug. Can you give me some help? Thank you very much!
Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
Before answering your question, I was wondering if you can introduce the testing environment, for instance, board, code, IDE, etc.
Further, I'd highly recommend you to refer to the post to find out the root cause of triggering the Hardfault.
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.
-------------------------------------------------------------------------------
Hi,
我现在使用 MCUXpresso IDE,RT1052 MCU 外扩 32M SDRAM 和 16M NORFlash。我使用RT1052设计一款摩托车仪表,客户要求实现发动机转速的拖尾效果。所以,我根据Threadx GUIX的功能,自己写了一部分代码,部分代码就是转速指针下方的一部分颜色填充,这部分颜色是我从一整张图片中提取出来的颜色,然后贴图到对应的位置上。最开始,提取出来的颜色数据放置到一个数组中,默认放置在sdram中,容易出现hardfault,然后将这个数组放置在AT_NONCACHEABLE_SECTION_ALIGN 这个区域内,出现hardfault的概念降低了。或者说,我们升级了PCB,在旧的PCB上出现了一次hardfault,而在新的PCB上并没有出现,而两款PCB的差异主要就是地线走线的优化。
Have a great day!
Hi,
感谢回复。
从你的叙述中,感觉hardfault的出现是跟SDRAM的硬件连接有关,我建议你可以参照此贴对你的SDRAM的稳定性做一下测试。
还有可以适当的降低SDRAM的时钟频率以提供稳定性。
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.
-------------------------------------------------------------------------------