Skip to content

Commit

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

See merge request espressif/esp-idf!29599
  • Loading branch information
rahult-github committed Mar 13, 2024
2 parents 4e57c2b + bbd4266 commit a253028
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 a253028

Please sign in to comment.