Skip to content

Commit 54e85fe

Browse files
AwesomeCronkdpgeorge
authored andcommitted
esp32/boards/GENERIC_UNICORE: Add board definition for unicore chips.
Tested to work on an ESP32-MINI-1, which is a single core ESP32-U4DWH. Signed-off-by: Clayton Cronk <[email protected]>
1 parent 32a858e commit 54e85fe

File tree

6 files changed

+31
-1
lines changed

6 files changed

+31
-1
lines changed

Diff for: ports/esp32/boards/GENERIC_UNICORE/board.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"deploy": [
3+
"../deploy.md"
4+
],
5+
"docs": "",
6+
"features": [
7+
"BLE",
8+
"WiFi"
9+
],
10+
"id": "esp32-unicore",
11+
"images": [
12+
"generic_unicore.jpg"
13+
],
14+
"mcu": "esp32",
15+
"product": "ESP32 Unicore",
16+
"thumbnail": "",
17+
"url": "https://www.espressif.com/en/products/modules",
18+
"vendor": "Espressif"
19+
}

Diff for: ports/esp32/boards/GENERIC_UNICORE/board.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The following files are daily firmware for single-core ESP32-based boards without external SPIRAM.
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
set(SDKCONFIG_DEFAULTS
2+
boards/sdkconfig.base
3+
boards/sdkconfig.ble
4+
boards/GENERIC_UNICORE/sdkconfig.board
5+
)

Diff for: ports/esp32/boards/GENERIC_UNICORE/mpconfigboard.h

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#define MICROPY_HW_BOARD_NAME "ESP32 Unicore module"
2+
#define MICROPY_HW_MCU_NAME "ESP32-UNICORE"

Diff for: ports/esp32/boards/GENERIC_UNICORE/sdkconfig.board

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_FREERTOS_UNICORE=y

Diff for: ports/esp32/mphalport.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@
4444
// and avoid the Wifi/BLE timing problems on the same core.
4545
// Best effort here to remain backwards compatible in rare version edge cases...
4646
// See https://github.com/micropython/micropython/issues/5489 for history
47-
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 2, 0)
47+
#if CONFIG_FREERTOS_UNICORE
48+
#define MP_TASK_COREID (0)
49+
#elif ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 2, 0)
4850
#define MP_TASK_COREID (1)
4951
#else
5052
#define MP_TASK_COREID (0)

0 commit comments

Comments
 (0)