After some research, I concluded that the Arduino framework somehow prevents polling the External Interrupt flag (INTF0
). The same hardware and code worked flawlessly when the main
function was explicitly defined. I'll leave the "why" to the Arduino experts.