Skip to content

Commit dddd3cc

Browse files
committed
Merge remote-tracking branch 'origin/develop' into develop-pandian
2 parents 89f5fdd + 9b5fd25 commit dddd3cc

File tree

150 files changed

+6277
-150
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+6277
-150
lines changed

.github/workflows/nightly-build.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
contents: read
1010

1111
jobs:
12-
build_atoms3:
12+
build:
1313
runs-on: ubuntu-20.04
1414
steps:
1515
- uses: actions/[email protected]
@@ -61,4 +61,19 @@ jobs:
6161
uses: actions/upload-artifact@v3
6262
with:
6363
name: M5STACK_Fire_firmware
64-
path: ./m5stack/build-M5STACK_Fire/uiflow-*.bin
64+
path: ./m5stack/build-M5STACK_Fire/uiflow-*.bin
65+
- name: Deliver Basic firmware
66+
uses: actions/upload-artifact@v3
67+
with:
68+
name: M5STACK_Basic_firmware
69+
path: ./m5stack/build-M5STACK_Basic/uiflow-*.bin
70+
- name: Deliver Basic(4MB Flash) firmware
71+
uses: actions/upload-artifact@v3
72+
with:
73+
name: M5STACK_Basic_4MB_Flash_firmware
74+
path: ./m5stack/build-M5STACK_Basic_4MB/uiflow-*.bin
75+
- name: Deliver Capsule firmware
76+
uses: actions/upload-artifact@v3
77+
with:
78+
name: M5STACK_Capsule_firmware
79+
path: ./m5stack/build-M5STACK_Capsule/uiflow-*.bin

README.md

Lines changed: 4 additions & 0 deletions

m5stack/Makefile

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,37 @@
1010
BOARD ?= M5STACK_8MB
1111

1212
boards := \
13-
M5STACK_AtomS3:atoms3 \
14-
M5STACK_AtomS3_Lite:atoms3-lite \
15-
M5STACK_StampS3:stamps3 \
16-
M5STACK_CoreS3:cores3 \
17-
M5STACK_AtomS3U:atoms3u \
18-
M5STACK_Core2:core2 \
13+
M5STACK_AtomS3:atoms3 \
14+
M5STACK_AtomS3_Lite:atoms3-lite \
15+
M5STACK_StampS3:stamps3 \
16+
M5STACK_CoreS3:cores3 \
17+
M5STACK_AtomS3U:atoms3u \
18+
M5STACK_Core2:core2 \
1919
M5STACK_StickC_PLUS2:stickcplus2 \
20-
M5STACK_StickC_PLUS:stickcplus \
21-
M5STACK_Fire:fire
20+
M5STACK_StickC_PLUS:stickcplus \
21+
M5STACK_Fire:fire \
22+
M5STACK_Basic:basic \
23+
M5STACK_Basic_4MB:basic \
24+
M5STACK_Capsule:capsule
2225

2326
define find_board
24-
$(if $(filter $(1):%,$(boards)),$(word 2,$(subst :, ,$(filter $(1):%,$(boards)))),$(error Mapping not found for $(1)))
27+
$(if $(filter $(1):%,$(boards)),$(word 2,$(subst :, ,$(filter $(1):%,$(boards)))),none)
2528
endef
2629

2730
# Board type list
28-
BOARD_TYPE_DEF := none atoms3 atoms3-lite stamps3 cores3 atoms3u core2 stickcplus2 stickcplus fire
31+
BOARD_TYPE_DEF := \
32+
none \
33+
atoms3 \
34+
atoms3-lite \
35+
stamps3 \
36+
cores3 \
37+
atoms3u \
38+
core2 \
39+
stickcplus2 \
40+
stickcplus \
41+
fire \
42+
basic \
43+
capsule
2944

3045
# Select the board type to build, default is None
3146
# This value affects which folder in the "./fs/system/" directory is pack into "fs-system.bin"
@@ -37,6 +52,13 @@ else
3752
$(error Board type $(BOARD_TYPE) does not exist in list [$(BOARD_TYPE_DEF)])
3853
endif
3954

55+
TINY_BOARD_TYPE_DEF = M5STACK_StickC_PLUS M5STACK_Basic_4MB
56+
ifneq ($(filter $(BOARD),$(TINY_BOARD_TYPE_DEF)),)
57+
TINY_FLAG ?= 1
58+
else
59+
TINY_FLAG ?= 0
60+
endif
61+
4062
# esp32c3's bootloader is different with esp32
4163
ifeq (C3, $(findstring C3,${BOARD}))
4264
CHIP ?= esp32c3
@@ -145,7 +167,7 @@ nvs:
145167
@$(PYTHON) ./../tools/nvs_partition_gen.py generate partition_nvs.csv $(BUILD)/nvs.bin 0x6000
146168

147169
# Build the system and user filesystem firmware.
148-
ifeq ($(BOARD_TYPE),stickcplus)
170+
ifeq ($(TINY_FLAG),1)
149171
fs: build
150172
@if [ ! -d $(BUILD)/base-files ]; then \
151173
mkdir -p $(BUILD)/base-files; \
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include("$(MPY_DIR)/../m5stack/modules/startup/manifest_atoms3.py")
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include("$(MPY_DIR)/../m5stack/modules/startup/manifest_atoms3u.py")
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include("$(MPY_DIR)/../m5stack/modules/startup/manifest_atoms3lite.py")
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include("$(MPY_DIR)/../m5stack/modules/startup/manifest_basic.py")
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
set(SDKCONFIG_DEFAULTS
2+
./boards/sdkconfig.base
3+
./boards/sdkconfig.flash_16mb
4+
./boards/sdkconfig.ble
5+
./boards/sdkconfig.240mhz
6+
./boards/sdkconfig.disable_iram
7+
./boards/M5STACK_Basic/sdkconfig.board
8+
)
9+
10+
# If not enable LVGL, ignore this...
11+
set(LV_CFLAGS -DLV_COLOR_DEPTH=16 -DLV_COLOR_16_SWAP=0)
12+
13+
if(NOT MICROPY_FROZEN_MANIFEST)
14+
set(MICROPY_FROZEN_MANIFEST ${CMAKE_SOURCE_DIR}/boards/manifest.py)
15+
endif()
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#define MICROPY_HW_BOARD_NAME "M5STACK"
2+
#define MICROPY_HW_MCU_NAME "ESP32"
3+
4+
// If not enable LVGL, ignore this...
5+
#include "./../mpconfiglvgl.h"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SSL
2+
CONFIG_MBEDTLS_INTERNAL_MEM_ALLOC=n
3+
CONFIG_MBEDTLS_CUSTOM_MEM_ALLOC=y
4+
5+
# Flash
6+
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
7+
CONFIG_ESPTOOLPY_FLASHFREQ="80m"
8+
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y

0 commit comments

Comments
 (0)