A Universal PIC18 Bootloader for PDS


+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 15 of 45

Thread: A Universal PIC18 Bootloader for PDS1332 days old

  1. #1
    Senior Member AlbertoFS's Avatar
    Join Date
    Apr 2005
    Posts
    689
    Thumbs Up
    Received: 92
    Given: 2
    Total Downloaded
    4.62 GB

    3 Not allowed!

    Default A Universal PIC18 Bootloader for PDS

    Hi John,
    I wrote an article for the "Universal PIC18 Bootloader for PDS".
    Located in "Projects/Loaders/A Universal PIC18 Bootloader for PDS"
    I have worked many months on this project because I am not a specialist, I am pleased to be completed at last.

    John, thank you to publish it.

    I hope you can use it for many PIC®'s.
    For any issues or clarification, please use this thread.
    I think it is very important to read very carefully the article published before doing anything.
    Alberto
    73's de Alberto ea3agv

  2. Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  3. #2
    Prolific Poster pic-ignorant's Avatar
    Join Date
    Oct 2007
    Posts
    2,942
    Thumbs Up
    Received: 25
    Given: 31
    Total Downloaded
    926.61 MB

    0 Not allowed!

    Default Re: A Universal PIC18 Bootloader for PDS

    Good job Alberto! It looks like a lot of work went into that!

    I couldn't see the published article in the wiki.

    Regards
    John

  4. Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  5. #3
    Prolific Poster John Drew's Avatar
    Join Date
    Feb 2002
    Posts
    2,887
    Thumbs Up
    Received: 91
    Given: 34
    Total Downloaded
    4.60 GB

    0 Not allowed!

    Default Re: A Universal PIC18 Bootloader for PDS

    A lot of work has gone into that project Alberto. Thank you.

    @John: Time differences. It's published now so will be visible. Now to get ready for the day

    John in Oz

  6. Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  7. #4
    Senior Member AlbertoFS's Avatar
    Join Date
    Apr 2005
    Posts
    689
    Thumbs Up
    Received: 92
    Given: 2
    Total Downloaded
    4.62 GB

    0 Not allowed!

    Default Re: A Universal PIC18 Bootloader for PDS

    Thank you John,
    I would like to receive advice/Informations to start studying the PIC18FJ series.
    Enjoy to use this bootloader.
    Alberto
    Last edited by AlbertoFS; 12th October 2016 at 07:41.
    73's de Alberto ea3agv

  8. Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  9. #5
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    2,354
    Thumbs Up
    Received: 83
    Given: 183
    Total Downloaded
    5.30 GB

    0 Not allowed!

    Default Re: A Universal PIC18 Bootloader for PDS

    Sorry if this is a dumb question but I've never used a bootloader, in what way is your bootloader different than the one that is provided with the compiler package?
    George.

  10. Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  11. #6
    Senior Member AlbertoFS's Avatar
    Join Date
    Apr 2005
    Posts
    689
    Thumbs Up
    Received: 92
    Given: 2
    Total Downloaded
    4.62 GB

    1 Not allowed!

    Default Re: A Universal PIC18 Bootloader for PDS

    Hi George,
    Normally a regular bootloader must use a specialized computer application program to decode the hex file and send the separate data to record the PIC. As all the hard work is done by the computer, the PIC firmware usually occupies less memory.
    When there is a new PIC, the computer application must be updated or you must generate a new configuration.
    If you have experience in using specialized programs to generate the ASM files, then it is the best because the firmware is smaller.
    It is having been better to use the AN1310 Microchip application to create a PDS bootloader, but I could not find the protocol. And I did not understand the "C" firmware I have seen in the Microchip web.

    My bootloader decodes the HEX file, rebuilt all data to be written and does not need a specialized PC program neither the MPLAB. What makes the firmware code much complicated and has more lines of code: but not depend on an external specialized program, only a terminal program (either good in principle) to send the ASCII bytes of the .hex file. You can compile all PIC18 used in the PDS compiler. If a new PIC18 is incorporated into the PDS compiler, simply configure the new PIC in the code. It could generate a new bootloader firmware without relying on others.
    For maintenance/modification of the firmware, you can use the PDS compiler only.
    My bootloader is not better, it is another bootloader.

    I could rewrite my bootloader if someone explain to me the AN1310 protocol.
    I think my article is not so clear, but it could be too long.
    Anyway I learned a lot!
    Sorry for the bad English.

    Alberto
    Last edited by AlbertoFS; 12th October 2016 at 17:30.
    73's de Alberto ea3agv

  12. Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  13. #7
    wirecut
    Guest wirecut's Avatar

    0 Not allowed!

    Default Re: A Universal PIC18 Bootloader for PDS

    Hi Alberto,

    Really a very very good work.

    Thanks for your effort.

    Ciao

    Leonardo

  14. Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  15. #8
    Senior Member AlbertoFS's Avatar
    Join Date
    Apr 2005
    Posts
    689
    Thumbs Up
    Received: 92
    Given: 2
    Total Downloaded
    4.62 GB

    1 Not allowed!

    Default Re: A Universal PIC18 Bootloader for PDS

    Thanks Leo,
    I am working with a new version that can write the PICs upper than 64Kb ROM. (not too difficult) This version will be available in 2 weeks more or less.
    Regards
    Alberto
    73's de Alberto ea3agv

  16. Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  17. #9
    Senior Member AlbertoFS's Avatar
    Join Date
    Apr 2005
    Posts
    689
    Thumbs Up
    Received: 92
    Given: 2
    Total Downloaded
    4.62 GB

    2 Not allowed!

    Default Re: A Universal PIC18 Bootloader for PDS

    New version 2.0 of the Universal PIC18 Bootloader for PDS

    The bootloader can write the ROM up to 128KB and it is more efficient.
    The bootloader can run with FOSC = 80 Mhz for the PIC18FxxK20 series.
    See details in the article.
    Enjoy it!
    Alberto
    73's de Alberto ea3agv

  18. Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  19. #10
    Prolific Poster charliecoultas's Avatar
    Join Date
    Sep 2010
    Posts
    1,415
    Thumbs Up
    Received: 48
    Given: 40
    Total Downloaded
    3.45 GB

    0 Not allowed!

    Default Re: A Universal PIC18 Bootloader for PDS

    Well done and thank you Alberto, you've obviously put a lot of work into this.

    Charlie

  20. Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  21. #11
    Senior Member AlbertoFS's Avatar
    Join Date
    Apr 2005
    Posts
    689
    Thumbs Up
    Received: 92
    Given: 2
    Total Downloaded
    4.62 GB

    1 Not allowed!

    Default Re: A Universal PIC18 Bootloader for PDS

    I am considering running the Bootloader with the Internal Oscillator by request of a PDS user.
    After I had some problem I've got it running.
    As there are many different PICs I have to do many tests.
    I'll have them informed.
    Alberto
    73's de Alberto ea3agv

  22. Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  23. #12
    Senior Member AlbertoFS's Avatar
    Join Date
    Apr 2005
    Posts
    689
    Thumbs Up
    Received: 92
    Given: 2
    Total Downloaded
    4.62 GB

    0 Not allowed!

    Default Re: A Universal PIC18 Bootloader for PDS

    New version 2.1 of the Universal PIC18 Bootloader for PDS

    - The code to use the bootloader with the internal oscillator has been added.
    See details in the article.
    Enjoy it!
    Alberto
    73's de Alberto ea3agv

  24. Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  25. #13
    Senior Member AlbertoFS's Avatar
    Join Date
    Apr 2005
    Posts
    689
    Thumbs Up
    Received: 92
    Given: 2
    Total Downloaded
    4.62 GB

    0 Not allowed!

    Default Re: A Universal PIC18 Bootloader for PDS

    I've looked a bit to place the bootloader in the lower part of the flash memory.
    The only drawback is reducing the code to 2048 bytes. (protected boot block)
    This is quite easy. Could this be of any interest?

    Alberto
    73's de Alberto ea3agv

  26. Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  27. #14
    Senior Member AlbertoFS's Avatar
    Join Date
    Apr 2005
    Posts
    689
    Thumbs Up
    Received: 92
    Given: 2
    Total Downloaded
    4.62 GB

    1 Not allowed!

    Default Re: A Universal PIC18 Bootloader for PDS

    I am still working sometimes with difficulty.

    Code generated by the PDS with "Declare PROTON_START_ADDRESS = 2048":
    It is quite difficult to solve the hashed code to write the ROM memory. There are several Write Blocks involved depending on the PIC.

    proton#code#start
    org 0X0800
    goto proton#main#start
    org 0X0808
    goto Interrupt_Handler_In
    org 0X0818
    goto ISR_Low
    [email protected]

    Then the HEX file is:
    :020000040000FA
    :0408000026EF08F0E7
    :040808005CEF08F0A9
    :080818002FEF08F0036A0C6EDB
    :100820000D6A00960350D8B40086040E026E0D388F
    :1008300005D80D5003D80C3801D80C500F0BF60F0B


    I think it would be better generate this code:
    There is not hashed code, this solution could be better to write the ROM.

    proton#code#start
    org 0X0800
    goto proton#main#start
    nop
    nop
    org 0X0808
    goto Interrupt_Handler_In
    nop
    nop
    nop
    nop
    nop
    nop
    org 0X0818
    goto ISR_Low
    [email protected]

    Then the HEX file is:
    :020000040000FA
    :1008000026EF08F0000000005CEF08F00000000098
    :1008100000000000000000002FEF08F0036A0C6EDB
    :100820000D6A00960350D8B40086040E026E0D388F
    :1008300005D80D5003D80C3801D80C500F0BF60F0B

    This is only a wish for a change in the compiler.
    I have been able to solve it but with several lines of code. I do not know if I could fail in the future.

    The new bootloader version 3.0 written on the bottom of the ROM is running and could be published in 2 weeks.
    Alberto
    73's de Alberto ea3agv

  28. Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  29. #15
    Senior Member AlbertoFS's Avatar
    Join Date
    Apr 2005
    Posts
    689
    Thumbs Up
    Received: 92
    Given: 2
    Total Downloaded
    4.62 GB

    2 Not allowed!

    Default Re: A Universal PIC18 Bootloader for PDS

    New version 4.0 of the Universal PIC18 Bootloader for PDS

    - I wrote a new bootloader, using the PDS only, for the Low Side of the flash Memory (bottom).
    - Two options available only.
    - The Boot Block could be write/Code protected.
    - I have added two password systems; RANDOM and unique to choose from. (1000 random passwords available, or more)
    See details in the article.
    Enjoy it!
    Alberto
    Last edited by AlbertoFS; 7th December 2016 at 15:34.
    73's de Alberto ea3agv

  30. Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. AlbertoFS has just uploaded Universal PIC18 Bootloader for PDS!
    By AlbertoFS in forum Proton Users File Server
    Replies: 1
    Last Post: 26th December 2017, 11:53
  2. AlbertoFS has just uploaded A Universal PIC18 Bootloader for PDS!
    By AlbertoFS in forum Proton Users File Server
    Replies: 0
    Last Post: 11th October 2016, 18:20
  3. PDS Bootloader:is max232 really necessary?
    By donomark in forum Proton Plus Compiler v3
    Replies: 3
    Last Post: 24th February 2005, 01:09
  4. PDS program delay with Bootloader
    By davroski in forum Mecanique - IDE
    Replies: 4
    Last Post: 18th December 2004, 02:42
  5. PDS program delay with Bootloader
    By davroski in forum Proton Plus Compiler v3
    Replies: 4
    Last Post: 18th December 2004, 02:42

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts