neykov / armboot Goto Github PK
View Code? Open in Web Editor NEWRust language testbed project for porting to STM32F4xx ARM microcontrollers.
Rust language testbed project for porting to STM32F4xx ARM microcontrollers.
Now that Rust 1.0.0 has landed, I thought it would be interesting to try using it on my ARM dev board. It seems this repo needs to be updated a bit to work on 1.0.0 though.
Here is the output I get when I run make
. I haven't attempted to debug it at all, but I'm happy to provide any information that you need or test any fix - just let me know!
ricky@t520 100% /tmp/armboot (master)$ make
rustc --target target.json -A non_camel_case_types -A dead_code -A non_snake_case main.rs -C link-args="-Tsys/stm32_flash.ld -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16" -L. -o blinky.elf -Z print-link-args
zero/zero.rs:2:41: 2:45 error: use of undeclared type name `uint`
zero/zero.rs:2 fn fail_bounds_check(_: &(&'static str, uint),
^~~~
zero/zero.rs:3:25: 3:29 error: use of undeclared type name `uint`
zero/zero.rs:3 _: uint, _: uint) -> ! {
^~~~
zero/zero.rs:3:34: 3:38 error: use of undeclared type name `uint`
zero/zero.rs:3 _: uint, _: uint) -> ! {
^~~~
zero/zero.rs:16:42: 16:46 error: use of undeclared type name `uint`
zero/zero.rs:16 fn panic_bounds_check(_: &(&'static str, uint),
^~~~
zero/zero.rs:17:25: 17:29 error: use of undeclared type name `uint`
zero/zero.rs:17 _: uint, _: uint) -> ! {
^~~~
zero/zero.rs:17:34: 17:38 error: use of undeclared type name `uint`
zero/zero.rs:17 _: uint, _: uint) -> ! {
^~~~
main.rs:27:18: 27:22 error: use of undeclared type name `uint`
main.rs:27 const LED_GREEN :uint = 12;
^~~~
main.rs:28:19: 28:23 error: use of undeclared type name `uint`
main.rs:28 const LED_ORANGE :uint = 13;
^~~~
main.rs:29:16: 29:20 error: use of undeclared type name `uint`
main.rs:29 const LED_RED :uint = 14;
^~~~
main.rs:30:17: 30:21 error: use of undeclared type name `uint`
main.rs:30 const LED_BLUE :uint = 15;
^~~~
main.rs:32:13: 32:17 error: use of undeclared type name `uint`
main.rs:32 static LED :uint = LED_RED;
^~~~
main.rs:62:37: 62:41 error: use of undeclared type name `uint`
main.rs:62 let irq_en = 1 << (TIM2_IRQn!() as uint);
^~~~
error: aborting due to 12 previous errors
Makefile:46: recipe for target 'blinky.elf' failed
make: *** [blinky.elf] Error 101
Hi,
do you know how much effort it is to support xilix with arm cortex a9?
i also need the startup code right?
Thx,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.