Skip to content

Commit 5c0a8d7

Browse files
authored
Add files via upload
Signed-off-by: Thomas Favennec <48832470+favnec5@users.noreply.github.com>
1 parent 0ad56f9 commit 5c0a8d7

File tree

5 files changed

+154
-1
lines changed

5 files changed

+154
-1
lines changed
Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,24 @@
1-
1+
{
2+
"deploy": [
3+
"../deploy.md"
4+
],
5+
"deploy_options": {
6+
"flash_offset": "0x1000"
7+
},
8+
"docs": "",
9+
"features": [
10+
"BLE",
11+
"External Flash",
12+
"WiFi"
13+
],
14+
"images": [
15+
""
16+
],
17+
"mcu": "esp32p4",
18+
"product": "Expressif ESP32P4",
19+
"thumbnail": "",
20+
"url": "https://www.espressif.com/en/products/modules",
21+
"variants": {
22+
},
23+
"vendor": "Espressif"
24+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
The following files are firmware that should work on most ESP32-based boards
2+
with 4MiB of flash, including WROOM WROVER, SOLO, PICO, and MINI modules.
3+
4+
This board has multiple variants available:
5+
6+
* If your board is based on a WROVER module, or otherwise has SPIRAM (also known
7+
as PSRAM) then it's recommended to use the "spiram" variant. Look for heading
8+
**Support for SPIRAM / WROVER)**.
9+
* If your board has a ESP32-D2WD chip (with only 2MiB flash) then use the "d2wd"
10+
variant. Look for heading **ESP32 D2WD**.
11+
* If your board has a single-core ESP32 (e.g. the "SOLO" modules) then choose
12+
the "unicore" variant. Look for heading **ESP32 Unicore**.
13+
* If you'd like to perform Over-the-Air updates of the MicroPython firmware,
14+
then choose the "ota" variant. This variant has less room in the flash for
15+
Python files as a result of supporting OTA. Look for heading **Support for
16+
OTA**.
17+
18+
Otherwise, download the generic variant (under the first heading below).
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
set(IDF_TARGET esp32p4)
2+
3+
set(SDKCONFIG_DEFAULTS
4+
boards/sdkconfig.base
5+
boards/ESP32_GENERIC_P4/sdkconfig.board
6+
)
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// Both of these can be set by mpconfigboard.cmake if a BOARD_VARIANT is
2+
// specified.
3+
4+
#ifndef MICROPY_HW_BOARD_NAME
5+
#define MICROPY_HW_BOARD_NAME "Generic ESP32P4 module"
6+
#endif
7+
8+
#ifndef MICROPY_HW_MCU_NAME
9+
#define MICROPY_HW_MCU_NAME "ESP32P4"
10+
#endif
11+
12+
13+
// not fixed in mpy 1.26.0
14+
#define MICROPY_PY_MACHINE_DAC (0)
15+
16+
#define MICROPY_HW_ENABLE_USB_RUNTIME_DEVICE (0)
17+
#define MICROPY_HW_ENABLE_USBDEV (0)
18+
19+
#define MICROPY_PY_ESPNOW (0)
20+
21+
#define MICROPY_PY_MACHINE_ADC (0)
22+
#define MICROPY_PY_MACHINE_ADC_ATTEN_WIDTH (0)
23+
#define MICROPY_PY_MACHINE_ADC_INIT (0)
24+
#define MICROPY_PY_MACHINE_ADC_READ (0)
25+
#define MICROPY_PY_MACHINE_ADC_READ_UV (0)
26+
#define MICROPY_PY_MACHINE_ADC_BLOCK (0)
27+
28+
29+
30+
#ifndef USB_SERIAL_JTAG_PACKET_SZ_BYTES
31+
#define USB_SERIAL_JTAG_PACKET_SZ_BYTES (64)
32+
#endif
33+
34+
// Enable UART REPL for modules that have an external USB-UART and don't use native USB.
35+
#define MICROPY_HW_ENABLE_UART_REPL (1)
36+
37+
#define MICROPY_PY_MACHINE_I2S (1)
38+
39+
/*
40+
#define MICROPY_HW_I2C0_SCL (32)
41+
#define MICROPY_HW_I2C0_SDA (31)
42+
43+
#define MICROPY_HW_SPI1_MOSI (44)
44+
#define MICROPY_HW_SPI1_MISO (39)
45+
#define MICROPY_HW_SPI1_SCK (43)
46+
*/
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
2+
# Flash
3+
CONFIG_FLASHMODE_QIO=y
4+
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
5+
CONFIG_ESPTOOLPY_FLASHMODE="qio"
6+
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
7+
CONFIG_ESPTOOLPY_AFTER_NORESET=y
8+
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=
9+
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=
10+
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
11+
CONFIG_PARTITION_TABLE_CUSTOM=y
12+
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-16MiB.csv"
13+
14+
# Memory
15+
CONFIG_SPIRAM=y
16+
CONFIG_IDF_EXPERIMENTAL_FEATURES=y
17+
CONFIG_SPIRAM_MODE_HEX=y
18+
CONFIG_SPIRAM_SPEED_200M=y
19+
CONFIG_SPIRAM_MEMTEST=
20+
CONFIG_SPIRAM_IGNORE_NOTFOUND=y
21+
CONFIG_MBEDTLS_DEFAULT_MEM_ALLOC=y
22+
CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=50768
23+
24+
25+
# ULP : not fixed
26+
CONFIG_SOC_ULP_SUPPORTED=n
27+
CONFIG_ULP_COPROC_ENABLED=n
28+
CONFIG_ULP_COPROC_TYPE_FSM=n
29+
30+
# Touchpad : not fixed
31+
CONFIG_SOC_TOUCH_SENSOR_SUPPORTED=n
32+
SOC_TOUCH_SENSOR_SUPPORTED=n
33+
CONFIG_SOC_TOUCH_SENSOR_SUPPORTED=n
34+
35+
36+
# Wifi
37+
#CONFIG_ESP_HOSTED_ENABLED=n
38+
CONFIG_ESP_HOST_WIFI_ENABLED=y
39+
40+
41+
# Ble
42+
CONFIG_BT_NIMBLE_LOG_LEVEL_ERROR=y
43+
CONFIG_BT_ENABLED=y
44+
CONFIG_BT_NIMBLE_ENABLED=y
45+
CONFIG_BT_CONTROLLER_ENABLED=y
46+
47+
CONFIG_BT_NIMBLE_SVC_GAP_DEVICE_NAME="MPY ESP32"
48+
CONFIG_BT_NIMBLE_MAX_CONNECTIONS=4
49+
50+
# Put NimBLE on core 1, and for synchronisation
51+
# with the ringbuffer and scheduler MP needs to be on the same core.
52+
# MP on core 1 prevents interference with WiFi for time sensitive operations.
53+
# Only on: ESP32, ESP32S2, ESP32S3
54+
#CONFIG_BT_NIMBLE_PINNED_TO_CORE_0=n
55+
#CONFIG_BT_NIMBLE_PINNED_TO_CORE_1=y
56+
#CONFIG_BT_NIMBLE_PINNED_TO_CORE=1
57+
58+
# Increase NimBLE task stack size from the default, because Python code
59+
# (BLE IRQ handlers) will most likely run on this task.
60+
CONFIG_BT_NIMBLE_TASK_STACK_SIZE=6144

0 commit comments

Comments
 (0)