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

No Serial Output over JTAG when using nimble/blehr (IDFGH-6436) #8096

Closed
HarryWindsor opened this issue Dec 16, 2021 · 2 comments
Closed

No Serial Output over JTAG when using nimble/blehr (IDFGH-6436) #8096

HarryWindsor opened this issue Dec 16, 2021 · 2 comments
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@HarryWindsor
Copy link

HarryWindsor commented Dec 16, 2021

Environment

  • Development Kit: ESP32-C3-DevKitM-1
  • Module or chip used: ESP32-C3-MINI-1
  • IDF version (run git describe --tags to find it):
    // v4.4-dev-3703-gddc44956bf
  • Build System: idf.py
  • Compiler version (run xtensa-esp32-elf-gcc --version to find it):
    // xtensa-esp32-elf-gcc (crosstool-NG esp-2021r2) 8.4.0
  • Operating System: macOS
  • Using an IDE?: No
  • Power Supply: USB

Problem Description

I am only able to see serial prints (via ESP_LOGx) when not using Bluetooth.
I have my USB-Cable connected as described in https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/api-guides/usb-serial-jtag-console.html#hardware-requirements I can see all the outputs when running get-started/hello_world, but with nimble/blehr I do not gen any serial output via the JTAG.
Both times I do see output via the cable connected via microusb.

Expected Behavior

See ESP_LOGx output when Bluetooth is enabled.

Actual Behavior

No ESP_LOGx output when Bluetooth is enabled.

Steps to reproduce

  1. cp -r esp-idf/examples/get-started/hello_world .
  2. idf.py set-target esp32c3 & idf.py -p /dev/cu.usbserial-14120 flash monitor
  3. screen /dev/cu.usbmodem14601 115200 (output is shown via JTAG and microUSB)
  4. cp -r esp-idf/examples/bluetooth/nimble/blehr .
  5. idf.py set-target esp32c3 & idf.py -p /dev/cu.usbserial-14120 flash monitor
  6. screen /dev/cu.usbmodem14601 115200 (no outpout is shown via JTA, only via microUSB)

How do I enable serial output over JTAG when Bluetooth is enabled?
The last message I can capture is phy_init, after that, I do not get any more output.

I (215) cpu_start: Pro cpu start user code
W (2339) BTDM_INIT: esp_bt_controller_mem_release not implemented, return OK
I (2340) BTDM_INIT: BT controller compile version [3e61eea]
I (2342) coexist: coexist rom version 9387209
I (2347) phy_init: phy_version 906,ed5370c,Nov  8 2021,18:01:10
@espressif-bot espressif-bot added the Status: Opened Issue is new label Dec 16, 2021
@github-actions github-actions bot changed the title No Serial Output over JTAG when using nimble/blehr No Serial Output over JTAG when using nimble/blehr (IDFGH-6436) Dec 16, 2021
@mythbuster5
Copy link
Collaborator

Sorry, a little question, do you switch on the config named ESP_CONSOLE_USB_SERIAL_JTAG rather than just ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG ?

@HarryWindsor
Copy link
Author

Thank you, this worked for me. I did not know I had to enable ESP_CONSOLE_USB_SERIAL_JTAG when using Bluetooth.

When using menuconfig the setting is in Component config > ESP System Settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

3 participants