[Nix-dev] Cross development for STM32

Alexey Shmalko rasen.dubi at gmail.com
Fri Aug 26 14:23:46 CEST 2016


To get Rust running on STM32 you need a cross-compiler first. Basically, rustc is backed by llvm, so you shouldn't rebuild it. However, you should build libcore for your target architecture.

After that, you can compile your application. I've being doing bare-metal programming, so I haven't compiled many other libraries.

Resources you may check out:
- my kernel for STM32F4Discovery which is 100% Rust (https://github.com/rasendubi/bkernel).
- cross-compilation guide (https://spin.atomicobject.com/2015/02/20/rust-language-c-embedded/)
- zinc.rs project (https://zinc.rs/). Though, I haven't used it.
- stm32.rs (https://github.com/japaric/stm32.rs).
- Philipp Oppermann's blog series on writing an OS with Rust (http://os.phil-opp.com/), though it's x86.

Hope this helps

On 08/26/2016 11:43 AM, Moritz Ulrich wrote:
> 
> Rust on STM32 mostly. I'm quite familar with Rust and Nix, but not with
> the STM32 yet.
> 
> Alexey Shmalko <rasen.dubi at gmail.com> writes:
> 
>> [ Unknown signature status ]
>> What part you're interested in? Nix, STM32, Rust?
>>
>> On 08/25/2016 03:41 PM, Moritz Ulrich wrote:
>>>
>>> Alexey Shmalko <rasen.dubi at gmail.com> writes:
>>>
>>>> [ Unknown signature status ]
>>>> Hi!
>>>>
>>>> I was also doing some STM32 development (but with Rust).
>>>
>>> I'm very interested in this. Can you share any resources (where to
>>> start, any guides, etc.)?
>>>
>>
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160826/af02266f/attachment-0001.sig>


More information about the nix-dev mailing list