-
Notifications
You must be signed in to change notification settings - Fork 9
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
cargo embassy init
generates invalid project if chip name is incorrect
#14
Comments
This is because your chip identifier includes the package type at the end, Would be nice if cargo embassy had some kind of warning about this instead of silently failing... |
cargo embassy init <projectname>
for stm32 missing stm32 dependencycargo embassy init
generates invalid project if chip name is incorrect
Updated the title to reflect the actual issue. Also tested without the Is there a logical place we could check for this? I would be interested in trying to fix this. |
Any help would be much appreciated! What I believe is happening is the chip identifier is parsed and passed to embassy as a feature here, which of course is not a valid feature so the I guess the simplest option would be to report when these subroutines fail, and the cherry on top would be to add a convenience message explaining that the reason it failed was because of the invalid feature. |
That seems like a good place to start, I'll open a PR when possible. |
After running
cargo embassy init <project_name> --chip STM32H563ZITx
, the generated project doesn't contain theembassy_stm32
dependency with the chip passed from command line as as a feature, so it fails to compile.Tested using
cargo-embassy v0.2.1
installed withcargo install
.The text was updated successfully, but these errors were encountered: