forked from BeyondRobotix/mavesp8266
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplatformio.ini
125 lines (105 loc) · 3.97 KB
/
platformio.ini
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#
# Project Configuration File
#
# A detailed documentation with the EXAMPLES is located here:
# http://docs.platformio.org/en/latest/projectconf.html
#
# The upload speed below (921600) has worked fine for all modules I tested. If you have upload issues,
# try reducing to 115200.
# Set mavesp version
[version]
major = 1
minor = 0
build = 0
# Generate version string (e.g "1.2.2") and flags
[version_env]
version_string = ${version.major}.${version.minor}.${version.build}
version_flags = "-DMAVESP8266_VERSION_MINOR="${version.minor} "-DMAVESP8266_VERSION_MAJOR="${version.major} "-DMAVESP8266_VERSION_BUILD="${version.build} "-DVERSION_STRING="${version_env.version_string}
# General settings
# - Set platform and framework
# - Generate revision, date and time flags
# - Run prebuild script to set firmware name
[env]
framework = arduino
build_flags = ${version_env.version_flags}
extra_scripts = pre:platformio_prebuild.py
monitor_speed = 115200
###############################################################
# Platform specific settings #
###############################################################
[env:esp32]
#4m Flash - 320k ram
platform = [email protected]
board = esp32dev
build_flags = ${env.build_flags}
monitor_filters = colorize, esp32_exception_decoder
monitor_flags = --raw
# board_build.partitions = partitions.csv
[env:esp32_d1_mini32]
#4m Flash - 320k ram
platform = [email protected]
board = wemos_d1_mini32
build_flags = ${env.build_flags}
monitor_filters = colorize, esp32_exception_decoder
monitor_flags = --raw
[env:esp12e]
#4m Flash - 80k ram
platform = [email protected]
board = esp12e
build_flags = ${env.build_flags}
#board_build.ldscript= "eagle.flash.4m1m.ld" //already define in board manifest
### ld file name pattern detail : eagle.flash.xxyy.ld where "xx" = flash size and "yy" SPIFFS allocation size
[env:esp01_1m]
#1m Flash - 80kb ram
platform = [email protected]
build_flags = ${env.build_flags}
board = esp01_1m
#board_build.ldscript = "eagle.flash.1m256.ld" //already define in board manifest
[env:esp01]
#512k Flash - 80kb ram
platform = [email protected]
build_flags = ${env.build_flags}
board = esp01
#board_build.ldscript = "eagle.flash.512k64.ld" //already define in board manifest
[env:pw_link]
#4m Flash - 80k ram
platform = [email protected]
board = esp12e
build_flags = ${env.build_flags} "-DPW_LINK=pw_link"
#board_build.ldscript= "eagle.flash.4m1m.ld" //already define in board manifest
################################################################
# !DEBUG! Platform specific settings #
################################################################
# /!\ Please don't use these targets for any vehicules/devices #
# Targets only for test by dev team or official testers. #
# With these targets, the serial debug is enabled by default, #
# degreasing the globale performance. #
################################################################
[env:esp32_Debug]
platform = [email protected]
board = esp32dev
build_flags = ${env.build_flags} "-DENABLE_DEBUG=debug"
monitor_filters = colorize, esp32_exception_decoder
monitor_flags = --raw
#TEST BOARD : Xelack
[env:esp32_d1_mini32_Debug]
platform = [email protected]
board = wemos_d1_mini32
build_flags = ${env.build_flags} "-DENABLE_DEBUG=debug"
monitor_filters = colorize, esp32_exception_decoder
monitor_flags = --raw
[env:esp12e_Debug]
platform = [email protected]
board = esp12e
build_flags = ${env.build_flags} "-DENABLE_DEBUG=debug"
#board_build.ldscript= "eagle.flash.4m1m.ld" //already define in board manifest
[env:esp01_1m_Debug]
platform = [email protected]
board = esp01_1m
build_flags = ${env.build_flags} "-DENABLE_DEBUG=debug"
#board_build.ldscript = "eagle.flash.1m256.ld" //already define in board manifest
[env:esp01_Debug]
platform = [email protected]
board = esp01
build_flags = ${env.build_flags} "-DENABLE_DEBUG=debug"
#board_build.ldscript = "eagle.flash.512k64.ld" //already define in board manifest