[PicForth] serial-monitor.fs bug!?

David McNab david at rebirthing.co.nz
Wed Oct 27 01:00:41 CEST 2004


Hi,

I'm now using a PIC16F873A, and have tried out the serial-monitor.fs 
program.

Using it directly via minicom, I tried out its program flash writing 
(via the 'F' command).

The 'program flash read' ('f') command seems to work ok - it returns 
exactly what's in flash memory.

But the 'F' command has unpredictable and incorrect results.

For instance, trying a write to 0x0010:

F00101234!>f0010!0000>
   (ie, reads back 0000 instead of 1234 from address 0010)

F00031234!>f0003!1234>
   (seems to succeed, but:)

f0000!1234>
   (huh!? addr 0000 has been changed to 1234)
f0001!3FFF>
   (eh? the 1234 is now written to 0000)

I'll try a couple of small standalone programs which use picflash.fs and 
read-flash and write-flash directly, and post my results soon)

Any ideas?

-- 
Cheers
David


More information about the PicForth mailing list