TMDX570LC43HDK: Push Button Interrupt GioA7

Part Number: TMDX570LC43HDK
Other Parts Discussed in Thread: HALCOGEN

Hi,

I want to create an interrupt using the push button on the board. 
With this interrupt function, I want to light up one of the LEDs on the board. I've reviewed the example project below, but I couldn't get it to work.
My own program is attached. Where am I making a mistake?

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/987080/tms570lc4357-dio-interrupt-for-user-button-gioa7-in-tmdx570lc43hdk

11_GIO_Button_Interrupt.zip 


  • Hi,

    You need to enabled the interrupt at 3 stages

    1. Enable CPU IRQ or FIQ interrupt: 

        _enable_IRQ(); to nebale IRQ
    2. Enable GPIO interrupt in VIM. Please do it using HalCoGen. Using either IRQ or FIQ, and GIO_High or GIO_Low based on the priority selection in step #3
    3. Enable GPIO interrupt in GPIO module, and select edge and priority
     
    Please refer to my example in e2e thread mentioned in your message
  • Hi QJ Wang,

    Thanks for reply. I made your suggestions and the interrupt run once time but i want to run on every push. Halcogen configuration and my code is in below: 

  • Hi QJ Wang,

    I solved my issue when remove the giosetbit functions.