- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am erasing the specific sections of Code flash and I get a Hard Fault error. But when I execute the erase operation from main it works fine, but I get error when I execute from Free RTOS task. Also when I execute erase operation in step by step with debugger, the erase operation works fine. The behaviour is quite strange could you help me with some leads. I erase in Non Blocking mode.
- Labels:
-
Automotive Traveo_II
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Could you confirm that the CM0+ code and CM4 code are being executed from different logical bank addresses?
Can you please provide the CPU registers (Core Fault register) values?
What is value in FLASHC_CM0_STATUS and FLASHC_CM4_STATUS ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Pranith,
Yes CM0+ and CM4 are executed from different logical bank address.
CM0+ is from 0x10000000 till 0x10007FFF and Boot loader from 0x10008000 till 0x10017FFF, and Application is from 0x10018000 till 0x100EFFFF.
Status and fault register values are as below.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi:
CM0+ needs to run in RAM when CM4 erase the code flash.