File tree 10 files changed +63
-22
lines changed
espressif_esp32p4_function_ev
solderparty_esp32p4_stamp_xl
10 files changed +63
-22
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ INC += \
95
95
-isystem esp-idf/components/esp_hw_support/dma/include \
96
96
-isystem esp-idf/components/esp_hw_support/include \
97
97
-isystem esp-idf/components/esp_hw_support/include/soc \
98
+ -isystem esp-idf/components/esp_mm/include \
98
99
-isystem esp-idf/components/esp_netif/include \
99
100
-isystem esp-idf/components/esp_partition/include \
100
101
-isystem esp-idf/components/esp_pm/include \
@@ -412,7 +413,9 @@ SRC_C += peripherals/touch.c
412
413
endif
413
414
414
415
ifneq ($(CIRCUITPY_USB_DEVICE ) ,0)
415
- SRC_C += lib/tinyusb/src/portable/espressif/esp32sx/dcd_esp32sx.c
416
+ SRC_C += \
417
+ lib/tinyusb/src/portable/synopsys/dwc2/dcd_dwc2.c \
418
+ lib/tinyusb/src/portable/synopsys/dwc2/dwc2_common.c
416
419
endif
417
420
418
421
ifneq ($(CIRCUITPY_AUDIOBUSIO ) ,0)
Original file line number Diff line number Diff line change 15
15
16
16
#define DEFAULT_UART_BUS_RX (&pin_GPIO38)
17
17
#define DEFAULT_UART_BUS_TX (&pin_GPIO37)
18
-
19
- #define CIRCUITPY_CONSOLE_UART_TX DEFAULT_UART_BUS_TX
20
- #define CIRCUITPY_CONSOLE_UART_RX DEFAULT_UART_BUS_RX
Original file line number Diff line number Diff line change 1
- # USB_VID = 0x303A
2
- # USB_PID = 0x7003
3
- # USB_PRODUCT = "ESP32-P4-Function-EV"
4
- # USB_MANUFACTURER = "Espressif"
1
+ USB_VID = 0x303A
2
+ USB_PID = 0x7013
3
+ USB_PRODUCT = "ESP32-P4-Function-EV"
4
+ USB_MANUFACTURER = "Espressif"
5
5
6
6
IDF_TARGET = esp32p4
7
7
8
8
CIRCUITPY_ESP_FLASH_SIZE = 16MB
9
- CIRCUITPY_ESP_FLASH_MODE = opi
9
+ CIRCUITPY_ESP_FLASH_MODE = qio
10
10
CIRCUITPY_ESP_FLASH_FREQ = 80m
11
11
12
12
CIRCUITPY_ESP_PSRAM_SIZE = 32MB
13
- CIRCUITPY_ESP_PSRAM_MODE = opi
14
- CIRCUITPY_ESP_PSRAM_FREQ = 80m
13
+ CIRCUITPY_ESP_PSRAM_MODE = hpi
14
+ CIRCUITPY_ESP_PSRAM_FREQ = 200m
Original file line number Diff line number Diff line change 1
- # USB_VID = 0x303A
2
- # USB_PID = 0x7003
3
- # USB_PRODUCT = "ESP32-P4 Stamp XL"
4
- # USB_MANUFACTURER = "Solder Party"
1
+ USB_VID = 0x1209
2
+ USB_PID = 0x0001
3
+ USB_PRODUCT = "ESP32-P4 Stamp XL"
4
+ USB_MANUFACTURER = "Solder Party"
5
5
6
6
IDF_TARGET = esp32p4
7
7
8
8
CIRCUITPY_ESP_FLASH_SIZE = 16MB
9
- CIRCUITPY_ESP_FLASH_MODE = opi
9
+ CIRCUITPY_ESP_FLASH_MODE = qio
10
10
CIRCUITPY_ESP_FLASH_FREQ = 80m
11
11
12
12
CIRCUITPY_ESP_PSRAM_SIZE = 32MB
13
- CIRCUITPY_ESP_PSRAM_MODE = opi
14
- CIRCUITPY_ESP_PSRAM_FREQ = 80m
13
+ CIRCUITPY_ESP_PSRAM_MODE = hpi
14
+ CIRCUITPY_ESP_PSRAM_FREQ = 200m
Original file line number Diff line number Diff line change
1
+ #
2
+ # Espressif IoT Development Framework Configuration
3
+ #
4
+ #
5
+ # Component config
6
+ #
7
+ #
8
+ # Bluetooth
9
+ #
10
+ # CONFIG_BT_ENABLED is not set
11
+ # end of Bluetooth
12
+
13
+ #
14
+ # mbedTLS
15
+ #
16
+ # CONFIG_MBEDTLS_CMAC_C is not set
17
+ # end of mbedTLS
18
+
19
+ # end of Component config
20
+
21
+ # end of Espressif IoT Development Framework Configuration
Original file line number Diff line number Diff line change 17
17
18
18
#define CIRCUITPY_DIGITALIO_HAVE_INPUT_ONLY (1)
19
19
20
+ #define CIRCUITPY_USB_DEVICE_INSTANCE 1
21
+
20
22
#include "py/circuitpy_mpconfig.h"
21
23
22
24
#define MICROPY_NLR_SETJMP (1)
Original file line number Diff line number Diff line change @@ -196,9 +196,14 @@ CIRCUITPY_SSL = 0
196
196
CIRCUITPY_TOUCHIO = 1
197
197
CIRCUITPY_TOUCHIO_USE_NATIVE = 0
198
198
199
- # TinyUSB doesn't have it upstreamed
200
- # https://github.com/hathach/tinyusb/issues/2791
201
- CIRCUITPY_USB_DEVICE = 0
199
+ # Second stage bootloader doesn't work when the factory partition is empty due to
200
+ # UF2 missing.
201
+ UF2_BOOTLOADER = 0
202
+ USB_HIGHSPEED = 1
203
+ CIRCUITPY_USB_HID = 0
204
+ CIRCUITPY_USB_MIDI = 0
205
+ CIRCUITPY_TUSB_MEM_ALIGN = 64
206
+
202
207
CIRCUITPY_MAX3421E = 0
203
208
204
209
# Update this for the 40mhz processor.
Original file line number Diff line number Diff line change @@ -94,7 +94,14 @@ void init_usb_hardware(void) {
94
94
// Configure USB PHY
95
95
usb_phy_config_t phy_conf = {
96
96
.controller = USB_PHY_CTRL_OTG ,
97
+ .target = USB_PHY_TARGET_INT ,
98
+
97
99
.otg_mode = USB_OTG_MODE_DEVICE ,
100
+ #ifdef CONFIG_IDF_TARGET_ESP32P4
101
+ .otg_speed = USB_PHY_SPEED_HIGH ,
102
+ #else
103
+ .otg_speed = USB_PHY_SPEED_FULL ,
104
+ #endif
98
105
};
99
106
usb_new_phy (& phy_conf , & phy_hdl );
100
107
Original file line number Diff line number Diff line change @@ -89,6 +89,12 @@ extern "C" {
89
89
#endif
90
90
#endif
91
91
92
+ // Use DMA with the USB peripheral.
93
+ #ifdef CONFIG_IDF_TARGET_ESP32P4
94
+ #define CFG_TUD_DWC2_DMA_ENABLE (1)
95
+ #define CFG_TUH_DWC2_DMA_ENABLE (1)
96
+ #endif
97
+
92
98
// Vendor name included in Inquiry response, max 8 bytes
93
99
#define CFG_TUD_MSC_VENDOR USB_MANUFACTURER_8
94
100
You can’t perform that action at this time.
0 commit comments