Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service

search inside this forum
error: Cannot find a matching debug device
Alberto C. Feb 10, 2016 at 05:30 AM (05:30 hours)
Staff: Johnny N.

  • Hello,
    I'm trying using the USB Coldfire Multilink adapter (USB_ML_CFE) included in the HW from our supplier. The Host system is win7 running cygwin. I installed the following drivers:
    1) multilink_universal_install (Drivers_12_2_0)
    2) freescale-coldfire-2010.09-39-m68k-elf

    I think I'm not able to connect to the adapter but can't figure out why. Here follow the log:
    C:\WORK\MP\mp2128>BDM\m68k-elf-gdb.exe -command=mp2128G2usercode
    GNU gdb (Sourcery G++ Lite 2010.09-39) 7.2.50.20100908-cvs
    Copyright (C) 2010 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>;
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "--host=i686-mingw32 --target=m68k-elf".
    For bug reporting instructions, please see:
    <https://support.codesourcery.com/GNUToolchain/>;.
    m68k-elf-sprite: CodeSourcery ColdFire Debug Sprite (Sourcery G++ Lite 2010.09-39)
    m68k-elf-sprite: Doing I/O to stdin/stdout
    m68k-elf-sprite: Memory [0x0,+0x1000000) ram
    m68k-elf-sprite: Memory [0x10000000,+0x100000) ram
    m68k-elf-sprite: Memory [0x30000000,+0x10000) ram
    m68k-elf-sprite: Memory [0x40000000,+0x40000000) ram
    m68k-elf-sprite: Using P&E v2/3/4 DLL version: ColdFire Interface Libraries Version 3.32.00.00 (http://www.pemicro.com)
    m68k-elf-sprite: 0 USBMultilink devices found
    m68k-elf-sprite: 0 CycloneProMaxUSB devices found
    m68k-elf-sprite: 0 CycloneProMaxSerial devices found
    m68k-elf-sprite: 0 CycloneProMaxEthernet devices found
    m68k-elf-sprite: 0 ParallelPortCable devices found
    m68k-elf-sprite: 0 PCIBDMLightning devices found
    m68k-elf-sprite: error: Cannot find a matching debug device
    m68k-elf-sprite: Got packet: 'qSupported:qRelocInsn+'
    m68k-elf-sprite: Sent response: 'E.fatal.Cannot find a matching debug device'
    warning: Remote failure reply: E.fatal.Cannot find a matching debug device
    mp2128G2usercode:1: Error in sourced command file:
    Remote communication error. Target disconnected.: No error.
    (gdb)

    Can someone help me to solve this problem ?
    Thanks in advance




    Comments

  • The GNU gdb log is reporting 

    m68k-elf-sprite: 0 USBMultilink devices found

    This indicates that it is not able to detect your USB-ML-CFE. Please go into your device manager and check for the following entries.

    Jungo -> WinDriver (Version 11.7.0.0 10/26/2014)
    Jungo -> USB Multilink 2.0 (Version 12.2.0.0 10/26/2015)

  • Hi Johnny,
    thanks for your support.
    Yes, I have the correct entries on device manager under jungo:
    - USB Multilink2.0 Ver 12.2.0.0 26/10/2015 (only when USB plugged)
    - WinDriver Ver 11.7.0.0 26/10/2014

    Windows says both drivers are correctly working.

    Alberto

  • Hello Johnny,
    I forgot to mention that leds are working as expected.
    Blue led on when usb connected;
    Yellow led on when target is powered.

    I found PEFirmwareUpdater.exe under multilink_universal folder and it seems it has the same problem you mentioned.
    "Undetected. Disconnect/Connect USB cable. Click Refresdh list".

    Thanks for your support,
    Alberto

  • Alberto,

    The PEFirmwareUpdater.exe program does not work with your interface. That is only meant for out Multilink Universal and Multilink Universal FX interfaces.

    Has this setup worked in the past?

    According to your log, the P&E DLL that it is loading is Version 3.32.00.00. THis is a very old version that might not be compatible with the latest operating systems. If you are running, for example, Windows 7 64 bit, you will need to update this DLL for compatibility. Please download the "Patch for ColdFire 3rd Party Software" from the following FAQ:

    https://www.pemicro.com/downloads/download_file.cfm?download_id=413

    The Readme file contains installation instructions.

    Regards,
    Johnny
    P&E

  • Hello Johnny,
    Thanks for your reply.

    I'm new to this debugging systems; this is the first installation (Windows 7, 64 bit) and is part of a toolchain we got from our HW supplier. The toolchain come with old drivers. The first thing I did to solve the problem was to un-install the old drivers, reboot and installl the latest version from your site.

    The patch worked!
    It solved the issue about device not found and now I have "1 USBMultilink devices found".

    Unfortunately I'm having another problem and I wonder if you could kindly help me again:
    As usual here follow the log.

    $ uname -a
    CYGWIN_NT-6.1-WOW NB-Toshiba 2.3.1(0.291/5/3) 2015-11-14 12:42 i686 Cygwin

    $ C:\WORK\BDM\m68k-elf-gdb.exe -command=mpUsercode
    GNU gdb (Sourcery G++ Lite 2010.09-39) 7.2.50.20100908-cvs
    Copyright (C) 2010 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>;
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "--host=i686-mingw32 --target=m68k-elf".
    For bug reporting instructions, please see:
    <https://support.codesourcery.com/GNUToolchain/>;.
    m68k-elf-sprite: CodeSourcery ColdFire Debug Sprite (Sourcery G++ Lite 2010.09-39)
    m68k-elf-sprite: Doing I/O to stdin/stdout
    m68k-elf-sprite: Memory [0x0,+0x1000000) ram
    m68k-elf-sprite: Memory [0x10000000,+0x100000) ram
    m68k-elf-sprite: Memory [0x30000000,+0x10000) ram
    m68k-elf-sprite: Memory [0x40000000,+0x40000000) ram
    m68k-elf-sprite: Using P&E v2/3/4 DLL version: ColdFire Interface Libraries Version 5.17.00.00 (http://www.pemicro.com)
    m68k-elf-sprite: 1 USBMultilink devices found
    m68k-elf-sprite: Opening P&E USBMultilink port 1 (USB1 : USB-ML-CF Rev D (PE6017929))
    m68k-elf-sprite: Setting connection speed to 0
    m68k-elf-sprite: Firmware version 554
    m68k-elf-sprite: Remote device ready (reset)
    m68k-elf-sprite: Device has Rev-A debug unit
    m68k-elf-sprite: error: Illegal command error from CPU
    m68k-elf-sprite: Got packet: 'qSupported:qRelocInsn+'
    m68k-elf-sprite: Sent response: 'E.fatal.Illegal command error from CPU'
    warning: Remote failure reply: E.fatal.Illegal command error from CPU
    m68k-elf-sprite: Closing P&E device
    mp2128G2usercode:1: Error in sourced command file:
    Remote communication error. Target disconnected.: No error.
    (gdb)

    I notice that it reports: "Opening P&E USBMultilink port 1 (USB1 : USB-ML-CF Rev D (PE6017929)" while in the adapter label I read: "USB-ML-CFE Rev D".

    Target writes messages to serial console when it starts but no message is written if the adapter is plugged on the board; it seems it does not start at all (no matter if the USB is plugged on the PC usb port or not).


    Thanks again for your help.
    Regards,
    Alberto

  • The following lines indicate that the USB-ML-CFE is communicating with the ColdFire but there is an illegal command error.

    m68k-elf-sprite: Remote device ready (reset)
    m68k-elf-sprite: Device has Rev-A debug unit
    m68k-elf-sprite: error: Illegal command error from CPU

    1. What USB-ML-CFE revision (A,B,C,or D) are you using? Please check the back label.
    2. What is the exact ColdFire microcontroller?
    3. Do you have an option in CodeSourcery to lower the communication speed (this option is typically called the BDM Debug Shift Speed in P&E's software)? From my experience, you need to reduce the speed to 15 or even lower for certain ColdFire devices.

    The USB-ML-CFE has an internal jumper that controls the state of the PSTCLK signal during debug communication. For ColdFire devices such as the MCF5272, MCF5206, and MCF5206e, you need to switch this jumper to the WITH CLOCK position.

  • Hello Johnny,
    we got some feedback from our HW provider and we manage to overcome the above issue (now having other problems related to the cygwin + gdb toolchain).

    Since it may be helpfull for other people, here follow my answers:

    1) The label says USB-ML-CFE Rev D;
    2) microcontroller is MCF5233CVM;
    3) Yes. It is possible to set the speed but i didn't dig much into it since the change in the internal switch made it work.

    The problem was the internal switch set to "with clock" position. For our microcontroller the right position seems to be "no clock".

    Thanks very much again for your help!
    Regards,
    Alberto

    • Hello Alberto,

      Glad to hear you were able to resolve the issue!

      The MCF5233CVM will work with the internal jumper in the "no clock" or "with clock position". If the setting used is "with clock", then the BDM Debug Shift Speed has to be lowered.

      Regards,
      Johnny
      P&E Engineering Support

Add comment


   Want to comment? Please login or create a new PEMicro account.







© 2017 P&E Microcomputer Systems Inc.
Website Terms of Use and Sales Agreement