Skip to main content
NSing.5
Associate III
January 2, 2023
Solved

MODBUS communication using STM32F730

  • January 2, 2023
  • 1 reply
  • 5029 views

I'm trying to use STM32F730 for MODBUS communication. The datasheet and reference manual both shows support for MODBUS. However the problem is :

  1. when i use cubemx for configuration purpose it generated following message "This peripheral has no parameters to be configured".
  2. Further i generated the code when i check code using IDE the USART initilization function has no code and it appears as follows:

static void MX_USART1_Init(void)

{

 /* USER CODE BEGIN USART1_Init 0 */

 /* USER CODE END USART1_Init 0 */

 /* USER CODE BEGIN USART1_Init 1 */

 /* USER CODE END USART1_Init 1 */

 /* USER CODE BEGIN USART1_Init 2 */

 /* USER CODE END USART1_Init 2 */

}

As per my understanding this initialization function is not correct.

So all of you are requested to help me to understand what is the issue.

Regards

This topic has been closed for replies.
Best answer by Peter BENSCH

Data sheet and RM mention "basic support for the implementation of Modbus/RTU and Modbus/ASCII

protocols".

It further states "The control part of the protocol (address recognition, block integrity control and command interpretation) must be implemented in software."

There are now several possibilities:

You can also find the topic Modbus here in the community.

Maybe that will help you?

Regards

/Peter

1 reply

Peter BENSCH
Peter BENSCHBest answer
Technical Moderator
January 3, 2023

Data sheet and RM mention "basic support for the implementation of Modbus/RTU and Modbus/ASCII

protocols".

It further states "The control part of the protocol (address recognition, block integrity control and command interpretation) must be implemented in software."

There are now several possibilities:

You can also find the topic Modbus here in the community.

Maybe that will help you?

Regards

/Peter

NSing.5
NSing.5Author
Associate III
January 5, 2023

thanks sir

It further states "The control part of the protocol (address recognition, block integrity control and command interpretation) must be implemented in software."

sir, does it mean mean that everything related to USART initialization (such as baud rate, DMA utilization etc.) will be implemented in program

Peter BENSCH
Technical Moderator
January 5, 2023

Correct.