embassy-rs / embassy

Modern embedded framework, using Rust and async.
https://embassy.dev
Apache License 2.0
5.51k stars 767 forks source link

stm32f750v8 led blink gives FLAH Overfow error #3246

Open learncodingforweb opened 2 months ago

learncodingforweb commented 2 months ago

I have code https://github.com/learncodingforweb/blinky

error: linking with `rust-lld` failed: exit status: 1

 = note: rust-lld: error: section '.rodata' will not fit in region 'FLASH': overflowed by 9048 bytes
          rust-lld: error: section '.data' will not fit in region 'FLASH': overflowed by 9160 bytes
          rust-lld: error: section '.gnu.sgstubs' will not fit in region 'FLASH': overflowed by 9184 bytes

warning: `blinky` (bin "blinky") generated 1 warning
error: could not compile `blinky` (bin "blinky") due to 1 previous error; 1 warning emitted

Note i change stm32f750v8 to stm32f446rc in Cargo.toml. then it is working fine on stm32f446rc microcontroller. but i tried to run same code by changing to stm32f750v8 in Cargo.toml. then i am getting error?

Dirbaio commented 2 months ago

are you building with --release?

learncodingforweb commented 2 months ago

Yes, i tried with cargo run cargo run --release