-
Notifications
You must be signed in to change notification settings - Fork 169
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
Build bleprph_host_only_vhci project? #555
Comments
@csalinasonline Thank you for reporting this.
To resolve this, follow these steps:
Save the configuration. It should now build as expected. There have been changes to the Wi-Fi Remote component that caused the problem you saw. I will update the documentation to reflect this. |
@SohKamYung-Espressif Thanks for the tip. I am now able to successfully build and run the project. Is this still sufficient to have a working C6 and P4 using esp-hosted bleprph_host_only_vhci? Please advise? Please see attached "idf_flash_monitor.txt" debug output and the attached images. |
Specific idf menuconfig settings on P4 and C6 For idf.py menuconfig on C6 via copy of "espressif/esp_hosted:slave" via https://github.com/espressif/esp-hosted/blob/feature/esp_as_mcu_host/docs/esp32_p4_function_ev_board.md (5.2 Using ESP-Prog). For idf.py menuconfig on P4 via https://github.com/espressif/esp-hosted/tree/feature/esp_as_mcu_host/examples/bleprph_host_only_vhci |
@csalinasonline Something does not look right. You should see The device name is set in rc = ble_svc_gap_device_name_set("nimble-bleprph"); In #555 (comment) :
Could you try again, but check out esp-hosted into a empty directory, not into esp-idf/example ? The esp-hosted NimBLE example does not depend on being put inside the esp-idf directory.
I also did checked out the ESP32-C6 using the ESP-Prog steps and it is still correct. The ESP32-C6 configuration should just work as it is as a co-processor for the P4, without any changes, after doing For your reference, here are my generated sdkconfig files for the C6 and P4 in a zip folder. |
@csalinasonline I did a grep of the esp-idf code and the name you see appears in two places: > grep -rn --exclude-dir=".git" --include="*.[ch]" "ESP BLE HID2"
examples/bluetooth/esp_hid_device/main/esp_hid_device_main.c:394: .device_name = "ESP BLE HID2",
examples/bluetooth/esp_hid_host/main/esp_hid_gap.c:855: ((adv_name_len > 0 && memcmp("ESP BLE HID2", adv_name, adv_name_len) == 0) || I think the code you are trying to build may not be the correct one. As I suggest above, check out esp-hosted into an empty directory and build the esp-hosted ble example from there. |
@SohKamYung-Espressif Thanks for the quick update. I will apply your updates and let you know. |
Checklist
How often does this bug occurs?
always
Expected behavior
Trying to build and run esp-hosted -> example -> bleprph_host_only_vhci
On HW ESP32-P4 and using the Bluetooth Controller of the ESP32C6 on the ESP32-P4-Function-EV-Board.
Actual behavior (suspected bug)
Cannot Build and Flash project: bleprph_host_only_vhci.
Error logs or terminal output
Steps to reproduce the behavior
Trying to build and run esp-hosted -> example -> bleprph_host_only_vhci
On ubuntu 18, esp-idf 5.4:
Project release version
https://github.com/espressif/esp-hosted/tree/feature/esp_as_mcu_host
System architecture
other (details in Additional context)
Operating system
Linux
Operating system version
Ubuntu 18
Shell
Bash
Additional context
No response
The text was updated successfully, but these errors were encountered: