Open source PBP bootloader


Closed Thread
Results 1 to 40 of 41

Hybrid View

  1. #1
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default Re: Open source PBP bootloader

    Thanks Walter, any help is great!

    Question is does data_packet want to be 5 bytes with data being it's own array, or do we want to keep it 1 big array (261 bytes)?
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  2. #2
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default Re: Open source PBP bootloader

    Now that I am at work, I have read my PBP bible. I see we are limited to 96 bytes for an array in 16F devices, maybe less depending on the device. So I need some help here. How do we deal with this limitation?

    The most elegant thing that comes to mind is if at compile time we can determine the array size for the device we want to use, store this as a constant in the BL, then the PC side can query this value and adjust the packets accordingly.

    Short of that, I guess we either limit the max size to the biggest available in the smallest package, or have many BL's for the different PIC's. Now this is not an issue for the 18f's. Then how do we change the packet size in the GUI? - walter does this fall within the limited changes you can make?

    I assume the array size will only somewhat alter our overall loading speed. I don't feel like this will be a big issue, after all, we have to transmit ALL of the data at some point. A smaller array will just have us checking the packet header more often. - Will we really care? Must we be able to D/L the program in under 1 sec instead of 2?

    Also, I don't think it makes a lot of difference if DATA_PACKET is part of the DATA array.

    Code:
    ;         {STX}{STX}{DATA}{CHKSUM}{ETX}
    ;                   /    \
    ;           _______/      \________________________
    ;          /                                       \
    ;         {COMMAND}{DLEN}{ADDRL}{ADDRH}{ADDRU}{DATA}...
    Last edited by cncmachineguy; - 2nd March 2011 at 13:42. Reason: Added current packet format
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

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