Other Parts Discussed in Thread: HALCOGEN
Tool/software:
Hello.
Apologies as I am new to microcontrollers.
I am trying to enable interrupts on gioPORTB pin0 on my LAUNCHXL2-570LC43 dev board. I am expecting a an interrupt from a LoRa module that I am interfacing with. This is my gioNotification() code:
// DIO0 interrupt callback
void gioNotification(gioPORT_t *port, uint32 bit) {
printf("Interrupt triggered:\n");
printf(" Port address: 0x%08X\n", (unsigned int)port);
printf(" Bitmask: 0x%08X\n", bit);
if (port == DIO0_PORT && bit == (1U << DIO0_PIN)) { //Check that you are receiving an interrupt on the right port and pin
txDone = true;
printf("Interrupt received: TxDone\n");
}
gioREG->FLG = (1U<<DIO0_PIN);
}
This is my console output:
The fact that there is a print out tells me that the mcu is recognizing the input, and I have observed it on the scope as well.
What could be causing the bitmask to be 0x00000000? I believe I should expect it to be 0x00000001, but I am a bit unsure how the bitmask could be all 0s. What could this indicate?
This is my HALCoGen setup: