samples: modules: canopennode: add stm32f3_disco support
Add support for the ST STM32F3 Discovery development board. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
d727547f79
commit
13e6d264bb
3 changed files with 33 additions and 1 deletions
|
@ -61,6 +61,25 @@ The sample can be built and executed for the FRDM-K64F as follows:
|
||||||
Pressing the button labelled ``SW3`` will increment the button press
|
Pressing the button labelled ``SW3`` will increment the button press
|
||||||
counter object at index ``0x2102`` in the object dictionary.
|
counter object at index ``0x2102`` in the object dictionary.
|
||||||
|
|
||||||
|
Building and Running for STM32F3 Discovery
|
||||||
|
==========================================
|
||||||
|
The :ref:`stm32f3_disco_board` board does not come with an onboard CAN
|
||||||
|
transceiver. In order to use the CAN bus on the STM32F3 Discovery board, an
|
||||||
|
external CAN bus tranceiver must be connected to ``PD1`` (``CAN_TX``) and
|
||||||
|
``PD0`` (``CAN_RX``). This board supports CANopen LED indicators (red and green
|
||||||
|
LEDs)
|
||||||
|
|
||||||
|
The sample can be built and executed for the STM32F3 Discovery as follows:
|
||||||
|
|
||||||
|
.. zephyr-app-commands::
|
||||||
|
:zephyr-app: samples/modules/canopennode
|
||||||
|
:board: stm32f3_disco
|
||||||
|
:goals: build flash
|
||||||
|
:compact:
|
||||||
|
|
||||||
|
Pressing the button labelled ``USER`` will increment the button press counter
|
||||||
|
object at index ``0x2102`` in the object dictionary.
|
||||||
|
|
||||||
Building and Running for boards without storage partition
|
Building and Running for boards without storage partition
|
||||||
=========================================================
|
=========================================================
|
||||||
The sample can be built for boards without a flash storage partition by using a different configuration file:
|
The sample can be built for boards without a flash storage partition by using a different configuration file:
|
||||||
|
|
12
samples/modules/canopennode/boards/stm32f3_disco.overlay
Normal file
12
samples/modules/canopennode/boards/stm32f3_disco.overlay
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2021 Vestas Wind Systems A/S
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/ {
|
||||||
|
aliases {
|
||||||
|
green-led = &green_led_6;
|
||||||
|
red-led = &red_led_3;
|
||||||
|
};
|
||||||
|
};
|
|
@ -3,7 +3,7 @@ sample:
|
||||||
common:
|
common:
|
||||||
tags: can canopen
|
tags: can canopen
|
||||||
depends_on: can
|
depends_on: can
|
||||||
platform_allow: twr_ke18f frdm_k64f
|
platform_allow: twr_ke18f frdm_k64f stm32f3_disco
|
||||||
harness: console
|
harness: console
|
||||||
harness_config:
|
harness_config:
|
||||||
type: one_line
|
type: one_line
|
||||||
|
@ -14,6 +14,7 @@ tests:
|
||||||
tags: introduction
|
tags: introduction
|
||||||
sample.modules.canopennode.program_download:
|
sample.modules.canopennode.program_download:
|
||||||
build_only: true
|
build_only: true
|
||||||
|
platform_exclude: stm32f3_disco
|
||||||
extra_configs:
|
extra_configs:
|
||||||
- CONFIG_BOOTLOADER_MCUBOOT=y
|
- CONFIG_BOOTLOADER_MCUBOOT=y
|
||||||
sample.modules.canopennode.no_storage:
|
sample.modules.canopennode.no_storage:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue