Enable GPIO Interrupt for host firmware update

Hi, I am trying to get an GPIO interrupt on my host device when a new host firmware is updated in the notehub. I cannot find such a configuration neither in ATTN pins nor in AUX pins. I found something similar for outboard firmware update but not something I needed. Is there any options to receive a gpio interrupt when updating the host firmware in notehub?

Hi @Thareeq, welcome!

If I’m understanding your question correctly, while there’s no direct command to set the ATTN pins to monitor for a host DFU change, you could try monitoring for an environment variable change. When you upload a new host firmware in Notehub, the envar _fw will update to the “Name of a host firmware binary”.

You could try something like:

{
  "req": "card.attn",
  "mode": "arm,env"
}

Where the ATTN pin is connected to an interrupt on your host MCU.

You can read more about the reserved environment variables here.

Thanks,
Alex