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
initializing "TCP_IP_WIZ810MJ1" kills program
-
- 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
- Attachments
-
- try2.fcfx
- (11.54 KiB) Downloaded 108 times
-
- Matrix Staff
- Posts: 1707
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 435 times
- Been thanked: 598 times
Re: initializing "TCP_IP_WIZ810MJ1" kills program
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.
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 Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel