New Serial (UART) Bootloader for Microchip PIC10/16/18 and PIC32

Page: 12 > Showing page 1 of 2
Author
edorul
New Member
  • Total Posts : 15
  • Reward points : 0
  • Joined: 2013/04/16 03:42:54
  • Location: 0
  • Status: offline
2013/04/16 11:55:16 (permalink)
3 (1)

New Serial (UART) Bootloader for Microchip PIC10/16/18 and PIC32

Hello,
 
I've made a new serial bootloader for Microchip PIC devices named "Tiny PIC Bootloader +" (http://sourceforge.net/projects/tinypicbootload/)
 
Here are some informations about it:
 
Where does it come from?
This Bootloader is based on "Tiny PIC Bootloader" made by Claudiu Chiculita.
PC software is based on "Tiny Pic Bootloader for GNU/Linux" writen in python by Ferezvi.
 
What can it do?
It can program:
- PIC10
- PIC16
- PIC18
- PIC32
 
And this:
- with light modifications to the Bootloader firmware for new devices
- without modifying your application source code or using a special linker script
- via GUI or command line
- with automatic Reset on RTS serial pin
- with autodetect of the right COM port and baud rate (if automatic Reset on RTS serial pin is enabled)
- with HEX code verification to avoid to send a program from a different device family in your PIC (for example: prevent to program a PIC16 ".hex" in a PIC18 device)
- with debug messages capabilities
 
What's next?
It's planned to add:
- PIC12
- PIC24
- dsPIC
- and a better documentation
 
Please give it a try and send me some feedbacks Smile
 
Best regards,
Edorul
#1

26 Replies Related Threads

    sahamzah
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2013/04/17 21:07:35
    • Location: 0
    • Status: offline
    Re:New Serial (UART) Bootloader for Microchip PIC10/16/18 and PIC32 2013/04/20 01:35:20 (permalink)
    0
    Hi Edorul,
     
    How to use the command line option? 
    i.e. Tinybootloader test.hex com1 
    tq
    #2
    edorul
    New Member
    • Total Posts : 15
    • Reward points : 0
    • Joined: 2013/04/16 03:42:54
    • Location: 0
    • Status: offline
    Re:New Serial (UART) Bootloader for Microchip PIC10/16/18 and PIC32 2013/04/20 02:26:38 (permalink)
    0
    Hello Sahamzah,
     
    There is only one option when using the command line: the name of the ".hex" file.
    So "Tiny PIC Bootload +" should be previously configured with the GUI (COM port, baud rate, etc) but only once as the options are stored in the "config.ini" file.
     
    So use of command line option is:
    TinyPicBootloader+.exe "C:\folder 1\folder 2\folder etc\name of the hex file.hex"
     
    If you really need more options in the command line, I can try to add them.
     
    Best regards,
    Edorul
    #3
    sahamzah
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2013/04/17 21:07:35
    • Location: 0
    • Status: offline
    Re:New Serial (UART) Bootloader for Microchip PIC10/16/18 and PIC32 2013/04/20 05:13:35 (permalink)
    0
    Hello Edorul,
    Thanks and can you add options  like  d:\TinyPicBootloader  <file.hex> <com1> <baudrate9600> 
     
    Saiful 
     
     
    #4
    edorul
    New Member
    • Total Posts : 15
    • Reward points : 0
    • Joined: 2013/04/16 03:42:54
    • Location: 0
    • Status: offline
    Re:New Serial (UART) Bootloader for Microchip PIC10/16/18 and PIC32 2013/04/21 01:31:11 (permalink)
    0
    Hello Saiful,
     
    I've added COM and Baud Rate to command line options:
    tinypicbbotloader+.exe "c:\folder 1\folder etc\file name.hex" [COMx [BaudRate]]
     
    Examples:
    tinypicbootloader+.exe "c:\test file.hex" COM8 9600                 
    tinypicbootloader+.exe "c:\test file.hex" com8                 
    tinypicbootloader+.exe "c:\test file.hex"
     
    You can get the new version here:
    http://sourceforge.net/p/...uests/thread/b35c1731/
    Can you tell me if it works as expected?
     
    Best regards,
    Edorul
    post edited by edorul - 2013/04/21 01:33:41
    #5
    sahamzah
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2013/04/17 21:07:35
    • Location: 0
    • Status: offline
    Re:New Serial (UART) Bootloader for Microchip PIC10/16/18 and PIC32 2013/04/21 18:07:04 (permalink)
    0
    Hi Edorul,
    Thanks for the new code. I will test it and feedback to you the outcome.
     
    Saiful
     
    #6
    edorul
    New Member
    • Total Posts : 15
    • Reward points : 0
    • Joined: 2013/04/16 03:42:54
    • Location: 0
    • Status: offline
    Re:New Serial (UART) Bootloader for Microchip PIC10/16/18 and PIC32 2013/04/23 02:56:24 (permalink)
    0
    Hello,
     
    For those who want to try "Tiny PIC Bootloader +" but don't know where to start, there is now a "Quickstart guide" in the web site:http://tinypicbootload.sourceforge.net/quickstart.html
     
    Best regards,
    Edorul
     
    #7
    sahamzah
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2013/04/17 21:07:35
    • Location: 0
    • Status: offline
    Re:New Serial (UART) Bootloader for Microchip PIC10/16/18 and PIC32 2013/05/02 00:10:09 (permalink)
    0
    Hi,
    I already tested tinybooloader+ with the new command line options but with an error that PIC that I used (16F88) was not supported.
     
     
    #8
    edorul
    New Member
    • Total Posts : 15
    • Reward points : 0
    • Joined: 2013/04/16 03:42:54
    • Location: 0
    • Status: offline
    Re:New Serial (UART) Bootloader for Microchip PIC10/16/18 and PIC32 2013/05/02 05:30:27 (permalink)
    0
    Hello Saiful,
     
    I'm sorry for the inconvenience but PIC16F88 wasn't supported because it seems it uses a different block size for flash write and I don't have this device to make some tests.
     
    So, I've attached two versions of TinyBootloader+ to this post. The (A) version uses a special write function for PIC16F88 and the (B) version use the general PIC16F function (warning: do not use another "piccodes.ini" than those in archive files). Can you try them, and tell me which version works (or both, or none) ???
     
    Best regards,
    Edorul
    #9
    sahamzah
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2013/04/17 21:07:35
    • Location: 0
    • Status: offline
    Re:New Serial (UART) Bootloader for Microchip PIC10/16/18 and PIC32 2013/05/06 04:25:00 (permalink)
    0
    Dear Edorul,
    The A version: It can recognize PIC16F88 but the application  program didn't run
    The B version: It can recognize PIC16F88 only once and the application program didn't run.
     
    I think the original version was working fine (can recognize PIC16F88 and the application program running) but without the additional command line options.
     
    Saiful
     
    #10
    edorul
    New Member
    • Total Posts : 15
    • Reward points : 0
    • Joined: 2013/04/16 03:42:54
    • Location: 0
    • Status: offline
    Re:New Serial (UART) Bootloader for Microchip PIC10/16/18 and PIC32 2013/05/06 11:53:15 (permalink)
    0
    Hello Saiful,
     
    These are bad news... But, may be there is a last chance to make it works with the new version attached to this post (as previously do not use another "piccodes.ini" than the one in the archive).
     
    What do you mean by "the original version was working fine"? Did you mean the original "Tiny PIC Bootloader" from Claudiu Chiculita or the version 0.6.3 of "Tiny PIC Bootloader+"? In fact, "Tiny PIC Bootloader+" was never able to program PIC16F88 :-(
     
    Best regards,
    Edorul
     
    PS: do you use "notinybld16F88.asm" or "tinybld16F88.asm" firmware? 
    post edited by edorul - 2013/05/06 12:28:31
    #11
    sahamzah
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2013/04/17 21:07:35
    • Location: 0
    • Status: offline
    Re:New Serial (UART) Bootloader for Microchip PIC10/16/18 and PIC32 2013/05/06 16:52:52 (permalink)
    0
    Hello Edorul,
    I will try the latest version.
    What I meant with the original code is from your first posting (http://sourceforge.net/projects/tinypicbootload/) which works perfect with PIC16F88
     
    Saiful
     
     
    #12
    sahamzah
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2013/04/17 21:07:35
    • Location: 0
    • Status: offline
    Re:New Serial (UART) Bootloader for Microchip PIC10/16/18 and PIC32 2013/05/06 21:03:49 (permalink)
    0
    Dear Edorul,
     
    The latest version  is working successfully with 16F88, tq :).
    Only when I called the command line via another software I got this message error : Microsoft.net Framework. Unhandled exception has occurred in your application ...
     
    Do you think what might have caused the problem? tq
     
    Saiful
     
    #13
    edorul
    New Member
    • Total Posts : 15
    • Reward points : 0
    • Joined: 2013/04/16 03:42:54
    • Location: 0
    • Status: offline
    Re:New Serial (UART) Bootloader for Microchip PIC10/16/18 and PIC32 2013/05/07 01:32:04 (permalink)
    0
    Hello Saiful,
     
    I'm glad that PIC16F88 works correctly with the lastest version.
    Which firmware do you use: "notinybld16F88.asm" or "tinybld16F88.asm"?  
     
    For the error message you get, I can't help you for the moment. 
    Can you tell me which is the software you use? I hope it's freely downloadable so I could make some tests... In this case, can you give me the settings used in this soft to launch TinyBootloader+?
     
    Best regards,
    Edorul
    #14
    sahamzah
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2013/04/17 21:07:35
    • Location: 0
    • Status: offline
    Re:New Serial (UART) Bootloader for Microchip PIC10/16/18 and PIC32 2013/05/07 01:37:51 (permalink)
    0
    Hello Edorul,
    I just use the hex file provided in the link.
    For the software, I use Flowcode from MatrixMultimedia.
     
    Saiful
     
    #15
    edorul
    New Member
    • Total Posts : 15
    • Reward points : 0
    • Joined: 2013/04/16 03:42:54
    • Location: 0
    • Status: offline
    Re:New Serial (UART) Bootloader for Microchip PIC10/16/18 and PIC32 2013/05/08 04:10:14 (permalink)
    0
    Hello Saiful,
     
    I've downloaded the free version of "Flowcode", so I could make some tests.
    TinyPicBootloader+ is now working with it. You can download the latest version here:
    http://sourceforge.net/projects/tinypicbootload/files/
     
    Your problem was helpfull because it could have happen with other softwares. Thanks for the bug report!
     
    Best regards,
    Edorul
    #16
    sahamzah
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2013/04/17 21:07:35
    • Location: 0
    • Status: offline
    Re:New Serial (UART) Bootloader for Microchip PIC10/16/18 and PIC32 2013/05/09 02:44:43 (permalink)
    0
    Hi Edorul,
    Good to hear that you managed to run Tinybootloader+ with Flowcode but sadly said I still could not manage to run it successfully. Is it possible to see how you set the parameters in Build -> Compiler options? Alternatively, you can export  and send the compiler option settings ( *.fcs) to me via email.
     
    tq
     
    Saiful
     
    #17
    edorul
    New Member
    • Total Posts : 15
    • Reward points : 0
    • Joined: 2013/04/16 03:42:54
    • Location: 0
    • Status: offline
    Re:New Serial (UART) Bootloader for Microchip PIC10/16/18 and PIC32 2013/05/09 07:53:42 (permalink)
    0
    Hello Saiful,
     
    You've really have bad luck with my software :-s
     
    I've attached to this post a screenshot and the ".fsc" file. I hope it will work with your version of Flowcode.
     
    Best regards,
    Edorul
    #18
    sahamzah
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2013/04/17 21:07:35
    • Location: 0
    • Status: offline
    Re:New Serial (UART) Bootloader for Microchip PIC10/16/18 and PIC32 2013/05/14 18:56:20 (permalink)
    0
    Thanks Edorul.
    Now it is working fine :)
     
    Saiful
     
    #19
    edorul
    New Member
    • Total Posts : 15
    • Reward points : 0
    • Joined: 2013/04/16 03:42:54
    • Location: 0
    • Status: offline
    Re:New Serial (UART) Bootloader for Microchip PIC10/16/18 and PIC32 2013/05/15 12:18:01 (permalink)
    0
    Hello Saiful,
     
    These are good news :-)
    Thanks for the feedback!
     
    Best regards,
    Edorul
    #20
    Page: 12 > Showing page 1 of 2
    Jump to:
    © 2017 APG vNext Commercial Version 4.5