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

General • Re: Pico 2W (RP2350) Turn on a led without SDK

$
0
0
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?
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.

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.
For the program, I set the address GPIO0_CTRL_ADDR to 0x40028004. Is this correct?
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 -

Code:

#define IO_BANK0_BASE   0x40028000#define GPIO_CTRL       (IO_BANK0_BASE + 0x004)
But accessing GPIO0 won't affect the Pico 2W built-in LED so it's not clear what you are trying to do or hoping to achieve.

Statistics: Posted by hippy — Fri Apr 11, 2025 3:41 pm



Viewing all articles
Browse latest Browse all 8082

Trending Articles