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

Running embassy_hello_world example stand-alone #1781

Closed
lure23 opened this issue Jul 10, 2024 · 3 comments
Closed

Running embassy_hello_world example stand-alone #1781

lure23 opened this issue Jul 10, 2024 · 3 comments
Labels
documentation Improvements or additions to documentation examples There is a problem with one or more of the examples

Comments

@lure23
Copy link
Contributor

lure23 commented Jul 10, 2024

I noticed that currently (10-Jul-24) the Embassy examples cannot be reproduced outside of the cargo xtask setup. This is down to the publication of the latest code to crates.io.

This boils down to one of two routes:

  • If targeting a (single) known chip, see here
  • If wanting to target 2 or more chips, see ESP32-Embassy sample - a small repo I made to document the current state and steps I took.

The aim is to:

  • be able to work on cargo only (using xtask internally for esp-hal is fine of course!)
  • be able to pull reasonably working 😉 versions from crates.io - no file paths needed for dependencies

I am confident this will happen in its due course. In the interim, decided to leave an issue so that:

  • others will easily see "what's up"
  • there's a place to follow this from the point of outside usage - not merely from within esp-hal
@lure23 lure23 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 10, 2024
@lure23 lure23 reopened this Jul 10, 2024
@jessebraham
Copy link
Member

Thank you for opening this issue. We are aware that this currently quite difficult, sorry that you have been having problems. We're planning on publishing a new round of packages next week, and following that our next release cycle will be focused on improving usability. I will be sure to mention this issue during our team's planning meeting next week.

In the meantime, while this is not a true solution, I have made a template for using esp-hal with embassy, which you can find here:
https://github.com/jessebraham/esp-hal-template

It's still quite basic, but at least should generate the boilerplate needed to build an Embassy application without relying on our xtask package. If you have any problems or additional requests, please feel free to open one or more issues on that repository. I threw this together pretty quick yesterday, so there may be some minor issues; I plan to expand on it a bit this weekend.

@jessebraham jessebraham added documentation Improvements or additions to documentation examples There is a problem with one or more of the examples labels Jul 11, 2024
@lure23
Copy link
Contributor Author

lure23 commented Jul 12, 2024

No worries! The repo you linked to was helpful in seeing which dependencies are really needed.

Glad to be on this ride! Nice to know momentum is there.

@lure23
Copy link
Contributor Author

lure23 commented Jul 17, 2024

Looks fine now, with esp-hal 0.19.0 et.al.

@lure23 lure23 closed this as completed Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation examples There is a problem with one or more of the examples
Projects
Archived in project
Development

No branches or pull requests

2 participants