WIZ811mj and MCP2515 SPI conflict ?

Hi, I'm trying to use a WizNet module (811mj) and a CAN controller (mcp2515) on the same SPI, but I have some weird things happening ...I'm sending some commands via a simple java GUI running the chat server from the examples inside IDE. Everything seems ok, until a certain moment when whatever I'm doing (disconnecting, sending any text or command through the GUI,or connecting ), the board resets completely, running the program from the setup section of the sketch. No reset signal down or VCC down,tested with a scope... :o ...I can't figure what can triggers this reset...

Everything seems ok, until a certain moment when whatever I'm doing (disconnecting, sending any text or command through the GUI,or connecting ), the board resets completely

How are you sending the commands from GUI?Are you uisng the serial port?
If your answer is yes then that is your issue.Maybe you wish to disable the auto-reset ...
Post your code to further analysis

Hi, I'm using the board plugged into a switch, where also my pc is ..Commands are sent via network.The code is bigger than the maximum allowed, so I will attach it as a file..The code blows when reaches the line 139... :o

ATC_Eth_CAN_CPU.ino (9.01 KB)