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 2 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.

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