Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 05, 2016, 05:35:11 17:35


Login with username, password and session length


Pages: [1]
Print
Author Topic: PIC bootloader with Linux software?  (Read 2489 times)
0 Members and 1 Guest are viewing this topic.
Cain
Junior Member
**
Offline Offline

Posts: 90

Thank You
-Given: 102
-Receive: 106


« on: May 28, 2013, 07:30:04 19:30 »

Anyone recommending a good bootloader for PIC16F/PIC18F with working Linux software?

I've been testing the Tiny Bootloader and it works great to download new HEX-files on Windows but trying to find a working Linux software have been proving to be hard. Piklab supports Tiny Bootloader but have problems compiling/running on headless machines (relies on KDE) and when testing the Windows build of piklab-prog it's slow as hell, takes ~30 second before it finds the PIC and starts downloading anything...

Are there anything that works as good as OptiBoot and avrdude for the PIC?
« Last Edit: May 28, 2013, 07:40:36 19:40 by Cain » Logged
Gallymimu
Hero Member
*****
Offline Offline

Posts: 579

Thank You
-Given: 101
-Receive: 151


« Reply #1 on: May 29, 2013, 04:57:53 16:57 »

Did you see these lists?

Supposedly these have linux host programs:
http://www.microchip.com/forums/m424874-print.aspx

the next one claims to have a shell script for bootloading but this is an HID bootloader (USB)
http://elco.crsndoo.com/wordpress/2011/03/microchip-hid-bootloader-from-linux/

Here is one for tiny bootloader written in python if you haven't tried it yet.
http://sourceforge.net/projects/tinybldlin/

Logged
Sideshow Bob
Senior Member
****
Online Online

Posts: 457

Thank You
-Given: 160
-Receive: 494



« Reply #2 on: May 29, 2013, 07:35:25 19:35 »

Would it not be more easy to get a PICKIT or clone. And then use MPLABX that now are supported by Linux. As this solutions also offer some debugging. I think MPLABX now support PICKIT2. And PICKIT2 clones are quite cheap now. PICKIT2 do not support all PICs. But still the support list is more than adequate
Logged

I really am ruggedly handsome, aren't I?
Gallymimu
Hero Member
*****
Offline Offline

Posts: 579

Thank You
-Given: 101
-Receive: 151


« Reply #3 on: May 29, 2013, 08:32:22 20:32 »

I assumed he actually needed a bootloader for an application, but otherwise Bob you are quite right, much easier!
Logged
Cain
Junior Member
**
Offline Offline

Posts: 90

Thank You
-Given: 102
-Receive: 106


« Reply #4 on: May 30, 2013, 07:00:12 07:00 »

Thanks for the input but as mentioned above I need to be able to flash the PIC via serialports on a headless machine (i.e CLI only) running Debian. I have PICKit2 and 3 but doesn't solve this problem and MPLABX requires X to run.

I do this with AVR's using avrdude and it works great and was hoping to find a simlilar working "picdude" sofware. Preferable in plain C since flash space is very limited so trying to avoid heavy packages like Phyton/Perl etc.

Last night I found C code for a CLI program (written by Joseph Heenan) but unfortunately it does not work! It compiles OK on Debian (armel) but fails to detect the PIC18F2620 running Tiny Bootloader, same HW works in Windows when I try it there using tinybldWin.exe.

Anyone have this working on Linux?

http://code.google.com/p/pic-bootloaders/downloads/list

Logged
Sideshow Bob
Senior Member
****
Online Online

Posts: 457

Thank You
-Given: 160
-Receive: 494



« Reply #5 on: May 30, 2013, 09:48:55 09:48 »

I am not a linux person. But I think Microchip have made a command line tool to run under Linux for both PICKIT 2 and PICKIT 3. Just google "pickit 2 command line" or "pickit 3 command line"
Logged

I really am ruggedly handsome, aren't I?
Gallymimu
Hero Member
*****
Offline Offline

Posts: 579

Thank You
-Given: 101
-Receive: 151


« Reply #6 on: May 30, 2013, 03:35:13 15:35 »

Thanks for the input but as mentioned above I need to be able to flash the PIC via serialports on a headless machine (i.e CLI only) running Debian. I have PICKit2 and 3 but doesn't solve this problem and MPLABX requires X to run.

I do this with AVR's using avrdude and it works great and was hoping to find a simlilar working "picdude" sofware. Preferable in plain C since flash space is very limited so trying to avoid heavy packages like Phyton/Perl etc.

Last night I found C code for a CLI program (written by Joseph Heenan) but unfortunately it does not work! It compiles OK on Debian (armel) but fails to detect the PIC18F2620 running Tiny Bootloader, same HW works in Windows when I try it there using tinybldWin.exe.

Anyone have this working on Linux?

http://code.google.com/p/pic-bootloaders/downloads/list

Anyone recommending a good bootloader for PIC16F/PIC18F with working Linux software?

I've been testing the Tiny Bootloader and it works great to download new HEX-files on Windows but trying to find a working Linux software have been proving to be hard. Piklab supports Tiny Bootloader but have problems compiling/running on headless machines (relies on KDE) and when testing the Windows build of piklab-prog it's slow as hell, takes ~30 second before it finds the PIC and starts downloading anything...

Are there anything that works as good as OptiBoot and avrdude for the PIC?



Where exactly did you mention needing to use the serial port in your original post?

Kinda frustrating to offer help when you don't even ask the right question!

Good luck.
Logged
Cain
Junior Member
**
Offline Offline

Posts: 90

Thank You
-Given: 102
-Receive: 106


« Reply #7 on: May 31, 2013, 07:00:59 19:00 »

Where exactly did you mention needing to use the serial port in your original post?

My bad! As you spotted I did not specifiy serial port in my first post but we all make misstakes, sorry Wink

Anyway, thanks for the input so far to both of you but the PICkit 2/3 is not the solution! After some more testing the PIC Tiny Bootloader work nicely on Windows all I need to find is some software that runs equally well on Linux (Debian).

Wished I had the C skill to fix whats broken in Joseph Heenan's program...

« Last Edit: May 31, 2013, 07:10:14 19:10 by Cain » Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC