I have been working with a propeller prop board for about a week now with excellent success. I have been working on and downloading various objects from propeller tool with no problems, and everything has been running quite well. Tonight, I added some code to one of my objects, and attempted to download it to the propeller, but was greeted with the following error - "Write Failure on COM4". There is no additional error message, and I do not see an error log anywhere. Upon removing my new code, I was again able to download my objects, and everything ran fine. My program is not terribly large (propeller tool shows 1059 longs of program, 299 longs of variable and 6830 longs of stack/free space), so I cant imagine it is the size of the code.
I tested a variety of different situations including:
Rebooting the propeller (Reset switch and power)
Rebooting the PC
Switching to a different USB port (I had been running off a USB hub, now directly to the machine)
Removing all external propeller connections (I had an LCD, XBee and some One Wire devices attached)
Changing the input voltage to the prop board (had been 7.5V, switched to 6 and 9)
None of these changes had any effect on behavior.
So, I started playing with the code. One I get to a certain number of lines of codes, I get this error. If I add something as simple as the below code to any object, I start getting the write failure. Removing the code them allows to objects to be downloaded again.
t1 := t1
Has anyone seen this before? I am not done with my program, and hope I have not run into some size or LOC limit. Is there any way to get additional information on what the write failure is?