No loadable segments were found in the ELF file

Hello All,
I'm new to rust and I tried creating a blinky project similar to the examples for STM32 board - NUCLEO_G431Rb and I got this issue

This is my project repo Rust-Programming/rusty-blink at main · ram2424/Rust-Programming · GitHub is there any issue with my project setup? What should I do to progress from here

what is the template project you are following? the content of build.rs looks unusual, you typically don't specify the memory.x to the linker, it is indirectly used by the cortex-m-rt crate, and the main linker script is link.x, which is typically specified in .cargo/config.toml, but it's also valid if you use build scripts, just make sure it's -Tlink.x, not -Tmemory.x.

you can check out this template for stm32 based projects:

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.