Following my previous post on How to Setup a PIC Microcontroller Development Environment in Ubuntu 11.10 Oneiric Ocelot With Piklab + SDCC, now I'll show you how to use the Tiny PIC Bootloader with Piklab.
Piklab already has programming interfaces for various programmers, including the Tiny Bootloader. To configure it you must go to "Settings > Configure Programmers... > Tiny Bootloader" and then set your serial port and it's specific settings. In my case, since I use a USB <->Serial TTL Cable (see my previous post on how to make a Low Cost (1,85€) USB to RS232 LVTTL Serial Cable), I configure it with the following data:
- Port Selection: /dev/ttyUSB0
- Specific > Port Speed: 19200
- Specific > Timeout: 300
- Specific > No of Retries: 5
Get the flash player here: http://www.adobe.com/flashplayer
After inserting all the correct configurations for your serial connection, Click "Apply" and you're ready to go. To program you just have to go to "Programmer > Program". Do not forget to click the Reset button of your development board to reset the PIC and initiate bootloader when you want to program it.
Easy, right? Yes, but it doesn't always work. :( I had it working when I used Ubuntu 11.04 Natty Narwhal and some version of Piklab that I can't remember now but since I upgraded to Oneiric Ocelot and a new version of Piklab, the Tiny Bootloader programming interface stopped working. However, there is another easy way to use Tiny Bootloader with Piklab.