-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplatformio.ini
More file actions
76 lines (66 loc) · 2.34 KB
/
Copy pathplatformio.ini
File metadata and controls
76 lines (66 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[platformio]
default_envs = default
extra_configs = platformio.local.ini
[crossluareader]
version = 0.1.0
[base]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.37/platform-espressif32.zip
board = esp32-c3-devkitm-1
framework = arduino
monitor_speed = 115200
upload_speed = 921600
check_tool = cppcheck
check_flags = --enable=all --suppress=missingIncludeSystem --suppress=unusedFunction --suppress=unmatchedSuppression --suppress=*:*/.pio/* --inline-suppr
check_skip_packages = yes
board_upload.flash_size = 16MB
board_upload.maximum_size = 16777216
board_upload.offset_address = 0x10000
build_flags =
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
-DEINK_DISPLAY_SINGLE_BUFFER_MODE=1
-DEINK_X4_ONLY=1
-DDISABLE_FS_H_WARNING=1
-DDESTRUCTOR_CLOSES_FILE=1
; Enable UTF-8 long file names in SdFat
-DUSE_UTF8_LONG_NAMES=1
-Wno-bidi-chars
; Expat configuration: disable general entities (security + size),
; reduce context buffer for the constrained target.
; https://libexpat.github.io/doc/api/latest/#XML_GE
-DXML_GE=0
-DXML_CONTEXT_BYTES=1024
; Symbol-size auditing aid (per coding-best-practices.md §Embedded C):
; emit a linker map at .pio/build/${PIOENV}/firmware.map so
; `riscv32-esp-elf-nm --size-sort -t d` shows per-symbol bytes.
-Wl,-Map=.pio/build/${PIOENV}/firmware.map
; Per-function stack-usage report; emits .su files per .o for diagnosis.
-fstack-usage
build_unflags =
-fexceptions
; Board configuration
board_build.flash_mode = dio
board_build.flash_size = 16MB
board_build.partitions = partitions.csv
; Libraries — SDK copied into lib/open-x4-sdk, Lua vendored in lib/
lib_deps =
BatteryMonitor=symlink://lib/open-x4-sdk/libs/hardware/BatteryMonitor
InputManager=symlink://lib/open-x4-sdk/libs/hardware/InputManager
EInkDisplay=symlink://lib/open-x4-sdk/libs/display/EInkDisplay
SDCardManager=symlink://lib/open-x4-sdk/libs/hardware/SDCardManager
; Codegen: embed firmware_home.lua + boot font as C arrays before compile.
extra_scripts = pre:tools/embed_assets.py
[env:default]
extends = base
build_flags =
${base.build_flags}
-DCROSSLUA_READER_VERSION=\"${crossluareader.version}-dev\"
-DENABLE_SERIAL_LOG
-DLOG_LEVEL=2
[env:release]
extends = base
build_flags =
${base.build_flags}
-DCROSSLUA_READER_VERSION=\"${crossluareader.version}\"
-DENABLE_SERIAL_LOG
-DLOG_LEVEL=1