alejoseb / Modbus-STM32-HAL-FreeRTOS

Modbus TCP and RTU, Master and Slave for STM32 using Cube HAL and FreeRTOS
GNU Lesser General Public License v2.1
580 stars 192 forks source link

H743 master issue #23

Closed emreinanici closed 3 years ago

emreinanici commented 3 years ago

I can't set my device as master. I used slave example.

    ModbusH.uModbusType = MB_MASTER;
    ModbusH.port =  &huart3; // This is the UART port connected to STLINK in the NUCLEO F429
    ModbusH.u8id = 0; //slave ID
    ModbusH.u16timeOut = 1000;
    ModbusH.EN_Port = NULL; // No RS485

NOT COMMUNICATING WITH THE PC ! Can you provide detailed information for Master device settings ?

alejoseb commented 3 years ago

Hi, I provide TCP and RTU project examples for the Nucleo H743. You can check there the configuration in the main.c file.

Also, an example of master configuration can be found in the following file:

Examples/ModbusF103/Core/Src/main.c

Remember to select the type of hardware for USART, USB CDC, or TCP.

emreinanici commented 3 years ago

Hi alejoseb . I already checked the given examples. I also changed the freertos.c file accordingly F103 file. But it didn't work

alejoseb commented 3 years ago

You should provide more information about your setup, so I can help if possible. The only thing that I know is that you are implementing a master, which is not working. I will close this issue, feel free to reopen it when you have a complete description of your issue or any specific problem to solve. Check also other closed issues that might help.