New major updates made in the $3 Pikofly Nintendo Switch modchip project

27002868.jpg

Late last year, a homebrew developer made a massive announcement: there was a new Nintendo Switch modchip coming soon, and it would support not just launch units, but also more modern OLED and Mariko Switch revisions (though not Erista). The icing on the cake was that the modchip to hack the Switch only cost $3. and consist of a RP2040-Zero unit, which hugely contrasted with the only other available modchip--the HWfly--which went for over $100 at the time. Dubbed the Pikofly chip, it would, in theory, be able to install custom firmware on your Switch.

Scene members quickly took notice, as many began working on breaking down how the chip functioned, with lots of information available in the Pikofly discussion thread. And now, thanks to their hard work, you can now take advantage of it, in order to get the Pikofly modchip working on your Switch. GBAtemp user Rehius has published a GitHub project page that has a firmware file and further documentation, while Flynnsmt4 managed to decrypt parts of the code, even creating a cycle-accurate emulator that further explains how the chip works. With these new milestones, people are already discussing techniques to solder the chip to their consoles.

If you're curious to see more, and how this unfolds, head on over to the Pikofly thread to see the latest discussion and updates.
 

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,335
Trophies
4
Location
Space
XP
13,911
Country
Norway
I always wondered why use a Pi at all. This seems like massive overkill to me, seems like something the average microcontroller should handle, something along the lines of an AtMega. Then again, I don’t know exactly what code this is running, so I may be entirely off-base and that cortex is doing voodoo on the Switch. I suppose availability of resources and big community make it more attractive.
RP2040 boards are cheaper than most other alternatives. Even cheaper than Arduino clones. But what makes them special is the PIO (programmable I/O) functionality, which makes possible things an ATmega just couldn't do, because emulating hardware protocols in software is very slow (not to mention very timing sensitive, and you don't have precise timing with a 8/16mhz clock) and ATmega chips already run at a slow clock speed. PIO negates the need for emulating them in software.
AFAIK, Switch chips use glitching, similar to Xbox 360 RGH. This is rather timing sensitive, so it's possible an ATmega chip is just too slow for the accurate timing that is needed to make it work reliably every time. In my own experience with Arduinos, timing sensitive I/O is really where they fall apart.
A Teensy would be an option, but, those cost several times more than a Pi Pico.
 
  • Like
Reactions: Foxi4

Foxi4

Endless Trash
Global Moderator
Joined
Sep 13, 2009
Messages
30,825
Trophies
3
Location
Gaming Grotto
XP
29,851
Country
Poland
The RP2040 has a special PIO hardware, which lets you execute very deliberate instructions in a single clock cycle. It's a compromise between bitbanging stuff with a CPU, or a very expensive CPLD/FPGA. It's small yet powerful, letting you even drive displays in real time, even unattended if you can program the DMA chain, for absolute 0% CPU usage.

To my knowledge, you need very short pulses to glitch the hardware (reverse-engineering the dumped firmware says it overclocks to 333MHz!), so I highly doubt a pity ATMega could handle this job. Or at least, definitely not an 8bit one.
Oh, that makes sense, thanks bud. I guess I’m just more used to seeing an ATMega 32U4 for stuff like this, but tighter timings and higher frequency requirements make sense if it’s sort of like a reset glitch hack.
 
  • Like
Reactions: Sono

orangy57

bruh
Member
Joined
Aug 17, 2015
Messages
917
Trophies
1
Age
21
Location
New Jersey
XP
2,957
Country
United States
I always wondered why use a Pi at all. This seems like massive overkill to me, seems like something the average microcontroller should handle, something along the lines of an AtMega. Then again, I don’t know exactly what code this is running, so I may be entirely off-base and that cortex is doing voodoo on the Switch. I suppose availability of resources and big community make it more attractive.
pretty sure the raspberry pi pico is just a microcontroller made by the raspberry pi ppl. The raspberry pi zero and regular pi are the ones with the arm processors. Raspberry pi naming schemes are getting garbled now since they have a tons of different SKUs that do mostly the same stuff. At least it's not as hard as finding the right arduino clone to use

EDIT: I'm wrong, even the pico even has an ARM Cortex processor inside but it's super low-power. I wonder if it was picked for convenience or if they needed more performance than an average microcontroller for some reason
 

JonJaded

Well-Known Member
Member
Joined
May 22, 2016
Messages
681
Trophies
0
XP
2,959
Country
United States
So cool so see this get rumored and come to life over the past couple of months. Truly amazing community we have here.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2
  • BakerMan
    I rather enjoy a life of taking it easy. I haven't reached that life yet though.
  • Veho @ Veho:
    Do you dangle a baggie in front of them, like a carrot?
    +1
  • The Real Jdbye @ The Real Jdbye:
    they're the same thing
    +1
  • The Real Jdbye @ The Real Jdbye:
    i like that idea
    +1
  • Veho @ Veho:
    What's the same thing?
    +1
  • The Real Jdbye @ The Real Jdbye:
    before or after a hit
    +1
  • Veho @ Veho:
    Nah, a hit gives them mad meth powers, but makes them more difficult to control.
    +1
  • Veho @ Veho:
    Before a hit they're like zombies, persistent but slow.
    +1
  • Veho @ Veho:
    It's a tradeoff.
    +1
  • The Real Jdbye @ The Real Jdbye:
    no i mean, before a hit is after the previous hit
    +1
  • The Real Jdbye @ The Real Jdbye:
    if you keep them well enough fed, it's the same thing
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    By the power of Florida Man, I have the power!!! *Lifts up meth pipe* Meth Man!!! lol
  • BakerMan @ BakerMan:
    Guys, I just learned my little brother is in the hospital because he had a seizure last night.
  • cearp @ cearp:
    Sorry to hear that BakerMan
    +2
  • BakerMan @ BakerMan:
    Just found out he's doing alright, doing a lot of complaining too, rightfully so. Who wouldn't complain after having a seizure and being hospitalized?
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Glad he is OK and complaining is cool :)
    +1
  • K3Nv2 @ K3Nv2:
    Yeah been there had that no fun
    +1
  • K3Nv2 @ K3Nv2:
    They'll give him sleep studies eegs and possibly one week hospital stay
    +1
  • BakerMan @ BakerMan:
    I hope it's not a week.
  • K3Nv2 @ K3Nv2:
    It's standard so doctors can get a idea about what's going on
  • BakerMan @ BakerMan:
    understood
  • BakerMan @ BakerMan:
    well, i'm glad he seems to be doing fine, and ig i'm going to start spewing goofy shit again
  • BakerMan @ BakerMan:
    Update: Turns out he's epileptic
  • K3Nv2 @ K3Nv2:
    Get a 2nd opinion run mris etc they told me that also
    K3Nv2 @ K3Nv2: Get a 2nd opinion run mris etc they told me that also