STM32 MCUs Embedded software

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

LWIP SOCKET How can server tell if Client disconnected without "warning"? Server on MCU (STM32F429ZIT6, custom board), Client application on Windows I spent two days trying to figure a solution to this problem. Here is my solution, what do you think?

in main.c int connectionClosed = 0; ... Setup routine of socket ...  while(1){ sin_size = sizeof(struct sockaddr_in); new_socket = lwip_accept(s_create, (struct sockaddr *)&client_addr, &sin_size); if (new_socket > 0){   msgSize = sprin...

DPatr.2 by Associate III
  • 549 Views
  • 0 replies
  • 0 kudos

I am having trouble making a USB-CDC host work on a STM32F407 chip. The primary problem is it seems to get stuck in an endless loop in the CDC state ENUMERATION. I originally built the code using the STM32Cube application.

I will mention at this point that I am connecting to a known working CDC device. I know it is working because I can connect the same port to a PC, and it enumerates properly, and I can pass data to/from the device.In module usbh_core.c function USBH_...

BBert by Associate III
  • 448 Views
  • 1 replies
  • 0 kudos