nanoMODBUS/examples/stm32
2024-12-15 05:37:26 +00:00
..
.vscode Fully renew the example with cmake integration. ioc deleted 2024-12-08 11:30:10 +01:00
bsp/blackpill refined stm32 example to pass clang format checker 2024-12-15 03:30:40 +00:00
nmbs Fixes after STM32 example merge 2024-12-08 11:38:45 +01:00
.gitignore Fully renew the example with cmake integration. ioc deleted 2024-12-08 11:30:10 +01:00
CMakeLists.txt revert stm32 CMakeLists due to check ci test sucess 2024-12-15 05:37:26 +00:00
FreeRTOSConfig.h manual revision to pass clang-format 2024-12-15 03:37:01 +00:00
modbus_rtu.c Fixes after STM32 example merge 2024-12-08 11:38:45 +01:00
modbus_tcp.c Fixes after STM32 example merge 2024-12-08 11:38:45 +01:00
readme.md Fixes after STM32 example merge 2024-12-08 11:38:45 +01:00
stm32f4xx_hal_conf.h refined stm32 example to pass clang format checker 2024-12-15 03:30:40 +00:00

STM32 nanomodbus porting

Target hardware

Blackpill board image

  • Blackpill board
  • STM32F401CCUx
  • USART1 (with/without) DMA
    • PA9 : TX1
    • PA10 : RX1
  • SPI1 with DMA (connected to W5500)
    • PB3 : SCK1
    • PB4 : MISO1
    • PB5 : MOSI1
    • PA15 : NSS (Software select)

Toolchain and environment

Tested on Mac OS Sonoma(Apple Silicon) & Windows 10 but other os having same toolchain should have no problem.

  • arm-none-eabi-gcc
  • cmake
  • ninja
  • openocd
  • vscode
    • CMake
    • cortex-debug

Building

mkdir build
cd build
cmake ..
make -j16