Felipe Balbi
Felipe Balbi reposted
In all fairness, the clock code @jamesmunns.com wrote is so darn flexible and NXP made the variants so darn similar that adding mcxa287 support was a noop. Just examples needed. Even deep sleep worked.
Please, install and test the latest probe-rs. @dbuga.bsky.social merged all of my proposed fixes/improvements. If you have cortex-m devices, make sure to check that there are no known regressions. I checked with STM32G071RB, MCXA266, MSPM0G3519, and STM32F405.
Felipe Balbi reposted
Felipe Balbi reposted
Interested in trying out a Baochip-1x? The 'dabao' evaluation board is now taking pre-orders on Crowd Supply: www.crowdsupply.com/baochip/dabao
Ugh, thanks @diondokter.nl for telling me my handle was invalid. I moved my DNS to desec.io a couple days ago and forgot to port over _atproto TXT record :)
Felipe Balbi reposted
Replying to @galactic-forensics.space
Proof of first low-level driver version :) 2 channels in ext. driven dither mode. Figure shows the signals & trigger. Working with device-driver by @diondokter.nl and Pico de Gallo by @balbi.sh is amazing! Working repo: github.com/trappitsch/l... See example: ll_dither_ext.rs #EmbeddedRust
Must say, seeing folks outside my team at work using pico de gallo is a really nice feeling :-) Cheers @galactic-forensics.space
My first real Pico de Gallo test: successfully set the voltage on an LTC2686 DAC. Development with Pico de Gallo is going to be very fun :) Next thing up: write an actual Rust driver with Device Driver v2. Thanks to @balbi.sh and @diondokter.nl for these amazing tools! #EmbeddedRust #Rust
Felipe Balbi reposted
I have also been experimenting with Clash. I couldn’t get Vivado’s programmer to work and I had nothing readily available for the task. So I wrote Norbert, a spi nor programmer written on top of pico de gallo: balbi.sh/posts/norber...
Forgot to post here, but a little while back, Pico de Gallo got an MCP server. I was surprised when an agent was able to figure out what the tools did and, given datasheet, even wrote a simple driver for tmp117: balbi.sh/posts/gallo-...
Super glad to see this getting more love. Thanks @jamesmunns.com for all the fish :-)
github.com/embassy-rs/e... I love a checklist and this checklist is the best guide I am aware of "how to effectively write async embedded rust drivers for microcontrollers" I am aware of today. Parts written by myself and @balbi.sh for MCX-A, expanded by @dirbaio.bsky.social for all of embassy.
I’ve been tinkering with Clash and wondered if I could make validating eSPI controller drivers easier. That idea became Tamal. 😊 Clash core + Rust tools! It’s experimental, but should be useful. Why I built it: balbi.sh/posts/tamal-... Code: github.com/felipebalbi/... #haskell #clashlang #fpga
Spent a few weeks bringing up an I3C target driver for NXP MCXA in Rust/embassy. Three gotchas each took a day to diagnose and a line to fix — a 4× slow clock, a FIFO race, and a sneaky Stop that wrecked my framing. Wrote it up to make sure I never fall for these again 👇 balbi.sh/posts/i3c-ta...
Felipe Balbi reposted
I'm biased because I helped write part of it (and @balbi.sh has continued adding even more info!), but I think the `embassy-mcxa`'s DEVGUIDE is probably one of the better references now for "how embassy HALs work and how to write a good one", if that's what you're in to. github.com/embassy-rs/e...
Hi everyone, I wote a few more (personal) ideas on how I'm using Pico de Gallo for crate examples. These are personal opinions, not prescriptive in any way. balbi.sh/posts/exampl...
Write embedded drivers without the MCU in your dev loop. Pico de Gallo turns a Pi Pico 2 into a USB-attached I²C/SPI/UART/GPIO/ADC/1-Wire bridge, so your driver is just a cargo run binary talking to real silicon from your laptop. Build one for your chip → balbi.sh/posts/writin...
You are up to date.