This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C123GH6PM: NMI Block debugger

Part Number: TM4C123GH6PM


Hi,

My problem is when i  am trying  to enter the system debugger in keil with tm4c123g launchpad ,

(

This is the code that gets called when the processor receives a NMI. This
; simply enters an infinite loop, preserving the system state for examination
; by a debugger.
;
;******************************************************************************
NMI_Handler PROC
EXPORT NMI_Handler [WEAK]
B .
ENDP

)

the code is burned successfully but i can not enter the debugger.

thanks 

  • I am not familiar with the Keil IDE, but please check that the assembly instruction " B ." generated a branch to an odd address. The M4 operates in thumb2 mode so the destination address must be represented as the odd address even though the opcodes are aligned on 16-bit boundaries. Branching to an even address creates a fault. Generating a fault in an NMI routine creates a Lockup.
  • Two MCU pins (only) are "burdened" w/NMI functionality.

    Do you (really) require the use of either?

    Employing (other) MCU pins - rather than those which support NMI - suggests a quick/easy method to, "Escape that NMI error."