Skip to content

Commit e06d24c

Browse files
committed
Merge branch 'release/v3.3.1'
2 parents 29df649 + 4e7719e commit e06d24c

File tree

4 files changed

+9
-14
lines changed

4 files changed

+9
-14
lines changed

builder/frameworks/espidf.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ def is_cmake_reconfigure_required(cmake_api_reply_dir):
109109
os.path.join(PROJECT_SRC_DIR, "CMakeLists.txt"),
110110
]
111111
cmake_preconf_dir = os.path.join(BUILD_DIR, "config")
112+
deafult_sdk_config = os.path.join(PROJECT_DIR, "sdkconfig.defaults")
112113

113114
for d in (cmake_api_reply_dir, cmake_preconf_dir):
114115
if not os.path.isdir(d) or not os.listdir(d):
@@ -117,10 +118,14 @@ def is_cmake_reconfigure_required(cmake_api_reply_dir):
117118
return True
118119
if not os.path.isfile(os.path.join(BUILD_DIR, "build.ninja")):
119120
return True
120-
if os.path.isfile(SDKCONFIG_PATH) and os.path.getmtime(
121+
if not os.path.isfile(SDKCONFIG_PATH) or os.path.getmtime(
121122
SDKCONFIG_PATH
122123
) > os.path.getmtime(cmake_cache_file):
123124
return True
125+
if os.path.isfile(deafult_sdk_config) and os.path.getmtime(
126+
deafult_sdk_config
127+
) > os.path.getmtime(cmake_cache_file):
128+
return True
124129
if any(
125130
os.path.getmtime(f) > os.path.getmtime(cmake_cache_file)
126131
for f in cmake_txt_files + [cmake_preconf_dir, FRAMEWORK_DIR]

builder/main.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,6 @@ def _get_board_f_flash(env):
3131
return str(int(int(frequency) / 1000000)) + "m"
3232

3333

34-
def _get_board_flash_mode(env):
35-
mode = env.subst("$BOARD_FLASH_MODE")
36-
if mode == "qio":
37-
return "dio"
38-
elif mode == "qout":
39-
return "dout"
40-
return mode
41-
42-
4334
def _parse_size(value):
4435
if isinstance(value, int):
4536
return value
@@ -139,7 +130,6 @@ def __fetch_spiffs_size(target, source, env):
139130

140131
env.Replace(
141132
__get_board_f_flash=_get_board_f_flash,
142-
__get_board_flash_mode=_get_board_flash_mode,
143133

144134
AR="%s-elf-ar" % toolchain_arch,
145135
AS="%s-elf-as" % toolchain_arch,
@@ -312,7 +302,7 @@ def __fetch_spiffs_size(target, source, env):
312302
"--before", "default_reset",
313303
"--after", "hard_reset",
314304
"write_flash", "-z",
315-
"--flash_mode", "${__get_board_flash_mode(__env__)}",
305+
"--flash_mode", "$BOARD_FLASH_MODE",
316306
"--flash_freq", "${__get_board_f_flash(__env__)}",
317307
"--flash_size", "detect"
318308
],

monitor/filter_exception_decoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Esp32ExceptionDecoder(DeviceMonitorFilter):
3232
def __call__(self):
3333
self.buffer = ""
3434
self.backtrace_re = re.compile(
35-
r"^Backtrace: ?((0x[0-9a-f]+:0x[0-9a-f]+ ?)+)\s*"
35+
r"^Backtrace: ?((0x[0-9a-fA-F]+:0x[0-9a-fA-F]+ ?)+)\s*"
3636
)
3737

3838
self.firmware_path = None

platform.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"type": "git",
1919
"url": "https://github.com/platformio/platform-espressif32.git"
2020
},
21-
"version": "3.3.0",
21+
"version": "3.3.1",
2222
"frameworks": {
2323
"arduino": {
2424
"package": "framework-arduinoespressif32",

0 commit comments

Comments
 (0)