Skip to content

Commit

Permalink
Merge branch 'feature/add_doc_for_p4_v5.1' into 'release/v5.1'
Browse files Browse the repository at this point in the history
docs(nimble): Added gpio configuration table for esp32p4 (v5.1)

See merge request espressif/esp-idf!29600
  • Loading branch information
rahult-github committed Mar 13, 2024
2 parents b884b37 + d610543 commit 0c26579
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,26 @@ This example uses esp32 chip to run the example `bleprph_host_only` that runs th

![Hardware Setup](hardware_setup.png)

Note that the esp32 gpio pins tx=4 and rx=5 are configurable using idf.py menuconfig -> example config -> Uart Configuration. The tx pin of one chip connectes to the rx pin of the other and vice versa.
Note that the esp32 gpio pins tx=4 and rx=5 are configurable using idf.py menuconfig -> example config -> Uart Configuration. The tx pin of one chip connects to the rx pin of the other and vice versa.

Below is the pin connection chart for Esp32 and esp32c6.
The gpio pins for hci example are configurable through idf.py menuconfig -> Component config -> Bluetooth -> Controller Options -> HCI Config

Below is the pin connection chart for Esp32(Running host) and esp32c6(Running controller).

| Esp32 (Signal) | Esp32 (GPIO Pin) | C6 (Signal) | C6 (GPIO Pin) |
|----------------|-------------------|-------------|---------------|
| Rx | 5 | Tx | 5 |
| Tx | 4 | Rx | 12 |

The same pin configuration could be used for esp32c3, esp32s3, esp32c2 and esp32c6.
For esp32p4 use the following configuration.

| P4 (Signal) | P4 (GPIO Pin) | C6 (Signal) | C6 (GPIO Pin) |
|----------------|-------------------|-------------|---------------|
| Rx | 22 | Tx | 5 |
| Tx | 21 | Rx | 12 |


```c
#define UART_TX_PIN (4)
#define UART_RX_PIN (5)
Expand Down

0 comments on commit 0c26579

Please sign in to comment.