You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use the [Arduino_Core_STM32](https://github.com/stm32duino/Arduino_Core_STM32) git repository instead of the package version, follow those steps:
2
2
3
3
## 1. Install the STM32 Cores package
4
-
See the [[Getting Started|Getting-Started]] page.
5
-
This will install the required dependencies for the current released version.
6
-
To get started with development on main you must install the correct versions of the required dependencies (see: [platform.txt](https://github.com/stm32duino/Arduino_Core_STM32/blob/main/platform.txt)):
4
+
5
+
To get started with development on `main` branch, correct versions of the required dependencies have to be installed (see: [platform.txt](https://github.com/stm32duino/Arduino_Core_STM32/blob/main/platform.txt)):
7
6
*[CMSIS](https://www.arm.com/products/processors/cortex-m/cortex-microcontroller-software-interface-standard.php): ARM® Cortex® Microcontroller Software Interface Standard
8
-
*[arm-none-eabi-gcc](https://developer.arm.com/open-source/gnu-toolchain/gnu-rm): GNU ARM Embedded Toolchain
7
+
*[GNU Arm Embedded Toolchain](https://developer.arm.com/open-source/gnu-toolchain/gnu-rm): Arm Embedded GCC compiler, libraries and other GNU tools necessary for bare-metal software development on devices based on the Arm Cortex-M. Packages are provided thanks [The xPack GNU Arm Embedded GCC](https://xpack.github.io/arm-none-eabi-gcc/): https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack
9
8
*[STM32Tools](https://github.com/stm32duino/Arduino_Tools): upload tools for STM32 based boards and some other useful scripts
10
9
10
+
Using the git repository requires sometimes to update tools dependencies.
11
+
12
+
Example when the arm-none-abi-gcc toolchain or the CMSIS version are updated. In that case, all dependencies are available in the [package_stmicroelectronics_index.json](https://github.com/stm32duino/BoardManagerFiles/blob/dev/package_stmicroelectronics_index.json) of the BoardManagerFiles `dev` branch.
13
+
14
+
See the [[Getting Started|Getting-Started]] page to see how to install the core and its tools dependencies but use this link in the "Additional Boards Managers URLs" field:
Then install the latest version displayed by the board manager, if a version is suffixed by `-dev` it means one or more dependencies have been updated else no change done since the last release.
19
+
20
+
This will install the required dependencies for the main branch.
21
+
11
22
## 2. Delete the stm32 core extracted package
12
23
Go to the installed package directory: [[Where-are-sources]]
13
24
14
-
Delete the version directory: `<x.y.z>`
25
+
Delete the version directory: `<x.y.z>` or `<x.y.z-dev>`
26
+
27
+
Note: There must be no other directories along side the `<x.y.z>` or `<x.y.z-dev>` directory, so don't just rename the old one - it will cause problems later. If you want to keep it, move it somewhere else entirely.
15
28
16
-
Note: There must be no other directories along side the `<x.y.z>` directory, so don't just rename the old one - it will cause problems later. If you want to keep it, move it somewhere else entirely.
29
+
## 3. Cloning the git repository to replace the stm32 core version package (1st method)
17
30
18
-
## 3. Hereafter, 2 methods to use git repository
19
31
Directory of step 2 is now deleted.<br>
20
32
21
-
### 3.1. Cloning the git repository to replace the stm32 core version package (1st method)
22
33
In the "_**\<local Arduino directory\>/packages/STMicroelectronics/hardware/stm32/**_" do the clone:<br>
[[/img/Warning-icon.png|alt="Warning"]] The name of the new directory to clone into must be _**stm32**_!
45
-
46
47
[[/img/Note-icon.png|alt="Note"]] If you do not have deleted the stm32 core extracted package (step [2.](https://github.com/stm32duino/wiki/wiki/Using-git-repository/_edit#2-delete-the-stm32-core-extracted-package)), in "**Tools > Board**" menu, you will have twice the "**STM32 board**" menu.<br>
0 commit comments