Skip to content

Commit b862b65

Browse files
committed
DISCO_F413ZH: corrections
- leds definition - add sw4stm32 exporter - recomment mco debug
1 parent 4a87436 commit b862b65

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/TARGET_DISCO_F413ZH/PeripheralNames.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ typedef enum {
4343
UART_10 = (int)UART10_BASE
4444
} UARTName;
4545

46-
#define STDIO_UART_TX PG_9
47-
#define STDIO_UART_RX PG_14
46+
#define STDIO_UART_TX PG_14
47+
#define STDIO_UART_RX PG_9
4848
#define STDIO_UART UART_6
4949

5050
typedef enum {

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/TARGET_DISCO_F413ZH/PinNames.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,14 @@ typedef enum {
223223
D15 = PB_10,
224224

225225
// Generic signals namings
226-
LED1 = PE_3, // Red
227-
LED2 = PC_7, // Green
228-
LED_RED = LED1,
226+
LED1 = PC_5, // Green = LD3 on the board
227+
LED2 = PE_3, // Red = LD4 on the board
228+
LED3 = PB_12, // Green = LD5 on the board, connected to Arduino D13
229+
LED4 = LED1,
230+
LED_RED = LED2,
229231
USER_BUTTON = PA_0,
230-
SERIAL_TX = PG_9,
231-
SERIAL_RX = PG_14,
232+
SERIAL_TX = PG_14,
233+
SERIAL_RX = PG_9,
232234
USBTX = SERIAL_TX,
233235
USBRX = SERIAL_RX,
234236
I2C_SCL = D15,

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/TARGET_DISCO_F413ZH/system_stm32f4xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ void SetSysClock(void)
821821
}
822822

823823
/* Output clock on MCO2 pin(PC9) for debugging purpose */
824-
HAL_RCC_MCOConfig(RCC_MCO2, RCC_MCO2SOURCE_SYSCLK, RCC_MCODIV_4);
824+
//HAL_RCC_MCOConfig(RCC_MCO2, RCC_MCO2SOURCE_SYSCLK, RCC_MCODIV_4);
825825
}
826826

827827
#if (USE_PLL_HSE_XTAL != 0) || (USE_PLL_HSE_EXTC != 0)

tools/export/sw4stm32/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class Sw4STM32(Exporter):
3131
'DISCO_F334C8': {'name': 'STM32F3348DISCOVERY', 'mcuId': 'STM32F334C8Tx'},
3232
'DISCO_F401VC': {'name': 'STM32F401C-DISCO', 'mcuId': 'STM32F401VCTx'},
3333
'DISCO_F407VG': {'name': 'STM32F4DISCOVERY', 'mcuId': 'STM32F407VGTx'},
34+
'DISCO_F413ZH': {'name': 'DISCO_F413', 'mcuId': 'STM32F413ZHTx'},
3435
'DISCO_F429ZI': {'name': 'STM32F429I-DISCO', 'mcuId': 'STM32F429ZITx'},
3536
'DISCO_F469NI': {'name': 'DISCO-F469NI', 'mcuId': 'STM32F469NIHx'},
3637
'DISCO_F746NG': {'name': 'STM32F746G-DISCO', 'mcuId': 'STM32F746NGHx'},

0 commit comments

Comments
 (0)