Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8621

General • Re: Spurious GPIO8 interrupts triggered starting sleep mode - INTF forced interrupt issue

$
0
0
Diving into sleep_run_from_xosc(), I traced the path to the line that modifies the intf register:

sleep_run_from_dormant_source() calls:

Code:

// Reconfigure uart with new clockssetup_default_uart();
This, in turn, calls:

Code:

gpio_set_function(PICO_DEFAULT_UART_TX_PIN, GPIO_FUNC_UART);
The line actually responsible for changing the intf register is:

Code:

// Zero all fields apart from fsel; we want this IO to do what the peripheral tells it.// This doesn't affect e.g. pullup/pulldown, as these are in pad controls.io_bank0_hw->io[gpio].ctrl = fn << IO_BANK0_GPIO0_CTRL_FUNCSEL_LSB;
where gpio = 28 and fn = GPIO_FUNC_UART...

I'm not very famialir with µcontroller registers behavior... And don't see the link with tha line the the gpio 8 interrupt register intf being activated...

Statistics: Posted by phelixbel — Mon Sep 08, 2025 8:32 am



Viewing all articles
Browse latest Browse all 8621

Trending Articles