bitvec icon indicating copy to clipboard operation
bitvec copied to clipboard

Build for STM32 (no_std, thumbv7m-none-eabi) - no global memory allocator

Open hanusek opened this issue 2 years ago • 1 comments
trafficstars

Hello! I try to build my project with bitvec for stm32f103.

I added this for my cargo.toml:

[dependencies.bitvec]
version = "1"
default-features = false
features = ["atomic", "alloc"]

Error:

error: no global memory allocator found but one is required; link to std or add `#[global_allocator]` to a static item that implements the GlobalAlloc trait

error: could not compile `my-project` (bin "my-project`) due to previous error

How to fix it?

hanusek avatar Sep 19 '23 15:09 hanusek