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

regz: Missing `PORT` in generated chip file for ATSAMD21G18A

Abierto
#914 2 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
18/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
xml

Línea de trabajo

The missing PORT instance comes from regz's ATDF parser: the ATSAMD21G18A.atdf input triggers error.TodoInstanceWithMultipleRegisterGroups at the 'modes' elements around lines 4972-4979, which the warnings report as unhandled. Start by finding where that error is raised in the regz source and how it handles an instance with several register groups. Done means PORT appears in the generated peripherals list at 0x41004400 without the TODO error. The issue has no assignee, no linked pull request, and no recent answer, so the fix needs a maintainer decision first.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

regz

I'm working on creating a HAL for an ATSAMD21G18A in a fork and thought I'd start with GPIOs, working towards a blinky example. However I don't see a PORT periph instance generated.

Excerpt from "Table 12-1. Peripherals Configuration Summary" in the datasheet:

Periph Name Base Address
...
NVMCTRL 0x41004000
PORT 0x41004400
DMAC 0x41004800
...

Input to regz (added .txt for GitHub): ATSAMD21G18A.atdf.txt

Output: regz_ATSAMD21G18A_zig.tar.gz

Excerpt from generated ATSAMD21G18A.zig:

pub const peripherals = struct {
    // ...
    pub const NVMCTRL: *volatile types.peripherals.NVMCTRL = @ptrFromInt(0x41004000);
    /// Direct Memory Access Controller
    pub const DMAC: *volatile types.peripherals.DMAC.DMAC = @ptrFromInt(0x41004800);
    // ...
};

Actually, I just ran regz manually and noticed it is complaining:

warning(atdf): line 4972: the 'modes' isn't usually found in the 'register-group' element, this could mean unhandled ATDF behaviour or your input is malformed
warning(atdf): line 4973: the 'modes' isn't usually found in the 'register-group' element, this could mean unhandled ATDF behaviour or your input is malformed
warning(atdf): line 4978: the 'modes' isn't usually found in the 'register-group' element, this could mean unhandled ATDF behaviour or your input is malformed
warning(atdf): line 4979: the 'modes' isn't usually found in the 'register-group' element, this could mean unhandled ATDF behaviour or your input is malformed
warning(atdf): failed to instantiate module: error.TodoInstanceWithMultipleRegisterGroups
warning(atdf): failed to instantiate module: error.TodoInstanceWithMultipleRegisterGroups

I don't see an issue talking about this TODO item, so I'll still submit this.

Lenguaje dominante
Zig
Estrellas
2.3k
Forks
198
Merge medio
1 d 8 h
PR fusionados (30 d)
37

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 ZigEmbeddedGroup/microzig

Todos los issues de ZigEmbeddedGroup/microzig

Issues similares

Más issues de DevTools

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.