Hacking Hardware McFly - an RP2040 board compatible with Picofly

linuxares

The inadequate, autocratic beast!
Global Moderator
Joined
Aug 5, 2007
Messages
13,302
Trophies
2
XP
18,146
Country
Sweden
Time to debunk this once and for all. The original flex cable has quite a distance from the capacitors. Its more of a design choice that has been used since SX. No reason the mosfet incorporated in the main chip will work differently.

The only reason the "close to the APU" is a thing is because of the beta people trying out stuff to make their lives easier by soldering it directly to the capacitor.
And also less resistance on the way by having it closer since people might use shitty wire.
 
  • Love
  • Like
Reactions: peteruk and impeeza

evil_santa

Well-Known Member
Member
Joined
Jan 15, 2020
Messages
380
Trophies
1
Age
39
XP
1,840
Country
Germany
wouldn't it be better to add a level shifter? so the mcfly could also be used for other devices. Android tablets, TVs whatever. firmware must then of course be adjusted.
 
  • Like
Reactions: impeeza

impeeza

¡Kabito!
Member
Joined
Apr 5, 2011
Messages
6,359
Trophies
3
Age
46
Location
At my chair.
XP
18,707
Country
Colombia
Time to debunk this once and for all. The original flex cable has quite a distance from the capacitors. Its more of a design choice that has been used since SX. No reason the mosfet incorporated in the main chip will work differently.

The only reason the "close to the APU" is a thing is because of the beta people trying out stuff to make their lives easier by soldering it directly to the capacitor.
ok, thanks for the explaining, so the eddy currents, have no effect at all? nor the timings?
 

ghjfdtg

Well-Known Member
Member
Joined
Jul 13, 2014
Messages
1,360
Trophies
1
XP
3,281
Country
Time to debunk this once and for all. The original flex cable has quite a distance from the capacitors. Its more of a design choice that has been used since SX. No reason the mosfet incorporated in the main chip will work differently.

The only reason the "close to the APU" is a thing is because of the beta people trying out stuff to make their lives easier by soldering it directly to the capacitor.
It will increase resistance and inductance. Keep in mind the mosfet is shorting this voltage rail for a moment which means there will be many amps flowing with the capacitors still in place. And the inductance will cause ringing which has the potential to destroy your SoC if it goes out of hand.

If the PCB would be sitting between RAM and SoC it's probably fine but the extra wire length when it's not can be problematic.
 
  • Love
Reactions: impeeza

gokuz

Well-Known Member
Member
Joined
Jun 13, 2014
Messages
145
Trophies
0
XP
638
Country
Senegal
It will increase resistance and inductance. Keep in mind the mosfet is shorting this voltage rail for a moment which means there will be many amps flowing with the capacitors still in place. And the inductance will cause ringing which has the potential to destroy your SoC if it goes out of hand.

If the PCB would be sitting between RAM and SoC it's probably fine but the extra wire length when it's not can be problematic.
Did I not mention the flex cable that everyone is using right now and ever since sx days is quite far apart from the capacitor.
 

Phantomas77

Well-Known Member
Member
Joined
Dec 19, 2022
Messages
281
Trophies
0
XP
713
Country
Italy
Time to debunk this once and for all. The original flex cable has quite a distance from the capacitors. Its more of a design choice that has been used since SX. No reason the mosfet incorporated in the main chip will work differently.

The only reason the "close to the APU" is a thing is because of the beta people trying out stuff to make their lives easier by soldering it directly to the capacitor.
Well, not so simple. The FETs responsible for performing the glitch on the APU could reach currents up to 10A. The via's on the CPU flex are thick enough to support this.
If the FET would be moved to the chip PCB, thicker wires would be needed for the install, nontheless there's a high probability for signal delay by using longer wires, so not sure if the glitch would work properly.
 
  • Like
Reactions: impeeza

Saliciae

Well-Known Member
OP
Newcomer
Joined
Mar 20, 2023
Messages
83
Trophies
0
Age
24
XP
419
Country
United Kingdom
I'm currently working on a SwitchME port to the adafruit tinyusb library, which opens up a massive array of microcontrollers including the RP2040 to supporting RCM injection, does anyone have any experience with low level calls to the TinyUSB library as it's shockingly poorly documented?

Time to debunk this once and for all. The original flex cable has quite a distance from the capacitors. Its more of a design choice that has been used since SX. No reason the mosfet incorporated in the main chip will work differently.

The only reason the "close to the APU" is a thing is because of the beta people trying out stuff to make their lives easier by soldering it directly to the capacitor.
The wires needed to handle the current wouldn't be able to fit through the RF shielding without cutting, the flex cable doesn't move them that far away in the grand scheme of things, as you've said putting the module inside the shield will probably be alright but the mcfly wont fit inside the shield and i dont want to be held responsible for people using magnet wire for the main glitch signal, it turning into a fuse and them causing damage. It's easier to just use the hwfly flex or one of the other flexes people are working on
 

gokuz

Well-Known Member
Member
Joined
Jun 13, 2014
Messages
145
Trophies
0
XP
638
Country
Senegal
I'm currently working on a SwitchME port to the adafruit tinyusb library, which opens up a massive array of microcontrollers including the RP2040 to supporting RCM injection, does anyone have any experience with low level calls to the TinyUSB library as it's shockingly poorly documented?


The wires needed to handle the current wouldn't be able to fit through the RF shielding without cutting, the flex cable doesn't move them that far away in the grand scheme of things, as you've said putting the module inside the shield will probably be alright but the mcfly wont fit inside the shield and i dont want to be held responsible for people using magnet wire for the main glitch signal, it turning into a fuse and them causing damage. It's easier to just use the hwfly flex or one of the other flexes people are working on

Since you're making a new chip, might as well not use the flex cable that they can and will monopolize. Its the logical approach tbh. Not to mention, the flex cable is not that accessible to everyone with its only source, aliexpress.

If you're opposed to magnet wire, you could use ribbon cable laser for ps2 which can be cut in half and bridging the 2 halfs for both capacitors.

That's just 1 of the possibilities. Flex cable can be designed and purchased without the mosfets in built from pcbway too. You wouldn't want people to solder mosfets to flex cable, high risk procedure.
 

Saliciae

Well-Known Member
OP
Newcomer
Joined
Mar 20, 2023
Messages
83
Trophies
0
Age
24
XP
419
Country
United Kingdom
Since you're making a new chip, might as well not use the flex cable that they can and will monopolize. Its the logical approach tbh. Not to mention, the flex cable is not that accessible to everyone with its only source, aliexpress.

If you're opposed to magnet wire, you could use ribbon cable laser for ps2 which can be cut in half and bridging the 2 halfs for both capacitors.

That's just 1 of the possibilities. Flex cable can be designed and purchased without the mosfets in built from pcbway too. You wouldn't want people to solder mosfets to flex cable, high risk procedure.
There are alternative open source flexes ive seen in development. I'm not opposed to magnet wire as a concept and indeed it will be very useful for soldering the EMMC lines however for the currents that it will conduct during the glitching it is not of sufficient gauge. my board also supports direct soldered FETs so it is not dependent on aliexpress hwfly cables

The Mcfly will be open source, so once it's complete as is you could add the mosfet and test it yourself. I'm deliberately embarking on a conservative design to guarantee success
 

impeeza

¡Kabito!
Member
Joined
Apr 5, 2011
Messages
6,359
Trophies
3
Age
46
Location
At my chair.
XP
18,707
Country
Colombia
Did I not mention the flex cable that everyone is using right now and ever since sx days is quite far apart from the capacitor.
Yeah, that flexex have Thick wires, and really are not so "appart" from caps, are at the very edge of the CPU, the flexes also have a design for avoid eddy currents because have the GND wires along the path.
 
  • Like
Reactions: Saliciae

impeeza

¡Kabito!
Member
Joined
Apr 5, 2011
Messages
6,359
Trophies
3
Age
46
Location
At my chair.
XP
18,707
Country
Colombia
No it's not, there's a reason it wasn't included on the chip. :)
At this time "far" is a maleable concept. you need to have it as close as you can to the capacitors, is like the capacitors they must be close as can to the CPU.

The ideal point is exactly by the cap, but that is for the skilled ones. the flex cable was designed to be easy of install and still be closest to caps.

Put the mosfet outside of the CPU enclosure will not work at all. search about eddy currents and clock timings.
 

gokuz

Well-Known Member
Member
Joined
Jun 13, 2014
Messages
145
Trophies
0
XP
638
Country
Senegal
Put the mosfet outside of the CPU enclosure will not work at all. search about eddy currents and clock timings.
Yea this is incorrect, again. It will work outside the cpu enclosure. People tend to exaggerate the distance of the mosfets thinking its so far that it will get loss signals.

Mcfly/RP2040 is right next to the SX flex cable original position.
 
  • Like
Reactions: impeeza

Saliciae

Well-Known Member
OP
Newcomer
Joined
Mar 20, 2023
Messages
83
Trophies
0
Age
24
XP
419
Country
United Kingdom
Yea this is incorrect, again. It will work outside the cpu enclosure. People tend to exaggerate the distance of the mosfets thinking its so far that it will get loss signals.

Mcfly/RP2040 is right next to the SX flex cable original position.
Out of interest have you actually tested this to demonstrate that it properly works?
Post automatically merged:

I sacrificed another rp2040 project for this but here it is, at functionally assembled (no FFC connector) a total thickness of 1.5mm on the dot at the thickest part! I'm very happy with that.

Next step is testing, see if it takes firmware and works n all that. I also need to get my extra components and build up the rest of these to send out to testers
 

Attachments

  • Thicc.jpg
    Thicc.jpg
    6.4 MB · Views: 55
Last edited by Saliciae,

Saliciae

Well-Known Member
OP
Newcomer
Joined
Mar 20, 2023
Messages
83
Trophies
0
Age
24
XP
419
Country
United Kingdom
Board is now fully assembled, added the ffc connector. Had to change the RGB led on this one so it's not as thin as it could be but that will get sorted in the next revision, as a bonus the sk6805-e-j led I plan to use will allow me to make it even smaller!. Gonna build some more and start shipping them out.

Thanks to all who messaged me offering to test, I'll start messaging a few of you about where to send them.

This project has progressed super quickly and I'm excited to see how it performs!
 

Attachments

  • Fullyassemvled.jpg
    Fullyassemvled.jpg
    2 MB · Views: 71

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    S @ salazarcosplay: how are you doing @K3Nv2