Not for a Pico 2W. I did have genuine Bare Metal programs which toggled a LED on an original Pico, not using the Pico SDK at all.I tried to run these two programs on a Pico2 W, and neither of them turns on the built-in LED.
Does anyone have a similar program that turns on the Pico2 W's built-in LED?
That should work with minimal modifications on a Pico 2. And should then work on a Pico 2W, but not with its built-in LED, only for a LED connected to GPIO which is exposed to the outside world.
That seems correct, GPIO_CTRL has offset 0x004 from the IO_BANK0_BASE which is 0x40028000. I would usually use something like below to make things easier, save having to manually specify each register address manually -For the program, I set the address GPIO0_CTRL_ADDR to 0x40028004. Is this correct?
Code:
#define IO_BANK0_BASE 0x40028000#define GPIO_CTRL (IO_BANK0_BASE + 0x004)Statistics: Posted by hippy — Fri Apr 11, 2025 3:41 pm