ATmega1284p Ethernet W5500 Reseting while receiving

Hi there, I'm setting up a simple client/server between a C# app on a pc and an ATmega1284p through TCP/IP using a W5500 chip.

The C# code to send data :

trame = new byte[10] { tailleTotale[0], tailleTotale[1], typeCarte, idCommande, tailleData, nombreElements, 0, 0, 0, 0 };
datasToByte.CopyTo(trame, 6);
stream.Write(trame, 0, trame.Length);

byte arrays looks like that :

0x00 0x09 0x52 0x61 0x01 0x20 0x05 0x00 0x00 0x00

0x00 0x09 0x52 0x62 0x01 0x20 0x05 0x00 0x00 0x00

What I figured is that if I try to send this array 2 times in a raw with low interval, the Arduino freeze itself and eventually reset

If I do the exact same thing with a smaller array like

0x00 0x07 0x52 0x65 0x01 0x01 0x01

I can send it as many times as I want with a minimum of time interval without a problem from the arduino...

Please post ALL your code.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.