Skip to content

Commit dbf3a42

Browse files
committed
Update to support / match latest esp-idf
Tested against esp-idf v2.0-rc1.
1 parent 4d7687c commit dbf3a42

File tree

6 files changed

+64
-31
lines changed

6 files changed

+64
-31
lines changed

components/nofrendo-esp32/component.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#
22
# Component Makefile
33
#
4-
# This Makefile should, at the very least, just include $(SDK_PATH)/make/component.mk. By default,
5-
# this will take the sources in this directory, compile them and link them into
6-
# lib(subdirectory_name).a in the build directory. This behaviour is entirely configurable,
7-
# please read the SDK documents if you need to do this.
4+
# This Makefile can be left empty. By default, it will take the sources in the
5+
# src/ directory, compile them and link them into lib(subdirectory_name).a
6+
# in the build directory. This behaviour is entirely configurable,
7+
# please read the ESP-IDF documents if you need to do this.
88
#
99

1010
COMPONENT_DEPENDS := nofrendo

components/nofrendo-esp32/spi_lcd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ static void spi_master_init()
250250
ets_printf("lcd spi signal init\r\n");
251251
gpio_matrix_in(PIN_NUM_MISO, VSPIQ_IN_IDX,0);
252252
gpio_matrix_out(PIN_NUM_MOSI, VSPID_OUT_IDX,0,0);
253-
gpio_matrix_out(PIN_NUM_CLK, VSPICLK_OUT_MUX_IDX,0,0);
253+
gpio_matrix_out(PIN_NUM_CLK, VSPICLK_OUT_IDX,0,0);
254254
gpio_matrix_out(PIN_NUM_CS, VSPICS0_OUT_IDX,0,0);
255255
#endif
256256
ets_printf("Hspi config\r\n");

components/nofrendo/component.mk

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#
22
# Component Makefile
33
#
4-
# This Makefile should, at the very least, just include $(SDK_PATH)/make/component.mk. By default,
5-
# this will take the sources in this directory, compile them and link them into
6-
# lib(subdirectory_name).a in the build directory. This behaviour is entirely configurable,
7-
# please read the SDK documents if you need to do this.
4+
# This Makefile can be left empty. By default, it will take the sources in the
5+
# src/ directory, compile them and link them into lib(subdirectory_name).a
6+
# in the build directory. This behaviour is entirely configurable,
7+
# please read the ESP-IDF documents if you need to do this.
88
#
99

1010
COMPONENT_ADD_INCLUDEDIRS := cpu libsnss nes sndhrdw .
1111
COMPONENT_SRCDIRS := cpu libsnss nes sndhrdw mappers .
1212

13-
CFLAGS += -Wno-error=char-subscripts -Wno-error=attributes -DNOFRENDO_DEBUG
13+
CFLAGS += -Wno-error=char-subscripts -Wno-error=attributes -DNOFRENDO_DEBUG

flashrom.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22
. ${IDF_PATH}/add_path.sh
3-
esptool.py --chip esp32 --port "/dev/ttyUSB1" --baud $((230400*4)) write_flash -fs 32m 0x100000 "$1"
3+
esptool.py --chip esp32 --port "/dev/ttyUSB1" --baud $((230400*4)) write_flash -fs 4MB 0x100000 "$1"

main/component.mk

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
#
2-
# Main Makefile. This is basically the same as a component makefile.
2+
# Main component makefile.
33
#
4-
# This Makefile should, at the very least, just include $(SDK_PATH)/make/component_common.mk. By default,
5-
# this will take the sources in the src/ directory, compile them and link them into
6-
# lib(subdirectory_name).a in the build directory. This behaviour is entirely configurable,
4+
# This Makefile can be left empty. By default, it will take the sources in the
5+
# src/ directory, compile them and link them into lib(subdirectory_name).a
6+
# in the build directory. This behaviour is entirely configurable,
77
# please read the ESP-IDF documents if you need to do this.
88
#
9-
10-
include $(IDF_PATH)/make/component_common.mk

sdkconfig

Lines changed: 49 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@ CONFIG_LOG_BOOTLOADER_LEVEL_WARN=y
2121
CONFIG_LOG_BOOTLOADER_LEVEL=2
2222

2323
#
24-
# Secure boot configuration
24+
# Security features
2525
#
26-
CONFIG_SECURE_BOOTLOADER_DISABLED=y
27-
# CONFIG_SECURE_BOOTLOADER_ONE_TIME_FLASH is not set
28-
# CONFIG_SECURE_BOOTLOADER_REFLASHABLE is not set
29-
# CONFIG_SECURE_BOOTLOADER_ENABLED is not set
26+
# CONFIG_SECURE_BOOT_ENABLED is not set
27+
# CONFIG_FLASH_ENCRYPTION_ENABLED is not set
3028

3129
#
3230
# Serial flasher config
@@ -56,6 +54,23 @@ CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
5654
# CONFIG_ESPTOOLPY_FLASHSIZE_8MB is not set
5755
# CONFIG_ESPTOOLPY_FLASHSIZE_16MB is not set
5856
CONFIG_ESPTOOLPY_FLASHSIZE="4MB"
57+
CONFIG_ESPTOOLPY_FLASHSIZE_DETECT=y
58+
CONFIG_ESPTOOLPY_BEFORE_RESET=y
59+
# CONFIG_ESPTOOLPY_BEFORE_NORESET is not set
60+
# CONFIG_ESPTOOLPY_BEFORE_ESP32R0 is not set
61+
CONFIG_ESPTOOLPY_BEFORE="default_reset"
62+
CONFIG_ESPTOOLPY_AFTER_RESET=y
63+
# CONFIG_ESPTOOLPY_AFTER_NORESET is not set
64+
CONFIG_ESPTOOLPY_AFTER="hard_reset"
65+
# CONFIG_MONITOR_BAUD_9600B is not set
66+
# CONFIG_MONITOR_BAUD_57600B is not set
67+
CONFIG_MONITOR_BAUD_115200B=y
68+
# CONFIG_MONITOR_BAUD_230400B is not set
69+
# CONFIG_MONITOR_BAUD_921600B is not set
70+
# CONFIG_MONITOR_BAUD_2MB is not set
71+
# CONFIG_MONITOR_BAUD_OTHER is not set
72+
CONFIG_MONITOR_BAUD_OTHER_VAL=115200
73+
CONFIG_MONITOR_BAUD=115200
5974

6075
#
6176
# Partition Table
@@ -74,25 +89,33 @@ CONFIG_OPTIMIZATION_LEVEL_DEBUG=y
7489
#
7590
# Component config
7691
#
92+
# CONFIG_BT_ENABLED is not set
7793
CONFIG_BT_RESERVE_DRAM=0
7894

7995
#
80-
# ESP32-specific config
96+
# ESP32-specific
8197
#
8298
# CONFIG_ESP32_DEFAULT_CPU_FREQ_80 is not set
8399
# CONFIG_ESP32_DEFAULT_CPU_FREQ_160 is not set
84100
CONFIG_ESP32_DEFAULT_CPU_FREQ_240=y
85101
CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ=240
86-
# CONFIG_ESP32_ENABLE_STACK_WIFI is not set
87-
# CONFIG_ESP32_ENABLE_STACK_BT is not set
88-
CONFIG_ESP32_ENABLE_STACK_NONE=y
89102
CONFIG_MEMMAP_SMP=y
90103
# CONFIG_MEMMAP_TRACEMEM is not set
91104
CONFIG_TRACEMEM_RESERVE_DRAM=0x0
105+
# CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH is not set
106+
# CONFIG_ESP32_ENABLE_COREDUMP_TO_UART is not set
107+
CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE=y
108+
# CONFIG_ESP32_ENABLE_COREDUMP is not set
92109
CONFIG_SYSTEM_EVENT_QUEUE_SIZE=32
93110
CONFIG_SYSTEM_EVENT_TASK_STACK_SIZE=2048
94111
CONFIG_MAIN_TASK_STACK_SIZE=12240
95112
CONFIG_NEWLIB_STDOUT_ADDCR=y
113+
# CONFIG_NEWLIB_NANO_FORMAT is not set
114+
CONFIG_CONSOLE_UART_DEFAULT=y
115+
# CONFIG_CONSOLE_UART_CUSTOM is not set
116+
# CONFIG_CONSOLE_UART_NONE is not set
117+
CONFIG_CONSOLE_UART_NUM=0
118+
CONFIG_CONSOLE_UART_BAUDRATE=115200
96119
# CONFIG_ULP_COPROC_ENABLED is not set
97120
CONFIG_ULP_COPROC_RESERVE_MEM=0
98121
# CONFIG_ESP32_PANIC_PRINT_HALT is not set
@@ -107,17 +130,16 @@ CONFIG_ESP32_DEBUG_OCDAWARE=y
107130
# CONFIG_ESP32_TIME_SYSCALL_USE_FRC1 is not set
108131
CONFIG_ESP32_TIME_SYSCALL_USE_NONE=y
109132
CONFIG_ESP32_RTC_CLOCK_SOURCE_INTERNAL_RC=y
110-
# CONFIG_ESP32_PHY_AUTO_INIT is not set
111-
# CONFIG_ESP32_PHY_INIT_DATA_IN_PARTITION is not set
112-
CONFIG_ESP32_PHY_MAX_TX_POWER=20
133+
CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=0
134+
# CONFIG_WIFI_ENABLED is not set
135+
# CONFIG_ETHERNET is not set
113136

114137
#
115138
# FreeRTOS
116139
#
117140
# CONFIG_FREERTOS_UNICORE is not set
118141
CONFIG_FREERTOS_CORETIMER_0=y
119142
# CONFIG_FREERTOS_CORETIMER_1 is not set
120-
# CONFIG_FREERTOS_CORETIMER_2 is not set
121143
CONFIG_FREERTOS_HZ=1000
122144
CONFIG_FREERTOS_ASSERT_ON_UNTESTED_FUNCTION=y
123145
# CONFIG_FREERTOS_CHECK_STACKOVERFLOW_NONE is not set
@@ -152,7 +174,13 @@ CONFIG_LOG_COLORS=y
152174
CONFIG_LWIP_MAX_SOCKETS=4
153175
CONFIG_LWIP_THREAD_LOCAL_STORAGE_INDEX=0
154176
# CONFIG_LWIP_SO_REUSE is not set
177+
# CONFIG_LWIP_SO_RCVBUF is not set
155178
CONFIG_LWIP_DHCP_MAX_NTP_SERVERS=1
179+
# CONFIG_LWIP_IP_FRAG is not set
180+
# CONFIG_LWIP_IP_REASSEMBLY is not set
181+
CONFIG_TCP_MAXRTX=12
182+
CONFIG_TCP_SYNMAXRTX=6
183+
# CONFIG_LWIP_DHCP_DOES_ARP_CHECK is not set
156184

157185
#
158186
# mbedTLS
@@ -162,7 +190,14 @@ CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=16384
162190
CONFIG_MBEDTLS_HARDWARE_AES=y
163191
CONFIG_MBEDTLS_HARDWARE_MPI=y
164192
CONFIG_MBEDTLS_MPI_USE_INTERRUPT=y
165-
CONFIG_MBEDTLS_MPI_INTERRUPT_NUM=18
193+
CONFIG_MBEDTLS_HARDWARE_SHA=y
194+
195+
#
196+
# OpenSSL
197+
#
198+
# CONFIG_OPENSSL_DEBUG is not set
199+
CONFIG_OPENSSL_ASSERT_DO_NOTHING=y
200+
# CONFIG_OPENSSL_ASSERT_EXIT is not set
166201

167202
#
168203
# SPI Flash driver

0 commit comments

Comments
 (0)