Hi,
When I try to upload a basic code to stm32f103c board with arduino ide, it works fine but when I try to upload a bit more complex code to stm device, Although the compilation is correct, the code not working and gives these messages:
- C:\Users\lenovo\Desktop\MDocuments\kduino v1.3.3\kduino>rem @echo off
-
- C:\Users\lenovo\Desktop\MDocuments\kduino v1.3.3\kduino>rem: Note C:\Users\lenovo\AppData\Local\Arduino15\packages\stm32duino\tools\stm32tools\2020.5.26\win\ get path of this batch file
-
- C:\Users\lenovo\Desktop\MDocuments\kduino v1.3.3\kduino>rem: Need to change drive if My Documents is on a drive other than C:
-
- C:\Users\lenovo\Desktop\MDocuments\kduino v1.3.3\kduino>set driverLetter=C:\Users\lenovo\AppData\Local\Arduino15\packages\stm32duino\tools\stm32tools\2020.5.26\win\
-
- C:\Users\lenovo\Desktop\MDocuments\kduino v1.3.3\kduino>set driverLetter=C:
-
- C:\Users\lenovo\Desktop\MDocuments\kduino v1.3.3\kduino>C:
-
- C:\Users\lenovo\Desktop\MDocuments\kduino v1.3.3\kduino>cd C:\Users\lenovo\AppData\Local\Arduino15\packages\stm32duino\tools\stm32tools\2020.5.26\win\
-
- C:\Users\lenovo\AppData\Local\Arduino15\packages\stm32duino\tools\stm32tools\2020.5.26\win>rem: the two line below are needed to fix path issues with incorrect slashes before the bin file name
-
- C:\Users\lenovo\AppData\Local\Arduino15\packages\stm32duino\tools\stm32tools\2020.5.26\win>set str=C:\Users\lenovo\AppData\Local\Temp\arduino_build_300747/kduino.ino.bin
-
- C:\Users\lenovo\AppData\Local\Arduino15\packages\stm32duino\tools\stm32tools\2020.5.26\win>set str=C:\Users\lenovo\AppData\Local\Temp\arduino_build_300747\kduino.ino.bin
-
- C:\Users\lenovo\AppData\Local\Arduino15\packages\stm32duino\tools\stm32tools\2020.5.26\win>rem: ------------- use STLINK CLI
-
- C:\Users\lenovo\AppData\Local\Arduino15\packages\stm32duino\tools\stm32tools\2020.5.26\win>stlink\ST-LINK_CLI.exe -c SWD -P C:\Users\lenovo\AppData\Local\Temp\arduino_build_300747\kduino.ino.bin 0x8000000 -Rst -Run -NoPrompt
- STM32 ST-LINK CLI v3.3.0.0
- STM32 ST-LINK Command Line Interface
-
- ST-LINK SN: 2334080132124353354B4E00
- ST-LINK Firmware version: V2J35S7 (Need Update)
- Connected via SWD.
- SWD Frequency = 4000K.
- Target voltage = 3.2 V
- Connection mode: Normal
- Reset mode: Software reset
- Device ID: 0x410
- Device flash Size: 128 Kbytes
- Device family: STM32F10xx Medium-density
-
- Loading file...
- Flash Programming:
- File : C:\Users\lenovo\AppData\Local\Temp\arduino_build_300747\kduino.ino.bin
- Address : 0x08000000
- Memory programming...
- �������������������������������������������������� 0%
- 0%����������������� 35%������������������ 70%��������������� 100%
- Memory programmed in 1s and 594ms.
- Programming Complete.
-
- MCU Reset.
-
- Application started.
-
-
- C:\Users\lenovo\AppData\Local\Arduino15\packages\stm32duino\tools\stm32tools\2020.5.26\win>rem: Using the open source texane-stlink instead of the proprietary STM stlink exe
-
- C:\Users\lenovo\AppData\Local\Arduino15\packages\stm32duino\tools\stm32tools\2020.5.26\win>rem:texane-stlink\st-flash.exe write C:\Users\lenovo\AppData\Local\Temp\arduino_build_300747\kduino.ino.bin 0x8000000
What could be the problem? What I am doing wrong?
Thanks in advance
Your code was uploaded correctly (memory programming reached 100%), so check your application.
This is not a core bug.
Use www.stm32duino.com for further issues.
Hi, When I try to upload a basic code to stm32f103c board with arduino ide, it works fine but when I try to upload a bit more complex code to stm device, Although the compilation is correct, the code not working and gives these messages:
What could be the problem? What I am doing wrong? Thanks in advance