Quantcast
Channel: Keil Discussion Forum RSS Feed
Viewing all articles
Browse latest Browse all 3049

ARM: Modbus communication via STM32F4

$
0
0
Hi I am using UART5 interrupt handler to receive bytes in Mod-bus protocol. MCU is STM32f407VGT6. My problem is that UART ISR does not get first 4 bytes from slave. I have checked signals with scope so I am sure hardware is okay. my code is in below after a time out I read the buffer but instead of 9 bytes there is only last 5 bytes from slave. void uart5_configuration(void) { USART_InitTypeDef USART_InitStructure; GPIO_InitTypeDef GPIO_InitStructure; RCC_AHB1

Viewing all articles
Browse latest Browse all 3049

Trending Articles