dragonlock2.github.io/_posts/2021-01-12-stbridge.md
2023-07-10 02:42:23 -07:00

17 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: stbridge
date: 2021-01-12
categories: projects
excerpt: My first legitimately useful open source project, stbridge is a Python wrapper for the STLINK-V3's bridge API.
header:
teaser: /assets/img/2021/stbridge.jpg
---
Still on my quest of learning about non-shady ARM debuggers, I learned about the STLINK-V3MODS. Its even got I2c, SPI, CAN, and GPIO interfaces all for $9 so I was hooked. After spending more hours than Id like to admit getting the code to compile, I had a basic example working in C++. After spending even more hours than Id like to admit getting a Python extension to compile, I also had a basic example working in Python. I even made my first open source contribution (yay!) in the form of bug fixes to a project that converted the bridge API library to use libusb. This conversion was necessary to make stbridge cross-platform compatible. Anyway, Im a huge fan of self-documenting code so there isnt much more to say.
- <https://github.com/dragonlock2/stbridge>
As far as a PCB breakout is concerned, I designed a KiCad footprint which is in my [extraparts](https://github.com/dragonlock2/extraparts) library. Ive designed two breakouts, one of which I call NOGLINK but that ones a little more specialized. Theres this person on [Hackaday](https://hackaday.io/project/171319-hw-mods) who also made a breakout but since OSH Park charges by area I had to design my own much smaller version. If people want the files for it I can throw it up somewhere.
After doing some probing, I confirmed what the person on Hackaday said about pin 22 providing 5v. It appears that the 5v passed through a STMPS2151 and the main processor turns it on after some time. As such, it can source maybe 500mA. However, its important to note that this can literally change at any time since the pin is technically reserved.