cancel
Showing results for 
Search instead for 
Did you mean: 

Hello, I am currently working on STM32f205 using Keil uvision. I am getting an undefined instruction fault.

TBhil.1
Associate II

The core registers are as follows :

R0 = 0 R1 = 0 R2 = 40005400 R3 = 70000 R12 = 802d8f9 LR = 800a88b PC = 8001ba0 PSR = 100002f- FSR/FAR: CFSR = 10000 HFSR = 40000000 DFSR = 0 AFSR = 0

By disassembling the code, I found that the faulty instruction as given below:

     0x08001ba0:  ea040601  ....  AND   r6,r4,r1

Thumb mode has not been selected in the target settings of Keil. Any insights on how should I proceed to solve this would really be helpful. Thank you.

1 REPLY 1
TBhil.1
Associate II

Hello, I found the solution for this problem. I came to know that the ART sometimes fails when we use highest frequency, 120MHz in my case. I disabled the instruction cache and changed the wait states of data cache from 3 to 4. I have not encountered the hard fault ever since. Thank you.