Questions tagged [rust-no-std]
38 questions
0
votes
1 answer
method to get output of itm.txt in a file?
all I am new to Embedded development. Currently, I am working on the discovery board using the discovery book. I have almost completed the book now I want to achieve more in this.
What do I want to do?
I recently worked on sensors, I got the reading…
user15692170
0
votes
0 answers
Is there a way to join a char and a &str in rust without the standard library
I am currently making an operating system in rust by following Philipp Opperman's rust kernel tutorial. I have gotten through the tutorials and now i am trying to make an embedded shell but i cannot find how to join a char and a &str together…

Lap
- 1
- 3
0
votes
1 answer
Rust #![no_std]: unresolved external symbol _mainCRTStartup
I wanted to start a Rust no_std project, so I simply created a new cargo package and wrote in main.rs the following lines:
#![feature(lang_items, start)]
#![no_std]
extern crate libc;
#[start]
fn main(_argc: isize, _argv: *const *const u8) ->…

A cool fish
- 1
- 1
0
votes
1 answer
/usr/bin/link: missing operand after ‘\377\376"’ when compiling bitflags
Following Phillip Opperman's Blog OS, I have been trying to use the bitflags and x86_64 rust crates. The latest x86_64 crate release has bitflags 1.0.4 as a dependency which makes sense. However, I have been completely unable to compile bitflags…

Ben k
- 15
- 3
0
votes
1 answer
cargo test with no_std fails with error code 176, 160
Using the below code in main.rs, when I run cargo test it returns error code 176, when I add a test or `any statement in main function. It starts returning error code 160.
#![no_std]
#![no_main]
#[cfg(test)]
#[macro_use]
extern crate…

xcepti0n
- 41
- 1
- 1
- 4
-1
votes
1 answer
The initial values of static variables may not even match what’s specified in the source code
I'm working on a project around embedded systems. So I have to implement an alloc method for allocating a new segment of memory and dealloc for returning a past allocation to the allocator to reuse.
The following paragraph is taken from Book Rust…

p3zhy
- 81
- 8
-2
votes
2 answers
Add number` string-like (`1+1` = `11`)
I'm making a calculator operating system for a proof of concept Rust OS. I've dug myself into a sort of deep hole with how I handle math, but I don't want to have to rework it all. I have 2 numbers (they are technically f64s but will never have a…

salmon
- 31
- 4