5 ms·
SPI Flash
- bee_rider 2y agoIt is about hardware stuff. Just in case anyone as dumb as me is expecting something about triangular matrix multiplication, given the url. Haha.
- deleted 2y ago[deleted]
- amelius 2y agoSide question. Does anyone have a good method of attaching 4 wires (say for a programmer) to the middle of a board, preferably without soldering any connector on the board? (Edge connectors are too bulky and inconvenient). I'm thinking of something that locks through a hole in the board and then pushes 4 pins onto 4 pads on the board.
- magicalhippo 2y agoFor your own boards, there are connectors like this[1], based on pogo pins. [1]: https://www.macrofab.com/blog/designing-pogo-pin-programming-cables-intro-tag-connect/ https://www.macrofab.com/blog/designing-pogo-pin-programming...
- asguy 2y agoSomething like a Tag Connect would work well, if you can spare the footprint space: https://www.tag-connect.com/product/tc2030-fp-footprint https://www.tag-connect.com/product/tc2030-fp-footprint
- the__alchemist 2y agoI use these: 6 pin for connecting to St-Link.
- deleted 2y ago[deleted]
- _moof 2y agoTag Connects are great. I use them on all my boards. Small (I use the "no legs" version), no BOM item, and works beautifully.
- jhallenworld 2y agoI like Tag's new Edge-Connect- we tried them, they are awesome: https://www.tag-connect.com/product/ec06-ctx-20 https://www.tag-connect.com/product/ec06-ctx-20 These take much less board space (especially when considering locking holes) and work much better than Tag-Connect with and especially without the locking holes (those pin lock things are available, but they suck)- I mean they are easy to insert and stay in place, very nice for firmware people to use. They seem ambiguous about which side of the board you can plug them into, but they are actually (barely) polarized. The main disadvantage is the expense of the connector and expense of castellated holes on the edge of your board. If you can afford the BOM cost use a surface mount 10-pin 50-mil header, or if you can afford the footprint space and some holes, use the SKEDD connector. BTW, for SPI-flash chips: an option is to use a socket for them.
- elsjaako 2y agoThere's the SKEDD from WE, no experience yet, but it's on my to do list. https://www.we-online.com/en/components/products/REDFIT_IDC_SKEDD https://www.we-online.com/en/components/products/REDFIT_IDC_...
- amelius 2y agoThis is exactly what I was looking for! (In case anyone missed it, there is a video on the page that explains how it works)
- duskwuff 2y agoA clever zero-cost alternative I've seen some manufacturers use is a 1xN PTH footprint with every other hole offset slightly (~20 mil) to the side. The misalignment is just enough to make a straight pin header get stuck in the holes. There's an example of this on Digilent's Arty development board, at the top of the board between JB and JC: https://digilent.com/shop/arty-a7-100t-artix-7-fpga-development-board/ https://digilent.com/shop/arty-a7-100t-artix-7-fpga-developm...
- buescher 2y agoThat's very cool. Thanks. At first I thought they were just press-fit pins (see https://www.te.com/content/dam/te-com/documents/automotive/global/whitepaper-pressfit-072014.pdf https://www.te.com/content/dam/te-com/documents/automotive/g...) but they are not! More here: https://www.we-online.com/components/media/o210254v410%20ANE011b_EN.pdf https://www.we-online.com/components/media/o210254v410%20ANE... Very nice alternative to Tag-connects. It looks like the PCB footprint is a little larger per pin but the connector is less fragile and the connection would be more robust. Great for having a debugger or logger attached during lifecycle testing especially in the prence of vibration. I also find their other suggested use - enabling expansion connections with no added cost to the base unit - very intriguing. "Options" are very typically higher margin than base products so having a way to enable adding them that does not add a connector to every unit has a lot of potential use cases.
- ajross 2y agoThe "middle", as in you want to tap a trace and not a pin on a chip? You really can't without hacking at the board somehow, there is a plastic resist layer on all the traces. They're usually visible through it but without scratching a hole you can't get to it. And then of course the signals you actually care about are just as likely to be in middle layers you can't reach without destroying something above/below it.
- amelius 2y agoNo, "middle" as in not necessarily near the edge of the board ;)
- tommiegannert 2y agoI designed these a while back to 3D-print cable housings for pin headers. Also made one for cheap pogo pins: https://cad.onshape.com/documents/30e7754831a9aa479c6cd5ac/w/ebc6d270508b817e6c3089f1/e/cd1b5f0a45fac61f41d698eb?renderMode=0&uiState=665c972971c1f274a04d038e https://cad.onshape.com/documents/30e7754831a9aa479c6cd5ac/w... For one-off things, since they (right now) require glue, and it's fiddly. But I like being able to churn out any number of pins quickly. Adding keys that stick out and attach to holes in the PCB, like the other examples mentioned in other comments, sounds nice. Related to the article: There's also the possibility of using DIP sockets with flexible legs (not the lathed ones). By bending them in an S, you get a spring loaded contact. I made a housing for it, to be used as a non-intrusive snooper on DIP EEPROMs.
- XMPPwocky 2y agoFor board you didn't design, PCBite probes work, but can be fiddly especially when you have several've them in a small area.
- myself248 2y agoSeconding PCBite probes. They're weighted, the force comes from gravity not from flex/spring in the arm, which confuses a lot of people at first. But they work pretty well.
- noman-land 2y agoWhat two words are you contracting with "several've"?
- dcassett 2y agoProbably "several of"
- XMPPwocky 2y agoYeah- I started being "flexible" with contractions in casual online speech years ago as a joke, but now it's just sort of part of my "dialect". That and cursed multiple contractions; at least I'ven't'd any problems with accidentally using either of those in formal speech.
- noman-land 2y agoThat's really funny. I personally can't abide by flexible contractions but the multiple contractions are definitely up my alley and I deploy them whenever I can.
- jwiz 2y agoIt almost seems like an overreaction for correcting "should of". s/ of/'ve/
- vbezhenar 2y agoFor some chips you can use test clips like these ones: [1]. You're using a tiny hook to attach wire to the chip pin (assuming that it's exposed a bit. Another option is to use needles like [2]. You just put them wherever needed and wire makes sure that it sits there. It's fragile, but for some quick checks might be OK. 1: https://www.saleae.com/products/test-clips-93 https://www.saleae.com/products/test-clips-93 2: https://www.saleae.com/products/pcbite-kit-with-4x-sq10-probes-and-test-wires https://www.saleae.com/products/pcbite-kit-with-4x-sq10-prob...
- 15155 2y agoTag Connect is hard to beat
- Gibbon1 2y agoI'm probably shouldn't be that guy but I'll be him anyway. If you're willing to go through hole then you can layout a 2 by X row header with the rows slightly too close together. So when you insert a header it will pinch the pins and make a good connection. If you're willing to put a row of pins at the edge of the board you can place it so it pinches the pins between the holes and the edge of the board.
- Scoundreller 2y agoI know some paytv satellite system hackers would read a TSOP flash chip by using a PLCC socket on a PCB that would fit upside down onto the MCU because the pins were easier to connect to. All of the flash pins went to the MCU, so this worked more conveniently. Most of this knowledge has been lost (this was like 20 years ago), but wikipedia mentions the "sombrero de patel" (because it's like a PCB "hat" over the mainboard) here: https://en.wikipedia.org/wiki/Pirate_decryption https://en.wikipedia.org/wiki/Pirate_decryption Since they only needed to extract a small key, it had 1-2x Atmel 8515s to do the work (which were used for other paytv applications, so not hard for people to scrounge once they build the board).
- ttul 2y ago“I’d especially like to thank three colleagues, Thor Simon, Viktor Dukhovni and Larry Rudolph for their assistance on this project.” That’s Victor Duchovni, inventor of the Postfix MTA. Two Sigma, founded only back in 2001 (i.e. newer than Google), has certainly done well in retaining some incredible people on the software and computer security side. From what I’ve heard, it’s a fantastic place to work as an engineer. They give people lots of independence to work on things they consider to be important, which is really exemplified by this blog post. I think many larger financial firms would just outsource their Apple security, but Two Sigma has an engineering poking around the hardware and making novel discoveries. That kind of thinking is how you actually get ahead in securing an enterprise, IMHO.
- kelsey98765431 2y agoOh my goodness good morning and hello! Rarely do I get to see a treat like this on a sunday. Thank you!
- neilv 2y agoAs someone who's only dabbled lightly with electronics, maybe I was just doing it wrong, but I didn't have great luck with those Pomona SOIC test clips. While doing in-circuit SPI flashing of several laptops for Coreboot, getting a good read or write was difficult. One of the many things I'd regularly try was to reseat the clip. Unfortunately, with the Pomona clips, this reseating would tend to catch and push in the pins of the clip, so they started making even poorer contact. This pushing in was possible because there's not a single rigid pin straight through from the component to the test headers. The pin is 2 or 3 (I forget) parts, and a lower part can pop out of the plastic channel/groove it's in. You can disassemble the clip and push things back together, but it wasn't quite the same as before deformed. I ended up having better luck with simpler clips that have a single physical pin straight through, such that the header pitch is the same as the component. Then I bent the pins to the side in an alternating pattern, to give enough room to attach my individual wires.
- baby_souffle 2y ago> I ended up having better luck with simpler clips that have a single physical pin straight through, such that the header pitch is the same as the component. Then I bent the pins to the side in an alternating pattern, to give enough room to attach my individual wires. I have had 100% the opposite experience :D. For whatever reason, the cheap clips quickly develop intermittent faults on some number of wires or the pin deforms hopelessly. You can tell the problem is getting worse when you have to maintain more pressure to hold the clip in place or do multiple reads and confirm that the sha1 hash of the dump file matches for the majority of reads!
- neilv 2y agoMaybe I just had clumsy technique. I was usually attaching the clip with not much room to open it beyond the component, which I guess might've contributed to pushing in the component-side pins.
- lemonlime0x3C33 2y agoI love Pomona SOIC test clips, the other cheaper ones off of amazon are garbage though. :) I find when flashing hardware you might have to try a few times and if you get a good read/write going don't move, don't breathe, don't do anything until it is done.
- gtsnexp 2y agoHuge fan of Trammell Hudson. Not sure why he simply stopped posting after 2021. Loss to humanity.
- transpute 2y agohttps://social.v.st/@th https://social.v.st/@th
- karma_pharmer 2y agoWow, this mastodon interface works without javascript! Why don't all the others have this feature?
- transpute 2y ago> Why don't all the others have this feature? They are not hosted by trmm? :)
- pstrateman 2y agoYou can get lots of very weird results trying to read a chip this way. Powering the chip will inevitable power other things around the chip, things that might also be trying to read it.
- _moof 2y agoYeah, it's best if you can also hold down any reset lines on other things on the board.
- jayyhu 2y agoAlso you could potentially damage the on-board voltage converter/regulator, since most aren’t designed to be back-driven from their outputs.
- mjg59 2y agoYou can frequently avoid this by running at a lower voltage - SPI chips are often rated to run down to under 3V, and associated components will tend not to run with that much power
- demondemidi 2y agoI tried to use something like this to read a flash on a car’s ECU. I even build a small probe station when the clip finally broke. I ended up having to desolder it. I don’t understand how hackers make in-circuit spi probing work on embedded systems. It always just magically works for them to clip a Pomona on and go. I don’t get it.
- userbinator 2y agoOn PC mobos it's usually not a problem as the BIOS is programmed after assembly. I've seen laptop repair shops in China do it all the time.
- fulladder 2y agoGreat use of a Teensy!
- monoidk 2y agoIf anyone is interested, I made some improvements [1] when using this for ISP programming. It should work notably faster (minute -> seconds) and has some ergonomic improvements like setting chip size without reprogramming and some additional commands for exploring flash. I have also added some reliability improvement (IMO), but it may be more or less reliable for you. [1] https://git.sr.ht/~monoidk/spiflash https://git.sr.ht/~monoidk/spiflash