-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Waveshare ESP32 P4 #11345
-
I just noticed that Waveshare made a few P4 boards that look promising.
https://www.waveshare.com/esp32-p4-nano.htm?sku=29026
https://www.waveshare.com/esp32-p4-module-dev-kit.htm?sku=30560
I wonder if this could be programmed by just selecting the ESP32-P4 board?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments 11 replies
-
If they used the same pins for the C6 WiFi module, then yes. Custom pin selection will come in 3.3.0
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi,
I ordered Waveshare ESP32-P4-Module-DEV-KIT in which ESP32-P4 extends its WIFI functionality by connecting to an ESP32-C6 module via SDIO (ESP32-C6 acts as a slave for ESP32-P4 as host).
Could you please advise (or share a piece of Arduino IDE code) how to program this combo to connect to and use WiFi?
For VSCode they say to add two components to make things done (https://www.waveshare.com/wiki/ESP32-P4-Module-DEV-KIT-StartPage#WIFI_Networking_Demo):
// In a WIFI project, add the following two components through the ESP-IDF component management tool
idf.py add-dependency "espressif/esp_wifi_remote"
idf.py add-dependency "espressif/esp_hosted"
PS. I am on ver. 3.3.0-Alpha1
Beta Was this translation helpful? Give feedback.
All reactions
-
Not easy. Needs custom board definition to specify the pins used for the C6. You can have a look at the one for our P4 board
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
Not easy. Needs custom board definition to specify the pins used for the C6. You can have a look at the one for our P4 board
Do you mean this definition in ...\Arduino15\packages\esp32\hardware\esp323円.3.0-alpha1\variants\esp32p4\pins_arduino.h ?
//WIFI - ESP32C6
#define BOARD_HAS_SDIO_ESP_HOSTED
#define BOARD_SDIO_ESP_HOSTED_CLK 18
#define BOARD_SDIO_ESP_HOSTED_CMD 19
#define BOARD_SDIO_ESP_HOSTED_D0 14
#define BOARD_SDIO_ESP_HOSTED_D1 15
#define BOARD_SDIO_ESP_HOSTED_D2 16
#define BOARD_SDIO_ESP_HOSTED_D3 17
#define BOARD_SDIO_ESP_HOSTED_RESET 54
No additional libraries are needed?
Beta Was this translation helpful? Give feedback.
All reactions
-
yes, but keep in mind this will be overwritten next time you install new core
Beta Was this translation helpful? Give feedback.
All reactions
-
The waveshare p4 nano board uses the same GPIOs to connect the C6 as the espressif p4 eval board. So the p4 nano board will work with the Arduino examples without any changes.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
Ok, so I dug deeper into this board.
GPIO works, WiFi works, etc
However, I tried to use it with a DSI display and got this error:
E lcd.dsi.dpi: can't fetch data from external memory fast enough, underrun happens
The examples I used are Waveshare's.
https://www.waveshare.com/wiki/ESP32-P4-Nano-StartPage#Demo_2
I tried HelloWorld example and only changed this line to a 7" display.
#define CURRENT_SCREEN SCREEN_7_DSI_TOUCH_A
The display I use is:
https://www.aliexpress.com/item/1005008005536155.html
The display works great with RPi.
I have set PSRAM and Flash for this board. What else?
Beta Was this translation helpful? Give feedback.
All reactions
-
will be fixed in 3.3.1. In a mean time you can drop to 3.2.1
Beta Was this translation helpful? Give feedback.
All reactions
-
Now, I don't get an error, but I have nothing on the screen.
Could it be the driver problem?
This is the only change I have made:
#ifndef CURRENT_SCREEN
#define CURRENT_SCREEN SCREEN_7_DSI_TOUCH_A
#endif
Could it be I need to set a thing or two in addition?
Beta Was this translation helpful? Give feedback.
All reactions
-
Tried other examples.
GFX_ESPWiFiAnalzyer returns this:
Arduino_GFX Hello World example
sdio_mempool_create free:34099496 min-free:34099068 lfb-def:33030132 lfb-8bit:33030132
But nothing on the screen.
AsciiTable example uploads, but again, nothing on the screen.
Beta Was this translation helpful? Give feedback.