USB Bootloader.


Closed Thread
Results 1 to 23 of 23

Thread: USB Bootloader.

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Posts
    448

    Default

    Success at last!

    Walter, I have to thank you for this.

    BTW, the 2 files are not quite the same; the names do look identical, but then I noticed the first one was for 18F4450 and the second for 18F4550. In fact that gave me a clue; my device was a 18F4455, and I was using the firmware for 18F4550. Works, but gives the error I kept referring to.

    Swapping in an 18F4550 completely solved all problems.

    So, on to the next task. Once I figure out how to generate a hex file for the 18F4455, I'd be a truly happy camper.

    Will update this thread soon as I do the above!

    Thanks again,

    Anand

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405

    Default

    Hi Anand,

    See if the attached works on your 18F4455. I've include default config settings, and a note
    on switching between load/run modes, interrupts, etc in the text file.
    Attached Files Attached Files
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    Join Date
    Oct 2004
    Posts
    448

    Default

    Bingo!

    Bruce, it worked flawlessly.

    How exactly did you generate it?

    Thanks a lot, that was the last obstacle that you removed!

    Anand

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405

    Default

    Hi Anand,

    I compiled the original loader for your 18F4455. If you have C18, and want to change it yourself, here's how;

    1. Open the project in MPLAB.
    2. Remove the 18F4550 linker.
    3. Add the 18F4455 linker. (be sure to use the modified versions in the same folder)
    4. Select the 18F4455 under Configure > Select Device (almost forgot this one)
    5. Include the 18F4455 in the section shown below in main.c.

    Original looks like this;
    Code:
    #if defined(PIC18F4550_PICDEM_FS_USB)		// Configuration bits for PICDEM FS USB Demo Board
     	#if defined(__18F4550) || defined(__18F4553)
    Change it to;
    Code:
    #if defined(PIC18F4550_PICDEM_FS_USB)		// Configuration bits for PICDEM FS USB Demo Board
     	#if defined(__18F4550) || defined(__18F4553) || defined(__18F4455)
    Then compile. This forces it to use the config options below the #if defined section, and you definitely need the 18F4455 linker due to the difference in codespace.
    Last edited by Bruce; - 3rd March 2010 at 17:37. Reason: Select the 18F4455 under Configure > Select Device
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,604

    Default

    Guys,
    I haven't had time to play any more with this and it will have to wait a little longer still. However, I'd like to take the oportunity to thank all of you for the last couple of days worth of posts in this thread!

    /Henrik.

  6. #6
    Join Date
    Oct 2004
    Posts
    448

    Default

    Bruce, thanks for the procedure to create new .hex bootload files. Do I understand the situation right, that one necessarily requires the C18 compiler to do this?

    And, I second Henrik's statement, thank you to all who helped.

    Regards,

    Anand

  7. #7
    Join Date
    Jul 2003
    Posts
    2,405

    Default

    Hi Anand,

    Yes. You will need the C18 compiler to make changes.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. Simple USB Comms Problem
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th January 2010, 20:17
  2. Replies: 7
    Last Post: - 10th November 2008, 09:24
  3. USB Bootloader CRASH on Vista
    By mindthomas in forum USB
    Replies: 9
    Last Post: - 9th March 2008, 20:56
  4. 18F2550 MCRL/RE3 problem with USB bootloader Microchip
    By Ronald123 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 24th September 2007, 10:48
  5. BootLoader with USB to Serial Convertors
    By mike101video in forum General
    Replies: 6
    Last Post: - 10th January 2006, 16:48

Members who have read this thread : 0

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