I have been working on an application for my internship, which allows connections via TCP and updates via FTP. I am almost done with my application, but I have encountered a weird problem which I cannot seem to solve. I have used the TCPMultiSocket example as a base, and went from there on. During a few of my tests, everything worked as expected, but with my latest version, which incorporated FTP client capabilities and access to the SD card, for some reason after entering 2-3 commands, the controller restarts itself as I see on the Mttty Terminal, as seen below.
Code: Select all
Waiting 2sec to start 'A' to abort
Configured IP = 0.0.0.0
Configured Mask = 0.0.0.0
MAC Address= 00:03:f4:02:63:a9
Trying DHCP
DHCP assigned the IP address of :192.168.1.128
FAT mount to SD/MMC successful
SD/MMC drive change successful
Listening for incoming connections on port 23
Added connection on fd[0] = 35, 192.168.1.137:45978
Report Client command was received.
Waiting 2sec to start 'A' to abort
Configured IP = 0.0.0.0
Configured Mask = 0.0.0.0
MAC Address= 00:03:f4:02:63:a9
Trying DHCP
DHCP assigned the IP address of :0.0.0.0
FAT mount to SD/MMC successful
SD/MMC drive change successful
Listening for incoming connections on port 23