Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

TRAVEO™ T2G

Sundar
Level 1
5 sign-ins First reply posted First question asked
Level 1

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.

0 Likes
3 Replies
Pranith
Moderator
Moderator 100 sign-ins 50 sign-ins 25 replies posted
Moderator

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 ?

 

0 Likes
Sundar
Level 1
5 sign-ins First reply posted First question asked
Level 1

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.

0 Likes
wchen24
Level 1
First reply posted Welcome!
Level 1

Hi:

CM0+ needs to  run in RAM when CM4 erase the code flash.

0 Likes