BootLoader with USB to Serial Convertors


Closed Thread
Results 1 to 7 of 7
  1. #1
    mike101video's Avatar
    mike101video Guest

    Question BootLoader with USB to Serial Convertors

    Hi,
    I am developing using the easyPIC3 board and the bootloader works just fine with a serial cable on COM1. If I try to use a USB-Serial cable - it asks for a reset, but nothing happens. Same hardware set up on the PIC side, just replaced the direct serial cable with the USB-SERIAL device.

    Does the bootloader work with a USB to Serial convertor plugged into the PC?

    I will need this to work as I will be reloading the PIC in the field from a notebook - which doesn't have a comm port.

    Any help much appreciated

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


    Did you find this post helpful? Yes | No

    Default

    Hi Mike,

    Which boot-loader are you using, and are you resetting the board once this message pops up during the loader process?

    Some USB/Serial adapters don't provide anything but TX/RX signals. If you're using a loader that requires handshaking or loop-back signals, then it's probably not going to work with your particular USB/Serial adapter.
    Regards,

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

  3. #3
    mike101video's Avatar
    mike101video Guest


    Did you find this post helpful? Yes | No

    Default

    Thx Bruce,
    I using the one that comes with MicroCode Studio Plus.( mecanique) Version 3.2.0.1.

    The only hardware requirments shown in the documentation are at the PIC end, RX, TX and line providing a reset to the PIC. (This is the same hardware in my case for both direct serial cable and USB cable.) The bootloader requests a reset for the PIC, and again this works for the direct serial cable, but nothing happens for the USB cable.)

    Thx again,
    Mike

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


    Did you find this post helpful? Yes | No

    Default

    Hi Mike,

    Since you've already verified this on the same board with the standard serial connection/cable, it could be that the board you're plugging the USB/Serial adapter into is routing some handshaking signals back to the standard DB-9 type serial adapter on the board.

    This may or may not be a good thing depending on the USB/Serial adapter, how it's wired, and what signals it makes available at the DB-9 end.

    I would check this one out first. If you have another PIC dev board with a DB-9 connector that's not wired for looping back signals/handshaking that would tell you.

    This message just means the loader software running on your PC can't communicate with the target PIC. If the boards DB-9 wiring is OK for the adapter, and you're selecting the adapters "virtual" serial port, it should work.

    It could also be sloppy timing or drivers on the converter. I have never had any problems with USB/Serial adapters using the FTDI chipsets, but I have with several other el-cheapo brands. Especially on XP systems.
    Regards,

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

  5. #5
    forgie's Avatar
    forgie Guest


    Did you find this post helpful? Yes | No

    Default

    Just a thought: see if it's the reset that's causing you grief - AFAIK you can do a hard reset for a few seconds after you click "Program" with the MELabs Loader and it'll all work. So try that, click Program, then straight away do a hard reset (assuming your board has a reset switch). If this works then you know theres a problem with the reset line. If it doesn't work, then I'm fresh out of ideas!

    Bruce sounds like he knows more about the handshaking, but I'll second the fact that FTDI chips work like a charm with all bootloaders (I even use one on my Mac )

  6. #6
    mike101video's Avatar
    mike101video Guest


    Did you find this post helpful? Yes | No

    Thumbs up

    Thxs all,
    If I press the reset button for about three seconds - it all works. (With two different USB cables.)

    Mike

  7. #7
    forgie's Avatar
    forgie Guest


    Did you find this post helpful? Yes | No

    Default

    Good to hear you got it working. Your USB-Serial adapter must have issues with whatever line is used for the reset signal.

Similar Threads

  1. USB Bootloader.
    By HenrikOlsson in forum USB
    Replies: 22
    Last Post: - 2nd May 2013, 02:46
  2. Dynamic USB Serial Number (PIC18F4550)
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 16th July 2009, 17:03
  3. Serial data to USB
    By cooksydesign in forum USB
    Replies: 18
    Last Post: - 29th October 2008, 15:10
  4. USB and serial cable connection(s)
    By ardhuru in forum Schematics
    Replies: 3
    Last Post: - 18th August 2008, 15:26
  5. 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

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