Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add STM32 porting example #69

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

donghoonpark
Copy link

STM32 project configuration example to utilize nanomodbus library.

This project contains

  • ioc file: hardware driver configuration. can generate driver package and cmake setting with STM32CubeMX
  • CMakeLists.txt: nanomodbus & porting source linking procedure with cmake
  • nanomodbus_port.c/h: stm32 implementation about transport handling, server data object mapping ...etc
  • .vscode/* : vscode project setting as an example

It have been tested with STM32F401CCUx chip with pymodbus client

@donghoonpark
Copy link
Author

I've found that nanomodbus cannot support multi-rtu server with current structure. Due to only one address_rtu can be set in nmbs_t. Do you have any plan to support this feature? If you have willing to do it. I'll make pull request including multi-server feature. I will modify my example as single master to avoid confusion.

@donghoonpark
Copy link
Author

This example now includes both TCP communication using the W5500 and DMA serial communication on the STM32. The dependency on CubeMX, which was initially included in the pull request, has also been removed, enhancing compatibility so that it can be built with just an appropriate compiler and CMake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant