Skip to content

Commit 7a5f73f

Browse files
authored
Add esp32-eth-clk-out0[-spiram]. (#21)
1 parent 0baa025 commit 7a5f73f

File tree

5 files changed

+77
-3
lines changed

5 files changed

+77
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ It is built for maximum compatibility.
2828

2929
This variant supports Ethernet, but without the clock output.
3030

31-
### esp32-eth-clk-out17
31+
### esp32-eth-clk-out0 and esp32-eth-clk-out17
3232

33-
A variant for ESP32 boards with Ethernet and a clock output on pin 17.
33+
A variant for ESP32 boards with Ethernet and a clock output on pin 0/17.
3434

35-
Olimex boards with Ethernet should use this variant.
35+
Olimex boards with Ethernet should use this variant. The WROOM versions need
36+
`esp32-eth-clk-out17` and the WROVER versions need `esp32-eth-clk-out0`.
3637

3738
### esp32c3
3839

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ESP32-ETH-CLK-OUT17-SPIRAM
2+
3+
A variant of the ESP32 envelope that supports ethernet. The ESP32
4+
outputs the PHY's clock on pin 0. This variant furthermore enables
5+
SPIRAM.
6+
7+
Since Bluetooth and SPIRAM support use some memory, the Toit interpreter
8+
doesn't fit into the SPIRAM anymore. As such, Toit programs may run
9+
slower on this variant.
10+
11+
This firmware also increases the partition sizes to 0x1c0000 bytes.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright (C) 2023 Toitware ApS.
2+
#
3+
# Use of this source code is governed by a BSD0-style license that can be
4+
# found in the LICENSE_BSD0 file.
5+
6+
# Partition Table for Toit.
7+
8+
# Name, Type, SubType, Offset, Size
9+
# bootloader,, , 0x001000, 0x007000
10+
# partitions,, , 0x008000, 0x000c00
11+
secure, 0x42, 0x00, 0x009000, 0x004000,
12+
otadata, data, ota, 0x00d000, 0x002000,
13+
phy_init, data, phy, 0x00f000, 0x001000,
14+
ota_0, app, ota_0, 0x010000, 0x1c0000,
15+
ota_1, app, ota_1, 0x1d0000, 0x1c0000,
16+
nvs, data, nvs, 0x390000, 0x010000,
17+
programs, 0x40, 0x00, 0x3A0000, 0x060000, encrypted
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
--- toolchains/esp32/sdkconfig.defaults 2023-09-07 17:14:30.952105304 +0200
2+
+++ toolchains/esp32-eth-clk-out0-spiram/sdkconfig.defaults 2023-09-07 17:20:30.187515185 +0200
3+
@@ -31,12 +31,17 @@
4+
# CONFIG_SPI_SLAVE_ISR_IN_IRAM is not set
5+
CONFIG_UART_ISR_IN_IRAM=y
6+
# CONFIG_ESP_ERR_TO_NAME_LOOKUP is not set
7+
+CONFIG_ETH_RMII_CLK_OUTPUT=y
8+
+CONFIG_ETH_RMII_CLK_OUTPUT_GPIO0=y
9+
CONFIG_ETH_SPI_ETHERNET_DM9051=y
10+
CONFIG_ETH_SPI_ETHERNET_W5500=y
11+
# CONFIG_ESP_HTTP_CLIENT_ENABLE_HTTPS is not set
12+
CONFIG_ESP_SLEEP_GPIO_RESET_WORKAROUND=y
13+
CONFIG_XTAL_FREQ_AUTO=y
14+
# CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE is not set
15+
+CONFIG_SPIRAM=y
16+
+CONFIG_SPIRAM_IGNORE_NOTFOUND=y
17+
+CONFIG_SPIRAM_USE_CAPS_ALLOC=y
18+
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y
19+
# CONFIG_ESP_INT_WDT is not set
20+
# CONFIG_ESP_TASK_WDT_EN is not set
21+
@@ -45,7 +49,6 @@
22+
CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=16
23+
# CONFIG_ESP32_WIFI_NVS_ENABLED is not set
24+
CONFIG_ESP32_WIFI_TASK_PINNED_TO_CORE_1=y
25+
-# CONFIG_ESP32_WIFI_IRAM_OPT is not set
26+
CONFIG_FATFS_LFN_HEAP=y
27+
CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS=3
28+
CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=1024
29+
@@ -77,4 +80,5 @@
30+
CONFIG_SPI_FLASH_LOG_FAILED_WRITE=y
31+
CONFIG_SPI_FLASH_WARN_SETTING_ZERO_TO_ONE=y
32+
# CONFIG_WS_TRANSPORT is not set
33+
+# CONFIG_TOIT_INTERPRETER_IN_IRAM is not set
34+
# CONFIG_TOIT_INTERPRETER_HELPERS_IN_IRAM is not set
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- toolchains/esp32/sdkconfig.defaults 2023-09-07 15:57:43.119413430 +0200
2+
+++ toolchains/esp32-eth-clk-out0/sdkconfig.defaults 2023-09-11 17:21:39.069585368 +0200
3+
@@ -31,6 +31,8 @@
4+
# CONFIG_SPI_SLAVE_ISR_IN_IRAM is not set
5+
CONFIG_UART_ISR_IN_IRAM=y
6+
# CONFIG_ESP_ERR_TO_NAME_LOOKUP is not set
7+
+CONFIG_ETH_RMII_CLK_OUTPUT=y
8+
+CONFIG_ETH_RMII_CLK_OUTPUT_GPIO0=y
9+
CONFIG_ETH_SPI_ETHERNET_DM9051=y
10+
CONFIG_ETH_SPI_ETHERNET_W5500=y
11+
# CONFIG_ESP_HTTP_CLIENT_ENABLE_HTTPS is not set

0 commit comments

Comments
 (0)