This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

FaultISR infinite loop

Hello , I'm using Kail MDK 5.29 with the Texas instrument board " LM4F120H5QR " , it was working fine along time ago ....however when i try to recompile some old simple programs using the debugger mode it always enter this FaultISR infinite loop !! ...


As you can see it doesn't show the Local variables and it never get out of this Loop ....I already installed the required Packs , What do you suggest me to do ?

Thank you

Parents
  • I configured a simple project for the LM4F120H5QR in uVision 5.29, and got the same behavior (execution stops in FaultISR). In the startup.s file, there's a conditional test, shown below. The target defines CPU to be Cortex-M4.fp.sp, which doesn't match the test, so those few lines aren't assembled into the output file.

            IMPORT  __main
    
            IF      {CPU} = "Cortex-M4.fp"
            LDR     R0, =0xE000ED88           ; Enable CP10,CP11
            LDR     R1,[R0]
            ORR     R1,R1,#(0xF << 20)
            STR     R1,[R0]
            ENDIF
    
            B       __main

    Changing the test to use Cortex-M4.fp.sp (to match the compiler command line argument) got a "working" simulation. Working in the sense that it didn't hit FaultISR. Maybe the difference between older/newer version of Keil is in the startup.s file? 

Reply
  • I configured a simple project for the LM4F120H5QR in uVision 5.29, and got the same behavior (execution stops in FaultISR). In the startup.s file, there's a conditional test, shown below. The target defines CPU to be Cortex-M4.fp.sp, which doesn't match the test, so those few lines aren't assembled into the output file.

            IMPORT  __main
    
            IF      {CPU} = "Cortex-M4.fp"
            LDR     R0, =0xE000ED88           ; Enable CP10,CP11
            LDR     R1,[R0]
            ORR     R1,R1,#(0xF << 20)
            STR     R1,[R0]
            ENDIF
    
            B       __main

    Changing the test to use Cortex-M4.fp.sp (to match the compiler command line argument) got a "working" simulation. Working in the sense that it didn't hit FaultISR. Maybe the difference between older/newer version of Keil is in the startup.s file? 

Children