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

Building Custom shield error -CMake Error: Invalid SHIELD; #2830

Open
Jogrefer opened this issue Feb 21, 2025 · 1 comment
Open

Building Custom shield error -CMake Error: Invalid SHIELD; #2830

Jogrefer opened this issue Feb 21, 2025 · 1 comment

Comments

@Jogrefer
Copy link

Jogrefer commented Feb 21, 2025

> My repo < | Build Error

--

I tried tutorials and read documentation using Github Actions and I haven't could build the firmware.
I'm doing a handwired from scratch prototype, following tutorials it seems like the physical step is not important at all becuse it's not complicated.

I don't know if I am doing something wrong 🤷🏽‍♂️ What should I do?

@caksoylar
Copy link
Contributor

caksoylar commented Feb 21, 2025

Please make sure to follow the documentation (and only the documentation, not LLM-generated code etc.) at https://zmk.dev/docs/development/new-shield carefully.

There are many issues here, so I think it would be better to start from scratch rather than trying to patch it. This is what I saw so far:

  • Your repo isn't set up from the template as instructed, as a module, and boards/shields/jogrefer shouldn't be under config/
  • Kconfig.defconfig and Kconfig.shield should be capitalized exactly like this
  • You should only have west.yml, jogrefer.keymap and jogrefer.conf under config/
  • These are not how you specify GPIO pins
  • You shouldn't have a space after comma
  • I'd also suggest you start with a minimal keymap that works, then add things -- it currently has many issues

Feel free to stop by ZMK Discord if you need more help.

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

No branches or pull requests

2 participants