arduino-as-pic18f-programmer icon indicating copy to clipboard operation
arduino-as-pic18f-programmer copied to clipboard

Validating is failing

Open Unikat2000 opened this issue 2 years ago • 0 comments

Hi,

I' m using your script cause the orginal version from Kirill Kulakov seems to have a size limitation regarding hex files. My knowledge to linux is limited so I choose to use WSL with Ubuntu to execute your script. I had to made 2 changes to make it run:

#!/usr/bin/python changed into #!/usr/bin/python3 and PORT = '/dev/ttyACM0' changed into PORT = '/dev/ttyS3'

After that I was able to start the programming....

test@PowerPC:~/pic$ ./piprog.py -i fw.hex Connecting to arduino... Success Connecting to the mcu... Your MCU: 18f2550 Erasing chip............ Success Flash write @ 0x20memory... Flash write @ 0x40

but when comes to validating it runs into an error

Flash write @ 0x10000 Success EEPROM write @ 0x0...... Success Verify flash memory... Verifying addr 0x0... Traceback (most recent call last): File "/home/test/pic/./piprog.py", line 388, in main() File "/home/test/pic/./piprog.py", line 242, in main if c.decode() != "R": AttributeError: 'list' object has no attribute 'decode'

I not sure but it might have something to do with the python serial bug... Any idea how to fix it?

And I used sudo apt install python3-serial cause the package python-serial isn't available anymore...

And python3 version is still 3.10.6 although I have installed 3.6.

Unikat2000 avatar Jun 03 '23 18:06 Unikat2000