Live data from Hacker News

Raspberry Pi Bare Metal Programming with Rust

blog.thiago.me

1–10 of 96 posts

Re: Raspberry Pi Bare Metal Programming with Rust

#7

I remember reading a couple months ago that bare metal using Rust was in a bad state. If I recall correctly the outputs were prohibitively large, among other issues. Has that changed?

The real reason that Rust isn't necessarily wonderful for bare metal is that a lot of the things you need to do aren't stable yet.

Binary size isn't a problem, though. A lot of the threads talking about sizes aren't doing all the stuff you need to get truly small binaries. That's because, as this stuff is on nightly, it has much worse (or no) docs, so it's easy to miss things.

I'm working on a little kernel, the one linked in the first line of the post, and it's great.

Re: Raspberry Pi Bare Metal Programming with Rust

#8
I have the perfect project for this! Generate a signal using the GPIO ports to drive a mirror and camera in a synchronized fashion.

Does anyone know if the RPi GPIOs can be driven at around 80KHz? I've seen reports that this is possible, but that the USB or video driver tends to lock the CPU for long times, messing with timings - but hopefully running on bare metal would take care of that.

Re: Raspberry Pi Bare Metal Programming with Rust

#10
post #8

I have the perfect project for this! Generate a signal using the GPIO ports to drive a mirror and camera in a synchronized fashion. Does anyone know if the RPi GPIOs can be driven at around 80KHz? I've seen reports that this is possible, but that the USB or video driver tends to lock the CPU for long times, messing with timings - but hopefully running on bare metal would take care of that.

This might be of interest: http://codeandlife.com/2012/07/03/benchmarking-raspberry-pi-...
Post reply on HN