Skip to content

Commit 814d7f8

Browse files
Increase heapsize from 8M to 16M on desktop
1 parent ab07813 commit 814d7f8

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ Frameworks:
1919

2020
OS:
2121
- Fix lvgl_micropython UI hang when lv.event_handler() throws exception from timers or callbacks
22+
- LilyGo T-Watch S3 Plus: fix power button sporadically becoming unresponsive
2223
- LilyGo T-Watch S3 Plus: add battery charge level support
2324
- LilyGo T-Watch S3 Plus: add IMU accelerometer support so IMU app works
2425
- LilyGo T-Watch S3 Plus: enable audio input (PDM microphone) and output (I2S speaker)
2526
- LilyGo T-Watch S3 Plus: enable Real Time Clock to keep time when powered off
27+
- LilyGo T-Watch S3 Plus: power down/up display and touch screen upon power button press
2628
- Fri3d 2026: don't provide unnecessary SCLK/BCLK to CJC4334 DAC
2729

2830

29-
3031
0.9.1
3132
=====
3233

scripts/run_desktop.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ echo "$0 appname # starts the app by appname, for example: com.example.helloworl
1313

1414
#export SDL_WINDOW_FULLSCREEN=true
1515

16-
export HEAPSIZE=8M # default, same a PSRAM on many ESP32-S3 boards
16+
#export HEAPSIZE=8M # default, same a PSRAM on many ESP32-S3 boards
17+
export HEAPSIZE=16M # on desktop, a bit more is warranted (different C library etc)
1718
#export HEAPSIZE=64M # fine for fullscreen 1280x720 slides
1819

1920
os_name=$(uname -s)

tests/unittest.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ testdir="$mydir"
77
scriptdir=$(readlink -f "$mydir"/../scripts/)
88
fs="$mydir"/../internal_filesystem/
99
mpremote="$mydir"/../lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py
10+
#heapsize=8M
11+
heapsize=16M # on desktop, a bit more is warranted (different C library etc)
1012

1113
# Parse arguments
1214
ondevice=""
@@ -64,13 +66,13 @@ one_test() {
6466
# Desktop execution
6567
if [ $is_graphical -eq 1 ]; then
6668
echo "Graphical test: include main.py"
67-
"$binary" -X heapsize=8M -c "import sys ; sys.path.insert(0, 'lib') ; sys.path.append(\"$tests_abs_path\") ; import mpos ; mpos.TaskManager.disable() ; $(cat main.py)
69+
"$binary" -X heapsize=$heapsize -c "import sys ; sys.path.insert(0, 'lib') ; sys.path.append(\"$tests_abs_path\") ; import mpos ; mpos.TaskManager.disable() ; $(cat main.py)
6870
$(cat $file)
6971
result = unittest.main() ; sys.exit(0 if result.wasSuccessful() else 1) "
7072
result=$?
7173
else
7274
echo "Regular test: no boot files"
73-
"$binary" -X heapsize=8M -c "import sys ; sys.path.insert(0, 'lib') ; sys.path.append(\"$tests_abs_path\") ; import mpos ; mpos.TaskManager.disable() ; $(cat main.py)
75+
"$binary" -X heapsize=$heapsize -c "import sys ; sys.path.insert(0, 'lib') ; sys.path.append(\"$tests_abs_path\") ; import mpos ; mpos.TaskManager.disable() ; $(cat main.py)
7476
$(cat $file)
7577
result = unittest.main() ; sys.exit(0 if result.wasSuccessful() else 1) "
7678
result=$?

0 commit comments

Comments
 (0)