Working bootloader hex on 18f2550


Closed Thread
Results 1 to 22 of 22

Hybrid View

  1. #1
    Join Date
    Feb 2008
    Posts
    2

    Default PIC18f2550 usb communication with a mobile phone

    Hi

    Im using a pic18f2550 usb port to communicate with a mobile usb....
    But im having some difficulties...
    Does the usb of the pic need to be in "master mode" to communicate with useb of the mobile phone...Please need some guidance

  2. #2
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by TD26 View Post
    Hi Does the usb of the pic need to be in "master mode" to communicate with useb of the mobile phone...Please need some guidance
    PIC's are 'slaves' only, not hosts/masters....but there are other ways around that...

  3. #3
    Join Date
    Feb 2003
    Location
    Sydney, Australia
    Posts
    126

    Default

    Bruce,

    Would it be possible to get a copy of the C18 files for this firmware please. I have an application that has LEDs on a different port and just want to move them - shouldn't be that hard for me to muddle through.

    With Thanks,
    bill.

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

    Default

    Hi Bill,

    The USB framework has gone through several changes since I posted the modified loader above. Grab the newest v2.3 C18 files here;

    http://www.microchip.com/stellent/id...cName=en537044

    After you install it, Look in C:\Microchip Solutions\USB Device - Bootloaders\HID - Bootloader\HID Bootloader - Firmware for PIC18 Non-J Devices for io_cfg.h. That's the configuration header you'll need to modifiy to move your LEDs to another port.

    If you get stuck let me know. I'll help you modify it.
    Regards,

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

  5. #5
    Join Date
    Feb 2003
    Location
    Sydney, Australia
    Posts
    126

    Default

    Cool, thanks Bruce.

    Downloading it now. I have an older version that I got when installing the PICDEM FS Usb board.

    Interesting its the HID bootloader, but your version appears as a custom USB device that I can program with the PICDEM FS Demo application, rather than an HID device. Maybe this newer version is a built different.


    bill.

  6. #6
    Join Date
    Feb 2003
    Location
    Sydney, Australia
    Posts
    126

    Default

    Hi Bruce,

    Having some issues - Sent you a Message - you might need to log into your User Panel to see it - can't see the Private Message option on the forum anymore..

    Might be MPLAB crosseye-ness though !

    bill

  7. #7
    Join Date
    Feb 2003
    Location
    Sydney, Australia
    Posts
    126

    Default Got it working !!

    I am a very happy chappie !

    I managed to recompile the bootloader to use alternative LED pins. One thing to be aware of is that there are now two bootloader codebases that Microchip provide. One is the HID bootloader, the other is one that will work with the MPUSB application.

    I tried the HID bootloader, but got some weird results, so instead modified the MPUSB bootloader which uses the custom Microchip driver. This allows me to continue to use the PICDEM FS Demo Board application to bootload my code.

    All good ! Also learned more about MPLAB and C coding than I think I ever wanted to know...

    bill.

Similar Threads

  1. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd November 2008, 00:51
  2. Replies: 6
    Last Post: - 5th November 2008, 12:30
  3. 18F2550 MCRL/RE3 problem with USB bootloader Microchip
    By Ronald123 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 24th September 2007, 11:48
  4. Some test hex for a 18f2550
    By f_lez in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th October 2006, 15:24
  5. Bootloader + Mainline code in single HEX file
    By dman776 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 19th May 2006, 23:59

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