How can I change the default partition table offset (0x8000) in PlatformIO?

Open
#383 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale

Research direction

Start with the platformio.ini settings mentioned in the issue and trace how board_build.partitions is handled during the build. Check whether partitions_offset is supported or ignored, then document the supported configuration or workaround; done means the offset behavior and required settings are clear to users.

Written by the indexing model from the issue text.

Description

I'm trying to move the partition table to a different flash address (e.g., 0x50000) instead of the default 0x8000. I know I can set board_build.partitions to a custom CSV, but I also need to change the actual offset where PlatformIO expects the partition table to be flashed. I tried setting board_build.partitions_offset = 0x50000 in platformio.ini, but it seems this value is ignored during build.

Is there a supported way to change the partition offset in PlatformIO, or any workaround for this?

Regards.

Dominant language
Python
Stars
288
Forks
361
PR merge metrics
No merged PRs in 30d

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 platformio/platformio-docs

All issues in platformio/platformio-docs

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.