nanoMODBUS/examples/stm32
2024-12-08 11:30:10 +01:00
..
.vscode Fully renew the example with cmake integration. ioc deleted 2024-12-08 11:30:10 +01:00
bsp/blackpill Fully renew the example with cmake integration. ioc deleted 2024-12-08 11:30:10 +01:00
nmbs Add working rtu example again (currently no dma) 2024-12-08 11:30:10 +01:00
.gitignore Fully renew the example with cmake integration. ioc deleted 2024-12-08 11:30:10 +01:00
CMakeLists.txt Add working rtu example again (currently no dma) 2024-12-08 11:30:10 +01:00
FreeRTOSConfig.h Fully renew the example with cmake integration. ioc deleted 2024-12-08 11:30:10 +01:00
modbus_rtu.c Add working rtu example again (currently no dma) 2024-12-08 11:30:10 +01:00
modbus_tcp.c Add working rtu example again (currently no dma) 2024-12-08 11:30:10 +01:00
readme.md Only single server is supported from nanomodbus. Change multi-server example to single server 2024-12-08 11:30:10 +01:00
stm32f4xx_hal_conf.h Fully renew the example with cmake integration. ioc deleted 2024-12-08 11:30:10 +01:00

STM32 nanomodbus porting

Target hardware

Blackpill board image

  • Blackpill board
  • STM32F401CCUx
  • USART1 with DMA
    • PA9 : TX1
    • PA10 : RX1

Toolchain and environment

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

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

How to run

  1. Generate driver code from stm32f401ccux.ioc using STM32CubeMX
  2. Configure with CMake
  3. Launch with elf file or flash it