-
-
Notifications
You must be signed in to change notification settings - Fork 114
Closed
Labels
conclusion: invalidIssue/PR not validIssue/PR not validtopic: codeRelated to content of the project itselfRelated to content of the project itselftype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project
Description
Hi,
I am building an esp32 project within the Arduino IDE on Windows for ESP32.
I am using the exact same command line parameters that the Arduino IDE puts into "arduino-builder.exe" manually in a batch script. However the outcome of the compiled binary is different.
This is the command line generated by Arudino IDE:
"C:\Program Files (x86)\Arduino\arduino-builder"
-compile
-logger=machine
-hardware "C:\Program Files (x86)\Arduino\hardware"
-hardware C:\Users\USERNAME\AppData\Local\Arduino15\packages
-tools "C:\Program Files (x86)\Arduino\tools-builder"
-tools "C:\Program Files (x86)\Arduino\hardware\tools\avr"
-tools C:\Users\USERNAME\AppData\Local\Arduino15\packages
-built-in-libraries "C:\Program Files (x86)\Arduino\libraries"
-libraries D:\!cvsroot\Arduino\libraries
-fqbn=esp32:esp32:esp32:PSRAM=enabled,PartitionScheme=min_spiffs,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,DebugLevel=none
-vid-pid=10C4_EA60
-ide-version=10813
-build-path C:\Users\AL8775~1.ADI\AppData\Local\Temp\arduino_build_512285
-warnings=none
-build-cache C:\Users\AL8775~1.ADI\AppData\Local\Temp\arduino_cache_713031
-prefs=build.warn_data_percentage=75
-prefs=runtime.tools.mkspiffs.path=C:\Users\USERNAME\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3
-prefs=runtime.tools.mkspiffs-0.2.3.path=C:\Users\USERNAME\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3
-prefs=runtime.tools.xtensa-esp32-elf-gcc.path=C:\Users\USERNAME\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0
-prefs=runtime.tools.xtensa-esp32-elf-gcc-1.22.0-80-g6c4433a-5.2.0.path=C:\Users\USERNAME\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0
-prefs=runtime.tools.esptool_py.path=C:\Users\USERNAME\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\2.6.1
-prefs=runtime.tools.esptool_py-2.6.1.path=C:\Users\USERNAME\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\2.6.1
-verbose C:\project\Controller.ino
This is the command line used in my batch script
C:\Program Files (x86)\Arduino\arduino-builder.exe
-compile
-logger=machine
-hardware "C:\Program Files (x86)\Arduino\hardware"
-hardware "C:\Users\USERNAME\AppData\Local\Arduino15\packages"
-tools "C:\Program Files (x86)\Arduino\tools-builder"
-tools "C:\Program Files (x86)\Arduino\hardware\tools\avr"
-tools "C:\Users\USERNAME\AppData\Local\Arduino15\packages"
-built-in-libraries "C:\Program Files (x86)\Arduino\libraries"
-libraries "D:\!cvsroot\Arduino\libraries"
-fqbn=esp32:esp32:esp32:PSRAM=enabled,PartitionScheme=min_spiffs,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,DebugLevel=none
-vid-pid=10C4_EA60
-ide-version=10813
-build-path "C:\temp\_build\m5camx"
-warnings=none
-build-cache "C:\temp\_cache\m5camx"
-prefs=build.warn_data_percentage=75
-prefs=runtime.tools.mkspiffs.path=C:\Users\USERNAME\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3
-prefs=runtime.tools.mkspiffs-0.2.3.path=C:\Users\USERNAME\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3
-prefs=runtime.tools.xtensa-esp32-elf-gcc.path=C:\Users\USERNAME\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0
-prefs=runtime.tools.xtensa-esp32-elf-gcc-1.22.0-80-g6c4433a-5.2.0.path=C:\Users\USERNAME\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0
-prefs=runtime.tools.esptool_py.path=C:\Users\USERNAME\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\2.6.1
-prefs=runtime.tools.esptool_py-2.6.1.path=C:\Users\USERNAME\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\2.6.1
-verbose "C:\project\Controller.ino"
However the result is different, when I compile it using my batch script, important preprocessor variables are missing which results in a build missing PSRAM support for example.
And I don't understand why this is not working, I am using the exact same command line parameters as Arduino IDE is using.
Yet the result is that the
Metadata
Metadata
Assignees
Labels
conclusion: invalidIssue/PR not validIssue/PR not validtopic: codeRelated to content of the project itselfRelated to content of the project itselftype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project