Spark Logic

[SOLVED] STM32 in Sublime 3 & multiple libs

I installed STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog package (STM32F1xx/GD32Fxx by stm32duino) from Boards Manager in Arduino IDE. Then I copied package from %appdata% into main Arduino folder in C:\ so I can use package in Sublime 3(Stino Sublime Package). Sublime found STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog package and I can set board and board options. But problem is error I get while compaling code. [ 1%] Creating C:\Users\silvi\AppData\Local\Temp\Stino_build\Sheme\Sheme.ino.cpp.o...

'"arm-none-eabi-g++"' is not recognized as an internal or external command,
operable program or batch file.

Replies13

Fri Oct 05, 2018 7:27 pm

What core are you using, exact link, there are 3+ cores out in github-land.

I will not answer Sublime questions. Get blink or some canned example running under current ArduiniIDE. You are on your own with Sublime, however there are a few other users that have documented issues/fixes for alternate IDE’s.

Available cores

1. The current STM32F1STM32F1Microcontrollers and processors…w I am not able to compile. Error message: “C:\arduino-1.6.12\hardware\Arduino_STM32\ STM32F1 \cores\maple/boards.h:39:25: fatal error: board/board.h: No such file or directory” I…View in hardware catalog /F4 core files (Leaflabs-based core) for the latest version of ArduinoIDE for clone boards
https://github.com/rogerclarkmelbourne/Arduino_STM32
– The original documentation from Leaflabs … the MapleMapleDevelopment and computing boards…expensive short of buying in bulk. many resort to usb-serial converters. today comes leaflabs maple , stm32duino it is ‘disruptive’ in a similar light, user customizable usb is no…View in hardware catalog commercial project that lasted only a few years
http://docs.leaflabs.com/docs.leaflabs.com/index.html
– WiKi resources
https://github.com/rogerclarkmelbourne/ … STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog /wiki and
http://wiki.stm32duino.com/index.php?title=Main_Page

2. The current STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog core files for STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog based boards (official STM core, HAL based)
https://github.com/stm32duino/Arduino_Core_STM32
– Please address all hardware or core questions for NucleoNucleoDevelopment and computing boards…o have this dev board for BlueNRG at a pretty hefty price tag though, hopefully the ‘ nucleo ’ & common dev board versions would be out soon Laughing … 007v1.html oops/oh found an…View in hardware catalog boards in this sub-forum: http://stm32duino.com/viewforum.php?f=29

3. An alternative generic core: *OUTDATED not under development anymore * edited: 23.08.2013
https://github.com/danieleff/STM32GENERIC

Note:
– do not forget that when you install the core per the online instructions, you will get many examples. I expect you to review examples and hopefully even bring them up and play a bit. Understanding example code can go a long way to help you acclimate to the STM32duino way of doing things. We do try and keep ourselves “arduino-centric” but sometimes it is necessary to deviate or invent new ways to use functions within the 32-bit ARM architecture that just does not exist in the 8-bit Arduino introductory world.

Fri Oct 05, 2018 7:48 pm

I’m not sure. I just installed from board manager. F103C is set witnin board menu.

I think I should add path to arm-none-eabi-g. I’ll fix it somehow

Fri Oct 05, 2018 8:44 pm

STOP.

If you do not know what core you have… then what STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog board do you have?

[Pararera – Fri Oct 05, 2018 4:03 pm] –
Hi guys,
just bought STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog generic bord for my Onboard Computer for bicycle project.
I’m from Croatia and 19 yo

Generic … like this http://wiki.stm32duino.com/index.php?title=Blue_Pill ???

Fri Oct 05, 2018 9:01 pm

Just tell us what line you added to the preferences I.e the link to the JSON file.

I suspect that’s it’s the LibMaple Core or STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog GENERIC if the Arm compiler was not installed

Also

Since all cores are originally stored in GitHub , you could have been better off manually installing by downloading or cloning from github

Fri Oct 05, 2018 9:03 pm

One other note.

ALL the cores are only designed to run on the Arduino IDE.

There are thousands of differnt text editors and programming environments and IDEs etc, so it’s impossible to support anything other than the official Arduino IDE.

Fri Oct 05, 2018 11:53 pm

I fixed problem with Sublime(just added path to compiler). Now it Works but I have problem with libs(Wire.h exactly). It says
fatal error: Wire.h: No such file or directory

Sat Oct 06, 2018 1:14 am

What you are using is DDrown’s board manager files for the LibMaple core

https://github.com/rogerclarkmelbourne/arduino_stm32

I’m not sure if anyone is else is using Sublime, so you are likely to be on your own getting this to work.

Sat Oct 06, 2018 9:46 am

I’ll try with that link.
I hope it will solve problem with multiple libs in ArduinoIDE so I can compile code.

Sat Oct 06, 2018 9:57 am

That is just a warning/info regarding the multiple libraries, and is caused by your action to rename the old one.
Remove the old one entirely from that directory, or zip and delete the dir.
Compile should be anyway successful, unless you have other errors.

Sat Oct 06, 2018 10:22 am

Installed package from your link and now I get three errors for Wire lib
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.

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 arm-none-eabi-g++: error: {archive_file_path}: No such file or directory

Sat Oct 06, 2018 1:56 pm

[Pararera – 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

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 a reply

Optional · up to 10 MiB