Skip to content

Commit 21501ff

Browse files
committed
feature: Support StickC PLUS Board
Signed-off-by: lbuque <[email protected]>
1 parent ea6c8c9 commit 21501ff

File tree

26 files changed

+231
-151
lines changed

26 files changed

+231
-151
lines changed

m5stack/Makefile

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ BOARD ?= M5STACK_8MB
1111

1212

1313
# Board type list
14-
BOARD_TYPE_DEF := none atoms3 stamps3 cores3 atoms3u core2 stickcplus2
14+
BOARD_TYPE_DEF := none atoms3 stamps3 cores3 atoms3u core2 stickcplus2 stickcplus
1515

1616
# Select the board type to build, default is None
1717
# This value affects which folder in the "./fs/system/" directory is pack into "fs-system.bin"
@@ -66,6 +66,8 @@ endif
6666

6767
GIT_VERSION := $(shell git describe --abbrev=7 --always)
6868

69+
include ./include/files.mk
70+
6971
define pack_fw
7072
$(1) makeimg.py \
7173
$(BUILD)/sdkconfig \
@@ -129,6 +131,20 @@ nvs:
129131
@$(PYTHON) ./../tools/nvs_partition_gen.py generate partition_nvs.csv $(BUILD)/nvs.bin 0x6000
130132

131133
# Build the system and user filesystem firmware.
134+
ifeq ($(BOARD_TYPE),stickcplus)
135+
fs: build
136+
@if [ ! -d $(BUILD)/base-files ]; then \
137+
mkdir -p $(BUILD)/base-files; \
138+
fi
139+
$(call base-files/install,$(BOARD_TYPE),$(BUILD)/base-files)
140+
@$(PYTHON) \
141+
./../tools/fs_packed.py \
142+
./../tools/littlefs/prebuilt/littlefs2 \
143+
$(BOARD_TYPE) \
144+
$(BUILD)/base-files \
145+
$(BUILD)/fs-user.bin \
146+
$(BUILD)/partition_table/partition-table.bin
147+
else
132148
fs: build
133149
@$(PYTHON) \
134150
./../tools/fs_packed.py \
@@ -144,6 +160,8 @@ fs: build
144160
./fs/user \
145161
$(BUILD)/fs-user.bin \
146162
$(BUILD)/partition_table/partition-table.bin
163+
endif
164+
147165

148166

149167
# Pack the firmware into a single binary without user filesystem.

m5stack/boards/M5STACK_4MB/sdkconfig.board

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,3 @@ CONFIG_MBEDTLS_CUSTOM_MEM_ALLOC=y
66
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
77
CONFIG_ESPTOOLPY_FLASHFREQ="80m"
88
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
9-
10-
# MicroPython on ESP32, ESP IDF configuration with SPIRAM support
11-
12-
CONFIG_ESP32_SPIRAM_SUPPORT=y
13-
CONFIG_SPIRAM_CACHE_WORKAROUND=y
14-
CONFIG_SPIRAM_IGNORE_NOTFOUND=y
15-
# CONFIG_SPIRAM_USE_MEMMAP=y
16-
CONFIG_SPIRAM_USE_MALLOC=y
17-
CONFIG_SPIRAM_SPEED_80M=y
18-
# CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=8192
19-
# CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=16384
20-
CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y

m5stack/cmodules/m5unified/m5unified.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ target_include_directories(usermod_M5UNIFIED INTERFACE
2020
${CMAKE_CURRENT_LIST_DIR}
2121
)
2222

23-
# if (BOARD_TYPE STREQUAL "stickcplus2")
24-
# target_compile_definitions(usermod_M5UNIFIED INTERFACE TINY_FONT=1)
25-
# endif()
23+
if (BOARD_TYPE STREQUAL "stickcplus")
24+
target_compile_definitions(usermod_M5UNIFIED INTERFACE TINY_FONT=1)
25+
endif()
2626

2727
target_link_libraries(usermod INTERFACE usermod_M5UNIFIED)
2828

10.5 KB
Loading

m5stack/fs/system/stickcplus/bk.jpg

17 KB
Loading
16.4 KB
Loading
19.4 KB
Loading
18.9 KB
Loading
19 KB
Loading
19.4 KB
Loading

0 commit comments

Comments
 (0)