[SOLVED] STM32 in Sublime 3 & multiple libs

Working libraries, libraries being ported and related hardware
Pararera
Posts: 16
Joined: Fri Oct 05, 2018 3:55 pm

Re: STM32 in Sublime 3 & multiple libs

Post by Pararera » Sat Oct 06, 2018 10:22 am

Installed package from your link and now I get three errors for Wire lib

Code: Select all

Multiple libraries were found for "Wire.h"
 Used: C:\Users\silvi\Documents\Arduino\libraries\Wire
 Not used: C:\Users\silvi\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\libraries\WireSlave
 Not used: C:\Users\silvi\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\libraries\Wire
exit status 1
Error compiling for board Generic STM32F103C series.
Oops, that's warning. Real error is this

Code: Select all

C:\Users\silvi\Documents\Arduino\libraries\Adafruit_SH1106-master\Adafruit_SH1106.cpp:31:25: fatal error: util/delay.h: No such file or directory

Pararera
Posts: 16
Joined: Fri Oct 05, 2018 3:55 pm

Re: STM32 in Sublime 3 & multiple libs

Post by Pararera » Sat Oct 06, 2018 1:51 pm

Fixed. Now it Works in ArduinoIDE and I can compile within Sublime but at the end I get error

Code: Select all

arm-none-eabi-g++: error: {archive_file_path}: No such file or directory
Last command is

Code: Select all

[ 98%] Creating C:\Users\silvi\AppData\Local\Temp\Stino_build\Blink\Blink.elf... "arm-none-eabi-g++" -Os -Wl,--gc-sections -mcpu=cortex-m3 "-TC:\Program Files (x86)\Arduino\hardware\STM32F1\2018.9.24\variants\generic_stm32f103c/ld/jtag_c8.ld" "-Wl,-Map,C:\Users\silvi\AppData\Local\Temp\Stino_build\Blink/Blink.map" "-LC:\Program Files (x86)\Arduino\hardware\STM32F1\2018.9.24\variants\generic_stm32f103c/ld" -o "C:\Users\silvi\AppData\Local\Temp\Stino_build\Blink/Blink.elf" "-LC:\Users\silvi\AppData\Local\Temp\Stino_build\Blink" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group "C:\Users\silvi\AppData\Local\Temp\Stino_build\Blink\Blink.ino.cpp.o" "{archive_file_path}" -Wl,--end-group
I'm not sure why in Sublime compiler doesn't work but in ArduinoIDE it works.

User avatar
mrburnette
Posts: 3001
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: STM32 in Sublime 3 & multiple libs

Post by mrburnette » Sat Oct 06, 2018 1:56 pm

Pararera wrote:
Sat Oct 06, 2018 1:51 pm
...
I'm not sure why in Sublime compiler doesn't work but in ArduinoIDE it works.
Good.
I'm marking this SOLVED

Ray

User avatar
RogerClark
Posts: 8416
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: [SOLVED] STM32 in Sublime 3 & multiple libs

Post by RogerClark » Sat Oct 06, 2018 7:45 pm

Re: archive-path

I think this was a change made by Arduino themselves at least 6 months ago, where they modified how platform.txt works

I suspect that whatever plugin you are useing in Sublime has not been updated, to match what is now required

Post Reply