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

Add Xcc flags that fixes crash on ESP32-C3. #20

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

cheif
Copy link

@cheif cheif commented Jul 10, 2024

This fixes #15, making the smart-light example run on ESP32-C3.

I'm don't have enough knowledge to know if this is the proper fix/correct location to add these flags, but it makes the example work for me at least.

This fixes apple#15, making the `smart-light` example run on ESP32-C3.

I'm don't have enough knowledge to know if this is the proper
fix/correct location to add these flags, but it makes the example work
for me at least.
Copy link
Collaborator

@rauhul rauhul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @cheif, firstly thank you for the PR. I think we would like to take a slightly different approach to supporting the C3, please take a look at this recent PR to embedded examples for reference: apple/swift-embedded-examples@ab9a24c

@cheif
Copy link
Author

cheif commented Jul 12, 2024

Thanks for the feedback @rauhul! I've now update the PR to use a similar pattern as in the linked PR.

Unfortunately I don't have access to any other ESP32 devices than the ESP32-C3, so I can't really test with other chips, but I've verified that it works on my ESP32-C3 at least.

@iDevPro
Copy link

iDevPro commented Jul 26, 2024

Try this pull request with gh pr checkout 20 and all good with ESP32-C3 (M5 Stamp C3)

@rauhul
Copy link
Collaborator

rauhul commented Aug 6, 2024

I was out sick for the last couple weeks 😬, this diff looks good to me, @kubamracek can you also confirm before we merge this?

@kubamracek
Copy link
Collaborator

LGTM. Do we also have a confirmation that the result actually works fully on a C3, and that it can connect to HomeKit and the smart light can be controlled? If yes, I would we would also want to update the README(s) to state that.

@cheif
Copy link
Author

cheif commented Aug 13, 2024

@kubamracek I've managed to get the smart-light example running on a ESP32C3, and verified that it can pair with/be controlled by HomeKit 😄

README:s are now updated to mention the ESP32C3

@cheif
Copy link
Author

cheif commented Aug 29, 2024

@rauhul @kubamracek Any chance of merging this soon? 😄

Copy link
Collaborator

@rauhul rauhul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for such a delayed response. A couple things to resolve and we can merge this!

README.md Outdated
@@ -37,7 +37,8 @@ Before running the examples, ensure you have the following tools available:

- Hardware:
- [ESP32-C6-DevKitC-1-N8](https://docs.espressif.com/projects/espressif-esp-dev-kits/en/latest/esp32c6/esp32-c6-devkitc-1/user_guide.html)
- Software
- The `smart-light` example is also tested using [Wemos C3 mini](https://www.wemos.cc/en/latest/c3/c3_mini.html)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want to promise support for this board because Kuba and I have no way of verifying this.

README.md Outdated
@@ -64,12 +65,17 @@ Ensure your shell has access to the tools listed above, see [Get started on macO
$ idf.py set-target esp32c6
```

3. Build and deploy the application to your device.
or (if using ESP32C3)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of a new "```shell" block can we note this in the text "Configure the build system for your microcontroller"?

I'd also like to see this reflected the the tutorial content as well

@cheif
Copy link
Author

cheif commented Oct 16, 2024

@rauhul I've updated the readme:s now.

I'd also love for ESP32-C3 to be part of the tutorial, but unfortunately I don't have a good grasp on how to update it (nor the time to learn), so I'll have to leave that to someone else to update.

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.

swift_retain error when running smart-light on ESP32-C3
4 participants