I have a TI Hercules LaunchPad and I'm trying to get familiar with the HAL Code Generator.
The Launchpad has a pushbutton linked to GIOA7.
I am trying to react on pushing that button and as a test have set a breakpoint on these handlers
- gio.c method gioHighLevelInterrupt();
- notificon.c method gioNotification();
In HALCoGen, I
- chose TMS570LS0432PZ as device (the right one for my LHercules Launchpad)
- on Driver Enable enabled the gio driver,
- on GIO checked that the pin PORT A 7 is input enabled (default)
- on GIO also enabled the VIM route for that pin(default)
- on the INTERRUPT tab I left all as default (IRQ despach mode = vector mode)
- on the VIM channel 0-32 tab I enabled 9: GIO intA
- I initialized the GIO (and later also the VIM) in my sys_main.c
My code does not break on the handlers. That makes me think I have not set all parameters inb HalCoGen properly.
Puzzled in what are the minimum settings in HALCoGen to catch interrupt of that button on pin GIOA7.
Disclaimer:
I was able to create examples to drive the Pin A2 as an output,
I have a working example of reacting to that pin in c code, but not with HALCoGen
and I was enable to break on notifications on the Safety example from TI.