@@ -78,10 +78,10 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
78
78
79
79
# Default FQBN options if none were passed in the command line.
80
80
81
- esp32_opts=" PSRAM=enabled,PartitionScheme=huge_app"
81
+ esp32_opts=" FlashMode=dio, PSRAM=enabled,PartitionScheme=huge_app"
82
82
esp32s2_opts=" PSRAM=enabled,PartitionScheme=huge_app"
83
83
esp32s3_opts=" PSRAM=opi,USBMode=default,PartitionScheme=huge_app"
84
- esp32c3_opts=" PartitionScheme=huge_app"
84
+ esp32c3_opts=" FlashMode=dio, PartitionScheme=huge_app"
85
85
esp32c6_opts=" PartitionScheme=huge_app"
86
86
esp32h2_opts=" PartitionScheme=huge_app"
87
87
@@ -139,7 +139,7 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
139
139
echo " Skipping $sketchname for target $target "
140
140
exit 0
141
141
fi
142
-
142
+
143
143
ARDUINO_CACHE_DIR=" $HOME /.arduino/cache.tmp"
144
144
if [ -n " $ARDUINO_BUILD_DIR " ]; then
145
145
build_dir=" $ARDUINO_BUILD_DIR "
@@ -177,7 +177,7 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
177
177
--build-path " $build_dir " \
178
178
$xtra_opts " ${sketchdir} " \
179
179
> $output_file
180
-
180
+
181
181
exit_status=$?
182
182
if [ $exit_status -ne 0 ]; then
183
183
echo " " ERROR: Compilation failed with error code $exit_status " "
@@ -198,11 +198,11 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
198
198
# Extract the desired substring using sed
199
199
lib_sketch_name=$( echo " $directory_path " | sed " s|$constant_part ||" )
200
200
# append json file where key is fqbn, sketch name, sizes -> extracted values
201
- echo " {\" name\" : \" $lib_sketch_name \" ,
201
+ echo " {\" name\" : \" $lib_sketch_name \" ,
202
202
\" sizes\" : [{
203
- \" flash_bytes\" : $flash_bytes ,
204
- \" flash_percentage\" : $flash_percentage ,
205
- \" ram_bytes\" : $ram_bytes ,
203
+ \" flash_bytes\" : $flash_bytes ,
204
+ \" flash_percentage\" : $flash_percentage ,
205
+ \" ram_bytes\" : $ram_bytes ,
206
206
\" ram_percentage\" : $ram_percentage
207
207
}]
208
208
}," >> " $sizes_file "
@@ -386,7 +386,7 @@ function build_sketches(){ # build_sketches <ide_path> <user_path> <target> <pat
386
386
if [ $log_compilation ]; then
387
387
# echo board,target and start of sketches to sizes_file json
388
388
echo " { \" board\" : \" $fqbn \" ,
389
- \" target\" : \" $target \" ,
389
+ \" target\" : \" $target \" ,
390
390
\" sketches\" : [" >> " $sizes_file "
391
391
fi
392
392
0 commit comments