Skip to content

Commit 7eb43b1

Browse files
committed
STM32_gen_PeripheralPins.py move to TARGET_STM
1 parent 2d25882 commit 7eb43b1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

targets/TARGET_STM/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,12 @@ Copy paste, and update!
156156

157157
It is recommended to use a python script to generate those files
158158

159-
https://github.com/ARMmbed/mbed-os/blob/master/tools/targets/STM32_gen_PeripheralPins.py
159+
https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py
160160

161161
STM32CubeMX has to be installed first. Path has to be specified in the `cube_path.json` file.
162162

163163
```
164-
$ python tools/targets/STM32_gen_PeripheralPins.py -h
164+
$ python targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py -h
165165
166166
Script version 1.17
167167
usage: STM32_gen_PeripheralPins.py [-h] (-l | -b | -m xml | -t HW | -c CUSTOM)
@@ -189,14 +189,14 @@ Once generated, you have to check and comment pins that can not be used (specifi
189189

190190
How to generate files for a custom boards based on a STM32F427 MCU:
191191
```
192-
$ python tools/targets/STM32_gen_PeripheralPins.py -l | grep F427
192+
$ python targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py -l | grep F427
193193
STM32F427A(G-I)Hx.xml
194194
STM32F427I(G-I)Hx.xml
195195
STM32F427I(G-I)Tx.xml
196196
STM32F427V(G-I)Tx.xml
197197
STM32F427Z(G-I)Tx.xml
198198
199-
$ python tools/targets/STM32_gen_PeripheralPins.py -m "STM32F427V(G-I)Tx.xml"
199+
$ python targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py -m "STM32F427V(G-I)Tx.xml"
200200
201201
Script version 1.17
202202
CubeMX DB version DB.6.0.0
@@ -221,7 +221,7 @@ Example with a board based on STM32F103C8 (like BluePill):
221221
- MCU_STM32F103x8 generic configuration is already available in targets.json file
222222

223223
```
224-
$ python tools/targets/STM32_gen_PeripheralPins.py -m "STM32F103C(8-B)Tx.xml"
224+
$ python targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py -m "STM32F103C(8-B)Tx.xml"
225225
// PeripheralPins.c and PinNames.h template files are created in targets_custom/TARGET_STM/TARGET_STM32F1/TARGET_STM32F103x8/TARGET_STM32F103C8T directory
226226
227227
$ mv TARGET_STM32F103C8T TARGET_BLUEPILL_F103C8
@@ -249,7 +249,7 @@ Example with a board based on STM32H745ZI
249249
- MCU_STM32H745I_CM4 and MCU_STM32H745I_CM7 generic configuration is already available in targets.json file
250250

251251
```
252-
$ python tools/targets/STM32_gen_PeripheralPins.py -m "STM32H745ZITx.xml"
252+
$ python targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py -m "STM32H745ZITx.xml"
253253
// PeripheralPins.c and PinNames.h template files are created in targets_custom/TARGET_STM/TARGET_STM32H7/TARGET_STM32H745xI/TARGET_STM32H745ZIT directory
254254
255255
$ mv TARGET_STM32H745ZIT TARGET_H745ZI_BOARD

0 commit comments

Comments
 (0)