So, in this context, a bootloader must be able to :
- program my chips through the USB-to-serial converter
- work under Linux (plaftorm independent)
- easily integrate within the SirBot Project (if possible)
I did not try further and switch to Tiny Bootloader. This bootloader seems to work fine with 16F88 and with Jal. More,a python script, pytbl, is available to use it: this is a great opportunity to use it within SirBot. So, let’s go… I’ve first flashed the 20MHz/115200bds hex file with my programmer. Using wine, I’m able to detect my 16F88 but… still unable to write the flash (“Could not write… Error…”). However, it works like a charm with a “real” serial port (%*$%%µ! converter). During my Bloader/Screamer exploration, it was mentioned that the baudrate configuration (9600, …, 115200) was useful when a usb-to-serial converter was involved… Heh ? Sounds interesting ! I thought: “if you took that asm file, modify it to use 20MHz xtal and 9600bds, compile the whole and put it in your 16F88, there will be a magical moment, for sure…”. And I did it… But no magical moment occured, still the same error. Ah, yes, I can remember the magical moment. It was when I compiled the asm file with MPLAB (crap, gpasm failed). It said “The file path [to the asm file] mustn’t be longer than 62 characters”…
Then I had the great idea: using VirtualBox, I’m able to run XP under Linux, attach my usb-to-serial converter, then launch TinyBootloader, then program my 16F88, then have my magical moment…
Now, what about pytbl ? It can detect the chip, but when it programs it (without errors), nothing is working anymore, even the bootloader… I’ve contacted the authort, so more on this later (I hope).


No comments
Comments feed for this article
Trackback link: http://sirloon.net/using-a-bootloader-with-a-16f88-almost-under-linux/trackback