-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
[Feature request] Support for ESP32-C6 #642
Comments
I wish this were possible but it is sadly not. Support for C6 and H2 is hindered by the way the Arduino core is configured when the bluetooth libs are built as bluedroid is enabled there and the new IDF version uses the same symbols now for the controller interface and conflicts when linked. The only way to support these 2 chips is either by using esp-idf and Arduino as a component (recommended) or using the Arduino lib builder to disable bluedroid and nimble, controller only config. |
Hmm, i lied... kinda. Here is a branch that compiles, no idea if it will work, probably not due to mixing of functions but give it a go and let me know. |
Thank you for development of the C6 branch !
Compilation of
Duplicate of |
That's odd, it seemed to link fine with the latest Arduino commit in platformio. |
To reproduce, please, use official Arduino CLI as follows
|
Actually I modified platformio to be able to build from the latest commit on master branch. Thanks though, I'll try that and see if I can reproduce. |
Reproduced and fixed, please do a reset --hard on the branch and try again. I'm not expecting it to work but worth a shot. Sadly I do not have one of these devices to test on. |
Thank you so much !
Sure! It enters into boot loop soon after
Will try to decode the backtrace later.... |
lol, not surprised at all. Mixing code is what's happening here. The real fix for this will be to rename A LOT of functions and hope that's enough. |
I've just pushed an update that renames all the conflicting symbols. Please do a |
A little bit different PC and SP, but the fault is of the same type
|
Thanks,that's too bad. Definitely need a backtrace to progress. I'll try to get my hands on a board to test with soon. |
My ESP32-C6 board does not have USB/JTAG (GPIO12/13) pins exposed, so capturing a backtrace with assistance of OpenOCD will be problematic for a while... I found out that ESP32-C3 build of the same sketch ( NimBLE_Client.ino ) with Arduino Core 3.0.0-alpha3 does also produce a binary that fails to boot properly.
So if you have ESP32-C3 readily available - you can try it first Use the following CLI instruction to build for C3:
|
Interesting, thanks! Looks like the queue is not initialized for these boards... I'll look into that |
@lyusupov,I just pushed a few commits to this, seems to work for me 😄 |
Thank you! Yes, it looks good to me as well, both with ESP32-C3 and ESP32-C6:
I suppose that your recent development efforts are sufficient to consider this GitHub ticket as 'complete'. If me or someone else will face up with another ESP32-C6 NimBLE issue - we should open a new ticket. |
Sounds good, thanks! Going to need to test this for some time before merging into master. |
ESP32-C6 support is available in Arduino Core ESP32 since version 3.x-alpha
An attempt to build the
NimBLE_Client.ino
sketch from NimBLE-1.4.1 'examples' area witharduino-cli
for a ESP32-C6 devkit target gives a failure:The text was updated successfully, but these errors were encountered: