-
Notifications
You must be signed in to change notification settings - Fork 976
Using git repository
To use the Arduino_Core_STM32 git repository instead of the package version, follow those steps:
See the Getting Started page. This will install the required dependencies:
- CMSIS: ARM® Cortex® Microcontroller Software Interface Standard
- arm-none-eabi-gcc: GNU ARM Embedded Toolchain
- STM32Tools: upload tools,...
Go to the local Arduino directory
/img/Tips-icon.png The location is displayed in the "Preferences" dialog.
It should be:
-
/Users/\<USERNAME\>/Library/Arduino15/
(Mac) -
c:\Documents and Settings\\<USERNAME\>\Application Data\Arduino15\
(Windows XP) -
c:\Users\\<USERNAME\>\AppData\Roaming\Arduino15\
(Windows Vista) -
c:\Users\\<USERNAME\>\AppData\Local\Arduino15\
(Windows 7) -
~/.arduino15/
(Linux)
Then, go to "<local Arduino directory>/packages/STM32/hardware/stm32/" directory.
You should see a directory named with the STM32 Core version installed. Example: 2017.6.2
Delete this directory.
Directory of step 2 is now deleted.
In the "<local Arduino directory>/packages/STM32/hardware/stm32/" do the clone:
git clone https://github.com/stm32duino/Arduino_Core_STM32.git <version>
where <version> is the one you delete in step 2.
For this example: 2017.6.2
So, do:
git clone https://github.com/stm32duino/Arduino_Core_STM32.git 2017.6.2
/img/Tips-icon.png It is possible to clone it elsewhere and create a symlink named <version>
At this step, you are able to build using the git repository but upload is broken.
.../massStorageCopy": error=2, No such file or directory
or
.../stlink_upload": error=2, No such file or directory
Uploader tools path need to be updated in platform.txt at the root of the git repository.
Replace all {runtime.hardware.path}
by {runtime.tools.STM32Tools.path}
That's all.
/img/Warning_icon.png Uninstalling from the boards managers will remove the git repository!
Go to the "<Arduino install directory>/hardware/" and create a directory named: stm
/img/Note_icon.png Directory name is not important stm is an example.
Go to this new directory then do the clone:
git clone https://github.com/stm32duino/Arduino_Core_STM32.git stm32
/img/Important_icon.png The name of a new directory to clone into must be stm32!
-
Advanced usages