Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Esp32-C3 - SVD 2024 #180

Closed
wants to merge 1 commit into from
Closed

Conversation

kassane
Copy link
Contributor

@kassane kassane commented Feb 28, 2024

@kassane kassane changed the title Espc3 svd 2024 Esp32-C3 - SVD 2024 Feb 28, 2024
@kassane
Copy link
Contributor Author

kassane commented Feb 28, 2024

CI error:
https://github.com/ZigEmbeddedGroup/microzig/actions/runs/8086188892/job/22095381000?pr=180#step:7:87

src/blinky.zig:63:14: error: no field named 'FUNC_OUT_SEL_CFG' in struct 'chip.types.peripherals.GPIO'

@ikskuh
Copy link
Contributor

ikskuh commented Feb 29, 2024

CI error: https://github.com/ZigEmbeddedGroup/microzig/actions/runs/8086188892/job/22095381000?pr=180#step:7:87

src/blinky.zig:63:14: error: no field named 'FUNC_OUT_SEL_CFG' in struct 'chip.types.peripherals.GPIO'

Looks like you should also fix the example then to compile with the new SVD file, seems like they changed the structure of the registers

@kassane
Copy link
Contributor Author

kassane commented Mar 1, 2024

Making the GPIO device regz auto-generated by build is very complicated. It changes with each version.
It might be useful to run tests between the files generated with a base interface to find out the effects.

It is not possible to do this PR at the moment. I will have to modify the espressif SVD or just add some extra code to microzig and refactor the example that is available.

@ikskuh
Copy link
Contributor

ikskuh commented Mar 2, 2024

I mean you can just refactor the example, it's still just the hack i did a long time ago

@kassane kassane closed this Mar 2, 2024
@kassane kassane deleted the espc3_svd-2024 branch April 26, 2024 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants