6 ms·
I'm very exciting to see Rust move into embedded! Some minor comments: The page includes example code. I worry that it might be abstracting TOO much away, whi
by diydsp 12y ago
I'm very exciting to see Rust move into embedded!
Some minor comments:
The page includes example code. I worry that it might be abstracting TOO much away, while at the same time hiding details.
For example, in the main oscillator example, you still would have to consult deep in the manual to understand what m, n and divisor do if you wanted to change the frequency. I think if you're going to use a library, it would be cool to operate at a higher level than this.
Also notice in the timer example, you still have no idea what frequency the timer will run at! Maybe I just want something higher-level built on top of this? Maybe I should implement libopencm3 on top of this?
p.s. Crazed fans of the greatest microcontroller of all time, the stm32f4, check out http://reddit.com/r/stm32f4 http://reddit.com/r/stm32f4 and http://diydsp.com/livesite/pages/stm32f4 http://diydsp.com/livesite/pages/stm32f4
- eric_bullington 12y ago>http://diydsp.com/livesite/pages/stm32f4 http://diydsp.com/livesite/pages/stm32f4 Very cool page! Great links to some amazing projects on the stm32f4. I see you mention Lua and JavaScript on the stm32f4, have you seen micropython running on it? https://github.com/micropython/micropython/wiki/Board-STM32F407-Discovery https://github.com/micropython/micropython/wiki/Board-STM32F...
- diydsp 12y agoWow. I didn't know that was possible! Ima haveta try it. You can easily see I'm obsessed. I'll add it now. Seriously, a chip like this hasn't been out in a long time. Sure there are more powerful ones like the BeagleBoards and RPis, but they require more support hardware, space, components and power. Hell, the stm32f4 can run with just a few capacitors and no external crystal, and still have 24 analog inputs, two analog outputs and floating point. Plus it has internal cache so it can run at 168+ MHz and DMA, etc.
- paletoy 12y agoI read that they will be release a new $1 stm32f4 mcu using a new process soon. http://www.st.com/web/en/news/n3547 http://www.st.com/web/en/news/n3547 BTW , my mistake , it's stm32f3 , altough it's cortex-m4. a bit weird naming.
- akiselev 12y ago> p.s. Crazed fans of the greatest microcontroller of all time, the stm32f4 The greatest until you need to do something complex with both DMA peripherals. Yay for silicon bugs and using tons of third party IP cores without proper testing.
- farcaller 12y agoAt some point I realised that abstracting to the level of "source_frequency" and "out_frequency" is too fragile, That will be going away in some places, will be added in another, where applicable. You are going to specify the exact PLL configuration, but zinc will compute the clocks for e.g. timer or UART based on frequency or baud rate.