Skip to content

stm32: Error during Upload: Property 'upload.tool.serial' is undefined #1444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cmaglie opened this issue Sep 10, 2021 · 8 comments · Fixed by #1629
Closed

stm32: Error during Upload: Property 'upload.tool.serial' is undefined #1444

cmaglie opened this issue Sep 10, 2021 · 8 comments · Fixed by #1629
Assignees
Labels
conclusion: resolved Issue was resolved criticality: medium Of moderate impact priority: high Resolution is a high priority topic: CLI Related to the command line interface topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@cmaglie
Copy link
Member

cmaglie commented Sep 10, 2021

Originally posted by @matthijskooijman in #1333 (comment)

I noticed a regression that I expect is caused by this PR. When using arduino-cli from git now, uploads using (our slightly customized version of) the STM32 core fail with:

Error during Upload: Property 'upload.tool.serial' is undefined

The board in question indeed does not define upload.tool.serial, but still uses the pre-pluggable syntax of defining upload.tool, which should be translated to upload.tool.default by convertUploadToolsToPluggableDiscovery(). However, this core does not define upload.tool on the board directly, but defines it in a board menu: https://github.com/stm32duino/Arduino_Core_STM32/blob/974b35690cbf4680ce5746c61c69fb20935bae2f/boards.txt#L522

To reproduce:

$ arduino-cli compile --fqbn STMicroelectronics:stm32:Nucleo_32:pnum=NUCLEO_F031K6,upload_method=serialMethod --upload --port /dev/ttyACM0 
Sketch uses 7612 bytes (23%) of program storage space. Maximum is 32768 bytes.
Global variables use 828 bytes (20%) of dynamic memory, leaving 3268 bytes for local variables. Maximum is 4096 bytes.
Error during Upload: Property 'upload.tool.serial' is undefined

I guess this is fairly easy to fix in the core, though (just define both upload.tool.default (or upload.tool.<protocol>) in addition to the legacy upload.tool, but it might be useful to fix compatibility here too. An obvious fix would be to implement the fallback when actually doing the upload, rather than when loading the boards).

@fpistm, you might find this interesting too :-)

@fpistm
Copy link
Contributor

fpistm commented Sep 10, 2021

Thanks @matthijskooijman and @cmaglie
Let me know if I need to update the core.

@rsora rsora removed the topic: CLI label Sep 16, 2021
@fstasi fstasi removed the type: bug label Sep 16, 2021
@rsora rsora added type: imperfection Perceived defect in any part of project topic: core topic: CLI Related to the command line interface labels Sep 22, 2021
@maxdignan
Copy link

maxdignan commented Oct 13, 2021

I guess this is fairly easy to fix in the core, though (just define both upload.tool.default (or upload.tool.<protocol>) in addition to the legacy upload.tool

@cmaglie @fpistm Can either of you help me figure out how to edit this? I'm struggling at finding the right files to edit. Thanks!

What is editing core? And what should I define those values as (eg: what should I set upload.tool.default to)?

@per1234
Copy link
Contributor

per1234 commented Oct 13, 2021

@maxdignan we should restrict the discussion here to the Arduino CLI code base. Please post support questions to the Arduino forum:
https://forum.arduino.cc/

I'm sure we'll be able to help you out over there.

@ubidefeo ubidefeo added the priority: medium Resolution is a medium priority label Oct 26, 2021
@per1234 per1234 added the topic: code Related to content of the project itself label Oct 26, 2021
@rsora rsora added criticality: medium Of moderate impact and removed priority: medium Resolution is a medium priority labels Nov 2, 2021
@per1234
Copy link
Contributor

per1234 commented Dec 18, 2021

The same bug affects the bootloader.tool property as well.

Real life example:
https://github.com/SpenceKonde/ATTinyCore/blob/1.5.2/avr/boards.txt#L603

$ arduino-cli burn-bootloader -b ATTinyCore:avr:attinyx5micr:burnmode=install -P usbasp
Error during Upload: Property 'bootloader.tool.default' is undefined

@ubidefeo ubidefeo added the priority: high Resolution is a high priority label Jan 5, 2022
cmaglie added a commit to cmaglie/arduino-cli that referenced this issue Jan 19, 2022
cmaglie added a commit that referenced this issue Jan 24, 2022
…it (#1629)

* Factored property composition in convertUploadToolsToPluggableDiscovery

* Auto-generated properties are cached and added after cycling on the original map

* Autogenerated upload tool properties are searched in sub-configs too

Fix #1444

* Added STMicroelectronics:stm32:Nucleo_32:pnum=NUCLEO_F031K6 to upload mock tests

* Use composed board properties to detect user fields

Some platforms may add information through the optional config part of
the FQBN (platforms menu items).
@cmaglie
Copy link
Member Author

cmaglie commented Jan 24, 2022

The fix will be released with arduino-cli >=0.21.0 (or you can try the nightly as soon as it updates)

@per1234 per1234 added the conclusion: resolved Issue was resolved label Jan 24, 2022
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Feb 10, 2022
Error during Upload: Property 'upload.tool.serial' is undefined

Issue present for arduino-cli version less than 0.21.0
See arduino/arduino-cli#1444

Signed-off-by: Frederic Pillon <[email protected]>
@cjgu00
Copy link

cjgu00 commented Jul 9, 2022

I had the similar error for SeeedStudio XIAO BLE. Are there any helps?

Using board 'xiaonRF52840' from platform in folder: C:\Users\R11117_NHRI\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\2.6.1
Using core 'arduino' from platform in folder: C:\Users\R11117_NHRI\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\2.6.1
Detecting libraries used...
"C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -c -w -g3 -nostdlib "@C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\variants\\SEEED_XIAO_NRF52840/defines.txt" "@C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\variants\\SEEED_XIAO_NRF52840/cxxflags.txt" -DARDUINO_ARCH_NRF52840 -mcpu=cortex-m4 -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -w -x c++ -E -CC -DARDUINO=10607 -DARDUINO_SEEED_XIAO_NRF52840 -DARDUINO_ARCH_NRF52 -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=1 "-IC:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\cores\\arduino" "-IC:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\variants\\SEEED_XIAO_NRF52840" "-IC:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\cores\\arduino/api/deprecated" "-IC:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\cores\\arduino/api/deprecated-avr-comp" "-iprefixC:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\cores\\arduino" "@C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\variants\\SEEED_XIAO_NRF52840/includes.txt" "C:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB\\sketch\\FadeLED_XiaoBle.ino.cpp" -o nul
Alternatives for RGBLed.h: [[email protected]]
ResolveLibrary(RGBLed.h)
  -> candidates: [[email protected]]
"C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -c -w -g3 -nostdlib "@C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\variants\\SEEED_XIAO_NRF52840/defines.txt" "@C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\variants\\SEEED_XIAO_NRF52840/cxxflags.txt" -DARDUINO_ARCH_NRF52840 -mcpu=cortex-m4 -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -w -x c++ -E -CC -DARDUINO=10607 -DARDUINO_SEEED_XIAO_NRF52840 -DARDUINO_ARCH_NRF52 -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=1 "-IC:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\cores\\arduino" "-IC:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\variants\\SEEED_XIAO_NRF52840" "-Id:\\User\\Arduino\\libraries\\RGB\\src" "-IC:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\cores\\arduino/api/deprecated" "-IC:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\cores\\arduino/api/deprecated-avr-comp" "-iprefixC:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\cores\\arduino" "@C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\variants\\SEEED_XIAO_NRF52840/includes.txt" "C:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB\\sketch\\FadeLED_XiaoBle.ino.cpp" -o nul
Using cached library dependencies for file: d:\User\Arduino\libraries\RGB\src\RGBLed.cpp
Generating function prototypes...
"C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -c -w -g3 -nostdlib "@C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\variants\\SEEED_XIAO_NRF52840/defines.txt" "@C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\variants\\SEEED_XIAO_NRF52840/cxxflags.txt" -DARDUINO_ARCH_NRF52840 -mcpu=cortex-m4 -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -w -x c++ -E -CC -DARDUINO=10607 -DARDUINO_SEEED_XIAO_NRF52840 -DARDUINO_ARCH_NRF52 -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=1 "-IC:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\cores\\arduino" "-IC:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\variants\\SEEED_XIAO_NRF52840" "-Id:\\User\\Arduino\\libraries\\RGB\\src" "-IC:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\cores\\arduino/api/deprecated" "-IC:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\cores\\arduino/api/deprecated-avr-comp" "-iprefixC:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\cores\\arduino" "@C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\variants\\SEEED_XIAO_NRF52840/includes.txt" "C:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB\\sketch\\FadeLED_XiaoBle.ino.cpp" -o "C:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\builtin\\tools\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -c -w -g3 -nostdlib "@C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\variants\\SEEED_XIAO_NRF52840/defines.txt" "@C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\variants\\SEEED_XIAO_NRF52840/cxxflags.txt" -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -DARDUINO=10607 -DARDUINO_SEEED_XIAO_NRF52840 -DARDUINO_ARCH_NRF52 -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=0 "-IC:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\cores\\arduino" "-IC:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\variants\\SEEED_XIAO_NRF52840" "-Id:\\User\\Arduino\\libraries\\RGB\\src" "-IC:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\cores\\arduino/api/deprecated" "-IC:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\cores\\arduino/api/deprecated-avr-comp" "-iprefixC:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\cores\\arduino" "@C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\variants\\SEEED_XIAO_NRF52840/includes.txt" "C:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB\\sketch\\FadeLED_XiaoBle.ino.cpp" -o "C:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB\\sketch\\FadeLED_XiaoBle.ino.cpp.o"
Compiling libraries...
Compiling library "RGB"
Using previously compiled file: C:\Users\R11117_NHRI\AppData\Local\Temp\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB\libraries\RGB\RGBLed.cpp.o
Compiling core...
Using previously compiled file: C:\Users\R11117_NHRI\AppData\Local\Temp\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB\core\variant.cpp.o
Using precompiled core: C:\Users\R11117_NHRI\AppData\Local\Temp\arduino-core-cache\core_Seeeduino_nrf52_xiaonRF52840_b4f7adda380f80f1f71d06ae092bb572.a
Linking everything together...
"C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -E -P -x c "C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\variants\\SEEED_XIAO_NRF52840/linker_script.ld" -o "C:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB/linker_script.ld"
"C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" "-LC:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB" -Wl,--gc-sections -w -Wl,--as-needed "@C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\variants\\SEEED_XIAO_NRF52840/ldflags.txt" "-TC:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB/linker_script.ld" "-Wl,-Map,C:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB/FadeLED_XiaoBle.ino.map" --specs=nosys.specs -o "C:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB/FadeLED_XiaoBle.ino.elf" "C:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB\\sketch\\FadeLED_XiaoBle.ino.cpp.o" "C:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB\\libraries\\RGB\\RGBLed.cpp.o" "C:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB\\core\\variant.cpp.o" -Wl,--whole-archive "C:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB/..\\arduino-core-cache\\core_Seeeduino_nrf52_xiaonRF52840_b4f7adda380f80f1f71d06ae092bb572.a" "C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\variants\\SEEED_XIAO_NRF52840/libs/libmbed.a" "C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\variants\\SEEED_XIAO_NRF52840/libs/libcc_310_core.a" "C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\variants\\SEEED_XIAO_NRF52840/libs/libcc_310_ext.a" "C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1\\variants\\SEEED_XIAO_NRF52840/libs/libcc_310_trng.a" -Wl,--no-whole-archive -Wl,--start-group -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys -Wl,--end-group
"C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-objcopy" -O binary "C:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB/FadeLED_XiaoBle.ino.elf" "C:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB/FadeLED_XiaoBle.ino.bin"
"C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-objcopy" -O ihex -R .eeprom "C:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB/FadeLED_XiaoBle.ino.elf" "C:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB/FadeLED_XiaoBle.ino.hex"
"C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\2.6.1/tools/adafruit-nrfutil/win32/adafruit-nrfutil.exe" dfu genpkg --dev-type 0x0052 --application "C:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB/FadeLED_XiaoBle.ino.hex" "C:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB/FadeLED_XiaoBle.ino.zip"
Zip created at C:\Users\R11117_NHRI\AppData\Local\Temp\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB/FadeLED_XiaoBle.ino.zip

Using library RGB at version 1.0.9 in folder: D:\User\Arduino\libraries\RGB 
"C:\\Users\\R11117_NHRI\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-size" -A "C:\\Users\\R11117_NHRI\\AppData\\Local\\Temp\\arduino-sketch-C50A6AEBE81FFD7200ACC4A3D2D25ACB/FadeLED_XiaoBle.ino.elf"
Sketch uses 86040 bytes (10%) of program storage space. Maximum is 811008 bytes.
Global variables use 44024 bytes (18%) of dynamic memory, leaving 193544 bytes for local variables. Maximum is 237568 bytes.
Property 'upload.tool.serial' is undefined

@per1234
Copy link
Contributor

per1234 commented Jul 9, 2022

@cjgu00 please post over on the Arduino forum. I'll help you out over there:

https://forum.arduino.cc/c/using-arduino/installation-troubleshooting/18

@cjgu00
Copy link

cjgu00 commented Jul 12, 2022

I fixed my bug by following the steps described by ptillisch,

https://forum.arduino.cc/t/arduino-2-beta-12-stlink-programmer-error/921351/6

It do work! Thanks very much to give me the hint to find information on the forum.

fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Jul 21, 2022
This reverts partially commit a4e4377.

Currently, defining a default upload tools prevents flashing
with arduino-cli as default methods is always used even if new
one is passed as fqbn parameters.

See:
stm32duino#1654
arduino/arduino-cli#1444

Signed-off-by: Frederic Pillon <[email protected]>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Jul 21, 2022
new version 1.2.1 raised an error about default upload method.
But it could not be fixed easily as Arduino seems not manage
submenu level for upload method.

See:
    stm32duino#1654
    arduino/arduino-cli#1444

Signed-off-by: Frederic Pillon <[email protected]>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Jul 21, 2022
new version 1.2.1 raised an error about default upload method.
But it could not be fixed easily as Arduino seems not manage
submenu level for upload method.

See:
    stm32duino#1654
    arduino/arduino-cli#1444

Signed-off-by: Frederic Pillon <[email protected]>
cparata pushed a commit to cparata/Arduino_Core_STM32 that referenced this issue Jan 31, 2023
This reverts partially commit a4e4377.

Currently, defining a default upload tools prevents flashing
with arduino-cli as default methods is always used even if new
one is passed as fqbn parameters.

See:
stm32duino#1654
arduino/arduino-cli#1444

Signed-off-by: Frederic Pillon <[email protected]>
cparata pushed a commit to cparata/Arduino_Core_STM32 that referenced this issue Jan 31, 2023
new version 1.2.1 raised an error about default upload method.
But it could not be fixed easily as Arduino seems not manage
submenu level for upload method.

See:
    stm32duino#1654
    arduino/arduino-cli#1444

Signed-off-by: Frederic Pillon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved criticality: medium Of moderate impact priority: high Resolution is a high priority topic: CLI Related to the command line interface topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants