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
  • 737 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
  • 553 Views
  • 1 replies
  • 0 kudos

Changing CAN bus clock of the sys mem bootloader

According to documentation, after jumping to sys mem bootloader address, the bootloader sets up CAN2 with a 125 kbps clock. Is there a possibility to change that clock to 1 Mbps ? Reason : At the time of reflashing one node in the network, other node...

HRupp.1 by Associate
  • 337 Views
  • 0 replies
  • 0 kudos

Acknowledgement Error in CAN Communication

Hello there,I am newbie in CAN communication. Although there is no problem in loopback mode, I get acknowledgment error in normal mode. For this reason, the tx message I sent continues to be sent because it was not ACKed, and after a while, all mailb...

0693W00000QOORrQAP.png 0693W00000QOOU2QAP.png
SUrte.1 by Associate II
  • 4414 Views
  • 12 replies
  • 0 kudos