Pico-W: shrink firmware region
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 38/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- c
- Área
- embedded-iot
Línea de trabajo
Start by comparing the Pico-W mpconfigboard.mk and link.ld settings mentioned in the issue, then trace how the firmware region and /saves partition are laid out. Check whether the size values need to account for other regions or alignment. Done means a smaller firmware region can coexist with the added partition without corrupting the CIRCUITPY drive.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
CircuitPython version and board name
built from tag 10.3.0
Code/REPL
n.a.
Behavior
n.a.
Description
I am trying to create a custom build for the Pico-W with a much smaller firmware region to fit in a /saves partition. Reducing required firmware size works by deactivating all modules I don't need:
Memory region Used Size Region Size %age Used
FLASH_FIRMWARE: 1266372 B 1250 KB 98.94%
RAM: 46812 B 256 KB 17.86%
SCRATCH_Y: 0 B 4 KB 0.00%
SCRATCH_X: 0 B 4 KB 0.00%
The firmware size / region size is configured in two places:
# mpconfigboard.mk
CFLAGS += -DCIRCUITPY_FIRMWARE_SIZE='(1536 * 1024)'
and
# link.ld
firmware_size = 1532k;
My questions:
- why do the figures differ (1536 vs. 1532)?
- are there other things to take into account? Does the firmware_size has to be a multiple of 4?
I did change the firmware_size to 1250k and CIRCUITPY_FIRMWARE_SIZE accordingly, added a 200k /saves partition, and this results in a partly corrupted CIRCUITPY drive (mounts as ro after errors):
ls: Zugriff auf '/mnt/.fseventsd' nicht möglich: Eingabe-/Ausgabefehler
ls: Zugriff auf '/mnt/sd' nicht möglich: Eingabe-/Ausgabefehler
insgesamt 18
drwxr-xr-x 6 bablokb users 16384 1. Jan 1970 ./
drwxr-xr-x 1 root root 300 25. Mär 2025 ../
-rwxr-xr-x 1 bablokb users 166 1. Jan 2000 boot_out.txt*
-rwxr-xr-x 1 bablokb users 22 1. Jan 2000 code.py*
d????????? ? ? ? ? ? .fseventsd/
drwxr-xr-x 2 bablokb users 512 1. Jan 2000 lib/
-rwxr-xr-x 1 bablokb users 0 1. Jan 2000 .metadata_never_index*
drwxr-xr-x 2 bablokb users 512 1. Jan 2000 saves/
d????????? ? ? ? ? ? sd/
-rwxr-xr-x 1 bablokb users 0 1. Jan 2000 .Trash-1000*
-rwxr-xr-x 1 bablokb users 0 1. Jan 2000 .Trashes*
### Additional information
_No response_
- Lenguaje dominante
- C
- Estrellas
- 4.6k
- Forks
- 1.4k
- Merge medio
- 1 d 7 h
- PR fusionados (30 d)
- 147
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de adafruit/circuitpython
-
board breaks api
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
adafruit/circuitpython#11099 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Tags and BranchesAbiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
adafruit/circuitpython#11514 ·
Los mantenedores suelen responder en 1 día
-
Move silabs to ZephyrAbiertosilabs
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
adafruit/circuitpython#11507 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Feature/API request: portable camera capture across ESP-IDF, Zephyr, and parallel interfacesAbiertocircuitpython api enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
adafruit/circuitpython#11505 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
adafruit/circuitpython#11472 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de adafruit/circuitpython
Issues similares
-
Discover carries headerEdges that nothing reads since #1914 moved E0507/E0517 to the compiler graphAbiertotech-debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
2个显示的问题Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
coolsnowwolf/lede#14209 ·
-
Cannot run pico-hsm-tool.pyAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
polhenarejos/pico-hsm#147 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
OpenPrinting/cups#1746 ·
Los mantenedores suelen responder en 1 día
-
Status: Opened
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día