iso14229 0.10.0
ISO14229-1 (UDS) C Library
Loading...
Searching...
No Matches
stm32g474 Directory Reference
Directory dependency graph for stm32g474:
examples/stm32g474

Detailed Description

This example is written in conjuction with the [Porting Guide](docs/porting_guide.md). The project structure was adapted from Kristian Klein-Wengel's excellent tutorial: "STM32 without CubeIDE".

Hardware

Software

Download the CMSIS and HAL submodules,

cd vendor/STM32CubeG4
git submodule update --init \
Drivers/CMSIS/Device/ST/STM32G4xx \
Drivers/STM32G4xx_HAL_Driver \
Drivers/BSP/STM32G4xx_Nucleo

build the project,

cmake -Bbuild -DCMAKE_TOOLCHAIN_FILE=cmake/stm32g474re.cmake
cmake --build build

and flash

cmake --build build --target flash

On the host, send a tester present in one shell

cansend can0 7e0#023e000000000000

and receive in the other

candump can0
can0 7E0 [8] 02 3E 00 00 00 00 00 00
can0 7E8 [3] 02 7E 00