I’m getting an intermittent reset with my FTP read of the directory listing. It’s happening when I call the wip_read function.
I can get the list and download files usually without any problem, then on the odd FTP attempt, my application will reset during the wip_read. A common Trace when the reset occurs is “ARM Data Abort caught at XXXXXXXXX, Current Task 0x2F by ADEC”.
Just to note: I tried disabling the software and hardware watchdogs. I also tried increasing the stack size. Neither of these helped.
I’ve tried with the latest firmware and it hasn’t helped unfortunately.
I have also tried monitoring the power supply to see if there were any dips that correlated with the resets, but the power to the module seems stable.
This is working now. I had assumed that it was in the wip_read because the last TRACE I was getting was always just before the wip_read, but the problem happened to be straight after the wip_read function when the directory listing was being compared.
I was comparing the filename to 8 characters to search for a match and I would increment the starting point of my comparison.
This meant that if the length of the filename (plus extension) was 9 characters, I would start my comparison with the first character and compare the first 8 characters of the filename. If I didn’t find a match, I would increment the start point and compare from the second character. The reset occured when I used the third character as the start point, because the last character compared would be outside the range of the filename.
This obviously wouldn’t happen everytime, because it would sometimes get a match before using the third character as a start point.