Skip to content

Commit c1e3c86

Browse files
author
Jamie Smith
authored
A few minor H5 fixes (#318)
1 parent 42df56c commit c1e3c86

File tree

4 files changed

+54
-26
lines changed

4 files changed

+54
-26
lines changed

targets/TARGET_STM/TARGET_STM32H5/TARGET_STM32H563xI/TARGET_NUCLEO_H563ZI/PinNames.h

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -206,29 +206,29 @@ typedef enum {
206206

207207
#ifdef TARGET_FF_ARDUINO_UNO
208208
// Arduino Uno (Rev3) pins
209-
/*ARDUINO_UNO_A0 = Px_x,
210-
ARDUINO_UNO_A1 = Px_x,
211-
ARDUINO_UNO_A2 = Px_x,
212-
ARDUINO_UNO_A3 = Px_x,
213-
ARDUINO_UNO_A4 = Px_x,
214-
ARDUINO_UNO_A5 = Px_x,
209+
ARDUINO_UNO_A0 = PA_6,
210+
ARDUINO_UNO_A1 = PC_0,
211+
ARDUINO_UNO_A2 = PC_3,
212+
ARDUINO_UNO_A3 = PB_1,
213+
ARDUINO_UNO_A4 = PC_2,
214+
ARDUINO_UNO_A5 = PF_11,
215215

216-
ARDUINO_UNO_D0 = Px_x,
217-
ARDUINO_UNO_D1 = Px_x,
218-
ARDUINO_UNO_D2 = Px_x,
219-
ARDUINO_UNO_D3 = Px_x,
220-
ARDUINO_UNO_D4 = Px_x,
221-
ARDUINO_UNO_D5 = Px_x,
222-
ARDUINO_UNO_D6 = Px_x,
223-
ARDUINO_UNO_D7 = Px_x,
224-
ARDUINO_UNO_D8 = Px_x,
225-
ARDUINO_UNO_D9 = Px_x,
226-
ARDUINO_UNO_D10 = Px_x,
227-
ARDUINO_UNO_D11 = Px_x,
228-
ARDUINO_UNO_D12 = Px_x,
229-
ARDUINO_UNO_D13 = Px_x,
230-
ARDUINO_UNO_D14 = Px_x,
231-
ARDUINO_UNO_D15 = Px_x,*/
216+
ARDUINO_UNO_D0 = PB_7,
217+
ARDUINO_UNO_D1 = PB_6,
218+
ARDUINO_UNO_D2 = PG_14,
219+
ARDUINO_UNO_D3 = PE_13,
220+
ARDUINO_UNO_D4 = PE_14,
221+
ARDUINO_UNO_D5 = PE_11,
222+
ARDUINO_UNO_D6 = PE_9,
223+
ARDUINO_UNO_D7 = PG_12,
224+
ARDUINO_UNO_D8 = PF_3,
225+
ARDUINO_UNO_D9 = PD_15,
226+
ARDUINO_UNO_D10 = PD_14,
227+
ARDUINO_UNO_D11 = PB_5,
228+
ARDUINO_UNO_D12 = PG_9,
229+
ARDUINO_UNO_D13 = PA_5,
230+
ARDUINO_UNO_D14 = PB_9,
231+
ARDUINO_UNO_D15 = PB_8,
232232
#endif
233233

234234
// STDIO for console print

targets/targets.json5

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3133,8 +3133,15 @@
31333133
"overrides": {
31343134
"hse_value": 24000000,
31353135
"lse_available": 1,
3136-
"clock_source": "USE_PLL_HSE_XTAL|USE_PLL_HSI"
3136+
"clock_source": "USE_PLL_HSE_XTAL|USE_PLL_HSI",
3137+
3138+
// ADC reference voltage is same as MCU VDD.
3139+
// MCU VDD defaults to 3.3V though can be changed to 1.8V based on JP2 setting on nucleo board.
3140+
"default-adc-vref": 3.3
31373141
},
3142+
"supported_form_factors": [
3143+
"ARDUINO_UNO"
3144+
],
31383145
"detect_code": [
31393146
"0832"
31403147
],
@@ -3160,8 +3167,15 @@
31603167
],
31613168
"overrides": {
31623169
"lse_available": 1,
3163-
"clock_source": "USE_PLL_HSE_EXTC|USE_PLL_HSI"
3170+
"clock_source": "USE_PLL_HSE_EXTC|USE_PLL_HSI",
3171+
3172+
// ADC reference voltage is same as MCU VDD.
3173+
// MCU VDD defaults to 3.3V though can be changed to 1.8V based on JP4 setting on nucleo board.
3174+
"default-adc-vref": 3.3
31643175
},
3176+
"supported_form_factors": [
3177+
"ARDUINO_UNO"
3178+
],
31653179
"detect_code": [
31663180
"0878"
31673181
],

targets/upload_method_cfg/NUCLEO_H503RB.cmake

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,21 @@
88

99
# General config parameters
1010
# -------------------------------------------------------------
11-
set(UPLOAD_METHOD_DEFAULT STM32CUBE)
11+
set(UPLOAD_METHOD_DEFAULT MBED)
1212

1313
# Config options for MBED
1414
# -------------------------------------------------------------
1515

1616
set(MBED_UPLOAD_ENABLED TRUE)
1717
set(MBED_RESET_BAUDRATE 115200)
1818

19+
# Config options for PYOCD
20+
# -------------------------------------------------------------
21+
22+
set(PYOCD_UPLOAD_ENABLED TRUE)
23+
set(PYOCD_TARGET_NAME stm32h503rbtx)
24+
set(PYOCD_CLOCK_SPEED 4000k)
25+
1926
# Config options for STM32CubeIDE
2027
# -------------------------------------------------------------
2128

targets/upload_method_cfg/NUCLEO_H563ZI.cmake

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,21 @@
88

99
# General config parameters
1010
# -------------------------------------------------------------
11-
set(UPLOAD_METHOD_DEFAULT STM32CUBE)
11+
set(UPLOAD_METHOD_DEFAULT MBED)
1212

1313
# Config options for MBED
1414
# -------------------------------------------------------------
1515

1616
set(MBED_UPLOAD_ENABLED TRUE)
1717
set(MBED_RESET_BAUDRATE 115200)
1818

19+
# Config options for PYOCD
20+
# -------------------------------------------------------------
21+
22+
set(PYOCD_UPLOAD_ENABLED TRUE)
23+
set(PYOCD_TARGET_NAME stm32h563zitx)
24+
set(PYOCD_CLOCK_SPEED 4000k)
25+
1926
# Config options for STM32Cube
2027
# -------------------------------------------------------------
2128

0 commit comments

Comments
 (0)