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 <[email protected]> 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 <[email protected]> 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.)?
>>>
>>
> 

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to