Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Pico-W: shrink firmware region

Abierto
#11,515 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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

bug
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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de adafruit/circuitpython

Todos los issues de adafruit/circuitpython

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.