PAD_BASE =0x4001c000 but GPIO0 starts at 0x4001c004 see RP2040 Datasheet 2.19.6.3 Pad Control Maybe use PAD_BASE_GPIO = 0x4001c004 Cheers Richard