Skip to main content
TBhil.1
Associate II
March 30, 2022
Question

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

  • March 30, 2022
  • 1 reply
  • 879 views

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.

This topic has been closed for replies.

1 reply

TBhil.1
TBhil.1Author
Associate II
May 31, 2022

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.