Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

region 'FLASH' already defined

Open
#413 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
embedded-iot

Research direction

Clone the linked dimpolo/linkerbug reproduction, enter linkerbug/bootloader, and run cargo build to reproduce the duplicate FLASH region error. Compare the failing linker setup with the proposed GNU linker workaround and verify a fix that keeps the bootloader in the first 32K of FLASH and the application after it.

Written by the indexing model from the issue text.

Description

I seem to have stumbled accross this issue region 'FLASH' already defined but the thread is closed by now.
The proposed fix (using the GNU linker) does work for me.

I wonder if I'm doing something wrong or if there's a bug here.
I set up a reproduction here:
https://github.com/dimpolo/linkerbug
The goal would be to have a bootloader sit at the first 32K of FLASH and the main application at the 32K after.

Steps to reproduce:

git clone https://github.com/dimpolo/linkerbug.git
cd linkerbug/bootloader
cargo build
Dominant language
Rust
Stars
1k
Forks
201
Avg merge
3d 16h
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rust-embedded/cortex-m

All issues in rust-embedded/cortex-m

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.