diff --git a/bin/firmware32c3v1.bin b/bin/firmware32c3v1.bin new file mode 100644 index 0000000..3a48773 Binary files /dev/null and b/bin/firmware32c3v1.bin differ diff --git a/platformio.ini b/platformio.ini index a0825ad..ab11c20 100644 --- a/platformio.ini +++ b/platformio.ini @@ -40,7 +40,7 @@ build_flags = -DUSER_SSID=\""\"" # =\""myssid\"" -DUSER_SSID_PWD=\""\"" # =\""mypwd\"" -DCFG_APPVER="\"1.2.0\"" - -DCFG_GITREV=\""beta-2\"" + -DCFG_GITREV=\""beta-3\"" #!python script/git_rev.py lib_deps = # Using local copy of these libraries @@ -143,6 +143,39 @@ platform = ${common_env_data.platform32} upload_speed = ${common_env_data.upload_speed} monitor_speed = ${common_env_data.monitor_speed} extra_scripts = ${common_env_data.extra_scripts} +build_unflags = + ${common_env_data.build_unflags} +build_flags = + -Wl,-Map,output.map + ${common_env_data.build_flags} + -DLOG_LEVEL=5 + -DCORE_DEBUG_LEVEL=0 + -DESP32C3 + -DARDUINO_ESP32C3_DEV + #-DUSE_SERIAL_PINS # Use the TX/RX pins for the serial port +lib_deps = + ${common_env_data.lib_deps} + ${common_env_data.lib_deps32} +lib_ignore = +board = lolin_c3_mini +build_type = release +board_build.partitions = part32.csv +board_build.filesystem = littlefs +board_build.embed_txtfiles = + html/calibration.min.htm + html/config.min.htm + html/firmware.min.htm + html/format.min.htm + html/about.min.htm + html/index.min.htm + html/test.min.htm + +[env:gravity32c3v1-release] +framework = ${common_env_data.framework} +platform = ${common_env_data.platform32} +upload_speed = ${common_env_data.upload_speed} +monitor_speed = ${common_env_data.monitor_speed} +extra_scripts = ${common_env_data.extra_scripts} build_unflags = ${common_env_data.build_unflags} build_flags = diff --git a/script/copy_firmware.py b/script/copy_firmware.py index 63a43d4..717fef8 100644 --- a/script/copy_firmware.py +++ b/script/copy_firmware.py @@ -45,6 +45,12 @@ def after_build(source, target, env): print( "Copy file : " + source + " -> " + target ) shutil.copyfile( source, target ) + if name == "gravity32c3v1-release" : + target = dir + "/bin/firmware32c3v1.bin" + source = dir + "/.pio/build/" + name + "/firmware.bin" + print( "Copy file : " + source + " -> " + target ) + shutil.copyfile( source, target ) + if name == "gravity32s2-release" : target = dir + "/bin/firmware32s2.bin" source = dir + "/.pio/build/" + name + "/firmware.bin"