I seem to be having a very similar problem.
I'm using a nano 18 on Vista Business edition (32-bit). To program, i'm using the nano usb to serial adapter. The IDE is 5.3.1.5. The settings on the usb to serial adapter are set exactly as specified in the corresponding documentation here:
http://www.basicmicro.com/downloads/dat ... /B0083.pdf The driver i'm using for it is version 2.04.06.
When i try to program it, it seems to do fine getting to 100% then goes back to zero (i'm assuming on a verification step) and then says: error verifying:000004. If i change the code, the same error comes up, except that the number on the end changes.
I tested reading from the nano18 and am not getting anything back, so i assume it's not finishing the programming.
Here's the test code i'm trying:
main:
SEROUT s_out, I4800, ["Hello World"]
Pause 1000
goto main