-
-
Notifications
You must be signed in to change notification settings - Fork 19
Enable WiFi on C33 and BLE on C33/Giga #130
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
base: arduino
Are you sure you want to change the base?
Conversation
@facchinm
|
Quick update - did a west update and managed to get it to build but then:
and
Just to let you know :) |
Tried giga with BLE lib:
and in debug looks like its doing somthing:
may look at over weekend OH tried building for C33 and just fails |
quick note: I also tried building: giga does build, but I have not tried running it yet. C33 does not build - get the same errors as shown in the failing check. |
UPDATE: seems to be failing on HCI.readLocalVersion in begin. Some debug:
first command is from HCI.begin(). from the debug monitor:
Oh did try to build a zephyr test sketch but received error:
|
@mjs513 @facchinm - Did a little more debugging on trying to get the GIGA to work. But what I have so far been able to deduce is: (It dosn't work ;) ) I have confirmed that your HCIVirtualTransportZephyrClass::begin is being called: It finds that #if DT_INST_NODE_HAS_PROP(0, bt_reg_on_gpios) is true It then gets to the if:
Which is why we get compile warning about these not being used:
You can not define CONFIG_BT_HCI_HOST in the config files: I believe this will not be defined as long as BT_HCI_RAW is defined
Not sure what to do now.... Other than leave it to those who might know what this means! |
cb8ec0f
to
9462515
Compare
Just as a quick update tried this on the PortentC33 and the scan example worked:
Sorry all my debug code is still in. UPDATE: |
Quick update/Side notes: I also verified that the C33 worked with BT on my Ubuntu machine. As part of this, I was curious if I could update the ArduinoBLE code again to fix the issues I found a while ago when First step was to get the Peripheral Explorer sketch to communicate. This Hangs and/or failswith the released code for a Ported in some of the changes into the zephyr_hci branch... It worked:
Note: I also updated the Peripheral Explorer code to print out more information, If anyone is curious, about the changes into another fork/branch: But trying to have some fun. |
Was double checking stuff and set debug(Serial). Seems like the 1dx accepts the reset command and polls correctly but anyother HCI command fails. For read version:
And it just keeps polling without receiving and data back. |
Sorry out doing some other stuff. Where I am getting confused on, is wondering if there is some glue missing somewhere. That is, where is the code that processes USART interrupts and gets the callback for data available... For example looking at the zephyr example:
And this function handles the events... I know there must be some where in the h4_cyw43xxx.c... code base |
Giga still not working, investigation in progress.
As always, refer to https://github.com/facchinm/ArduinoBLE/tree/zephyr_hci to test BLE