initializing "TCP_IP_WIZ810MJ1" kills program

Post Reply
Emadae3
Posts: 5
http://meble-kuchenne.info.pl
Joined: Fri May 21, 2021 12:02 pm
Has thanked: 1 time

initializing "TCP_IP_WIZ810MJ1" kills program

Post by Emadae3 »

initializing "TCP_IP_WIZ810MJ1" comms component on Arduino Mega kills the program somehow.

the program works in simulation however fails with real hardware for some reason (full freeze), the arduino just stuck at the first block of the code

am using Ethernet Shield r3 based on W5100 from wiznet.

any idea I can try while you look into it ?

can I check the component macro inner workings ?

here's a simple program I tried
Attachments
try2.fcfx
(11.54 KiB) Downloaded 13 times

LeighM
Matrix Staff
Posts: 196
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 31 times
Been thanked: 39 times

Re: initializing "TCP_IP_WIZ810MJ1" kills program

Post by LeighM »

Could you check the component connection properties?
For example, I think CS should be PB4?

BenR
Matrix Staff
Posts: 640
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 125 times
Been thanked: 203 times

Re: initializing "TCP_IP_WIZ810MJ1" kills program

Post by BenR »

Hello,

AVR devices have a hardware "feature" where if the SPI SS pin is left as an input and allowed to float low the SPI peripheral can go into the SPI slave mode and cause a lockup on the device.

It looks like pin B0 is the hardware SS pin on your device, so simply output a 0 or 1 to the pin using an output icon and it should stop the lockup from happening.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel

Post Reply