STM32F4 Discovery
Vendor: STMicroelectronics
Program Target: STM32F4 : STM32F407VG
Sample firmware
zephyr-sample-blinky.hex
: Example “blinky” firmware for STM32F4DISCOVERYzephyr-sample-blinky-200ms.hex
: “blinky” firmware for STM32F4DISCOVERY, with 200ms duty cyclezephyr-sample-CAN.hex
:samples/drivers/CAN
Zephyr sample firmware for STM32F4DISCOVERY
References
Program STM32F4 (ST-Link)
YAML Test plans
suite-stm32f4_disco-sample.yaml
: PLT test plan to programzephyr-sample-blinky.hex
title: "Program: blinky sample"
suite:
- ident: DEV-T1
title: Identify DUT
steps:
- command: identify STM32F4_STLink
- ident: DEV-T2
title: Erase STM32F4 through USB ST-Link
steps:
- command: erase STM32F4_STLink
- ident: DEV-T3
title: Program STM32F4 though USB ST-Link
steps:
- command: program STM32F4_STLink zephyr-sample-blinky.hex
suite-stm32f4_disco-sample-200ms.yaml
: PLT test plan to programzephyr-sample-blinky-200ms.hex
title: "Program: blinky sample (200ms)"
suite:
- ident: ICT-T1
title: Identify DUT
steps:
- command: identify STM32F4_STLink
- ident: ICT-T2
title: Erase STM32F4 through USB ST-Link
steps:
- command: erase STM32F4_STLink
- ident: ICT-T3
title: Program STM32F4 though USB ST-Link
steps:
- command: program STM32f4_STLink zephyr-sample-blinky-200ms.hex
Program STM32F4, Test CAN (ST-Link)
Connection
To use CAN on the STM32F4 Discovery board, an external CAN transceiver, like Waveshare’s SN65HVD230 CAN Board, is required, and should be hooked up to the Discovery board as follows:
Transceiver |
STM32F4 Discovery |
---|---|
|
|
|
|
|
|
|
|
YAML Test Plan
suite-stm32f4_disco-sample-CAN.yaml
: PLT test plan forzephyr-sample-CAN.hex
title: "Program: CAN sample"
suite:
- ident: DEV-T0
title: Setup
steps:
- command: power off
- command: canCfg CAN0 125000
- ident: DEV-T1
title: Identify DUT
steps:
- command: identify STM32F4_STLink
- ident: DEV-T2
title: Erase STM32F4 through USB ST-Link
steps:
- command: erase STM32F4_STLink
- ident: DEV-T3
title: Program STM32F4 though USB ST-Link
steps:
- command: program STM32F4_STLink zephyr-sample-CAN.hex
- ident: DEV-T4
title: Check if DUT is sending CAN frames
steps:
- command: canClear CAN0
- command: sleepms 500
# Match Change LED frame
- command: canMatch CAN0 0x10
extractKey: CAN_LED_MSG
See also