embedded-alloc icon indicating copy to clipboard operation
embedded-alloc copied to clipboard

A heap allocator for embedded systems

Results 10 embedded-alloc issues
Sort by recently updated
recently updated
newest added

As has attempted to be described in the commit message, this is intended to address using this crate with Nordic Semiconductor's SoCs by adding a feature for acting slightly different...

S-waiting-on-review
T-cortex-m

I am a proponent of using a heap on embedded systems. I think there is a lot of unnecessary fear about it. That being said, I also think it needs...

Every example declares its own `#[panic_handler]` function. When I use only `panic_semihosting` crate, I get an error stating: ```` = note: arm-none-eabi-ld: /home/pi/.rustup/toolchains/nightly-armv7-unknown-linux-gnueabihf/lib/rustlib/thumbv7m-none-eabi/lib/libcore-c83b634e1f0ecbbe.rlib(core-c83b634e1f0ecbbe.core.2smtzb3g-cgu.0.rcgu.o): in function `core::panicking::panic_fmt': /rustc/043eca7f0b34d12e61c44206beca740628647080//library/core/src/panicking.rs:85: undefined reference to...

This appears to be working with the nrf52_dk example I added. I would like to add a bit more instrumentation to it and look into what changes might make sense...

S-waiting-on-review
T-cortex-m

This uses `critical_section::with` instead of `cortex_m::interrupt::free` to acquire a critical section. This allows customizing the critical section implementation, to make it sound for multicore chips for example. This is a...

S-waiting-on-review
T-cortex-m

We would like to add an example using `spin` to make sure the heap is initialized once :).

- I've gotten code using [core](https://doc.rust-lang.org/core/index.html) to run on the arc-elf32 target using [rustc_codegen_gcc](https://github.com/rust-lang/rustc_codegen_gcc) (as discussed in a [Rust forum post](https://users.rust-lang.org/t/cross-compiling-for-arc-processor-argonaut-risc-core/98306)) - I'm attempting to link C code which calls...

At the moment you provide heap.used() but i need something like heap.maxUsed() to validate some of the code that we are working with can work on certain device types

enhancement
question

Includes/builds on #109 . - Added `Heap::free` and `Heap::used` for the TLSF heap. - Added example showcasing regular heap exhaustion and example which shows the memory usage API.