Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service

search inside this forum
Debugger for Freescale (56F8345)
Tobias W. Mar 1, 2016 at 09:12 AM (09:12 hours)
Staff: Johnny N.

  • In an existing product we use a microcontroller from Freescale (56F8345). For this one we need a new debugger(Connected over JTAG OnCe). Over a link from the website www.nxp.com I found the debugger ”USB Multilink Universal “.
    Is it possible to use this debugger for debugging a Freescale (56F8345) or is there another possible debugger on your webpage? (We need to set some breakpoints or stop the running program and readout some values.)
    If it were possible which IDE we need for debugging? At the moment we use the CodeWarrior Development Studio which is based on Eclipse.

    Kind regards
    Tobias




    Comments

    • Greetings Tobias,

      CodeWarrior for MCUs (Eclipse IDE) - 56800/E DSC v10.6 has support for the following P&E interfaces.

      USB-ML-UNIVERSAL: http://www.pemicro.com/products/product_viewDetails.cfm?product_id=15320137

      USB-ML-UNIVERSAL-FX: http://www.pemicro.com/products/product_viewDetails.cfm?product_id=15320143

      Cyclone Max: http://www.pemicro.com/products/product_viewDetails.cfm?product_id=145

      You can use any of these interfaces for debugging the 56F8345.

      Regards,
      Johnny
      P&E Engineering Support

      • Hello

        I have now a Debugger „USB-ML-UNIVERSAL-FX“ and try to program a new firmware on a correct working device. I use “CodeWarrior Development Studio 10.6” and get always an error “Reset has failed”. After this error, the firmware on the microcontroller is deleted.
        What can be a reason for this error and how can I fix it?

        Errors:
        http://www.fotos-hochladen.net/view/error1ydeoqu4ngr.png
        http://www.fotos-hochladen.net/view/error2dqaumez6wt.png

        My setting:
        http://www.fotos-hochladen.net/view/setting11vwi4bdsag.png
        http://www.fotos-hochladen.net/view/setting2z3mhuro70i.png

        CodeWarrior Protocol:
        GDI DLL: C:\Freescale\CW MCU v10.6\MCU\bin\Plugins\Debugger\protocols\..\..\support\DSC\gdi\dsc_pne_gdi.dll
        CPU: MC56F8345

        GDI: DiGdiOpen()
        GDI: => DI_OK
        GDI: DiGdiGetFeatures()
        GDI: => DI_OK
        GDI: Identification: DSC P&E to GDI wrapper, Version: 1.0.1, MeeAvailable: true, NrCpusAvailable: 1
        GDI: DiGdiAddCallBack(cb_type = 0x4000)
        GDI: => DI_OK
        GDI: DiGdiInitIO()
        GDI: Mtwks Callback(MTWKS_CB_SETMEEID, 1) => DI_OK
        GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : , Entry : com.freescale.cdt.debug.cw.CW_SHADOWED_PREF.DSC Advanced.powerCycleDlg, Value : , R) => DI_ERR_NONFATAL
        GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : DO_DEBUG_OUTPUT, Value : 0, R) => DI_ERR_NONFATAL
        GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : DEPENDENCY_CHECK, Value : 0, R) => DI_ERR_NONFATAL
        GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : UUID, Value : DefaultProject, R) => DI_ERR_NONFATAL
        GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : CWDBG, Entry :

        ………

        GDI: DiMemoryWrite(addr = 0xF410, space = 20, mem_items = 1, size = 2)
        GDI: 00 00
        GDI: => DI_OK
        GDI: DiMemoryWrite(addr = 0xF411, space = 20, mem_items = 1, size = 2)
        GDI: 00 00
        GDI: => DI_OK
        GDI: DiExecResetChild()
        ERR: Can not enter background mode__.
        GDI: => DI_ERR_NONFATAL
        GDI: The Debugger can not reset the connected hardware
        GDI: DiMeeDisconnect(exec_env_id = 1)
        GDI: => DI_OK
        GDI: DiGdiClose()
        GDI: => DI_OK

        Regards,
        Tobias

        • Tobias,

          1) Are you using any custom adapters or ribbon cables to connect the USB-ML-UNIVERSAL-FX to your 56F8345?

          2) Would it be possible to see a schematic of your debug header connections? Ny main concern is whether or not there are any components on the reset signal or any other debug signals that may be interferring with communications.

          3) Can you try to program a brand new project created through the project wizard?

          Regards,
          Johnny
          P&E

          • Hello

            1) I use the original ribbon cable from the USB-ML-UNIVERSAL-FX (14Pin)

            2) This link shows the debug part of our circuit:
            http://www.fotos-hochladen.net/view/schaltplanxegpq6nv9m.png

            3) I have tried this already. But I will test it tomorrow once again.

            Regards,
            Tobias

            • Hi Tobias, 

              I noticed that you have a voltage monitor DS1818 on the reset line. According to the datasheet for this IC, the reset line is held low for 150 ms after a power on reset. Could you try adding a 250 ms delay in the setting "Delay after reset before communicating to target"? I think this should be enough time for the voltage monitor to release reset and fall it to stabilize.

              Regards,
              Johnny
              P&E

              • Hello,

                I created now a new project (through the project wizard) on two different OS (Main PC: Win8, Virtual PC: Win XP). And I set the “Delay after reset before communicating to target“ time to 250ms (I tested it also with a higher time). But there are always the same errors: :(

                1. Confirm: Device is secure. Erase to unsecure? (http://img5.fotos-hochladen.net/uploads/error1ydeoqu4ngr.png)

                2. Error launching ***** Reset has failed (http://img5.fotos-hochladen.net/uploads/error2dqaumez6wt.png)

                At the same setup (same connector) on the virtual PC with XP it is possible to program the device with an old Debugger (CodeWarrior USB TAP from frescale).

                Is it normal that the debugger get warm on the outside of the case (only small difference to the ambient temperature)? It doesn’t feel so wrong (it doesn’t smell burnt).

                Regards,

                Tobias

                • Hi Tobias,

                  The Multilink FX shouldn't get that warm. If you are concerned that it is broken, then you can send the Multilink FX and one of your boards to us for analysis. If you want to pursue this option, please update your pemicro profile with your shipping address so I can issue a RMA#. When and where did you purchase it?

                  You can also check the Multilink FX with your own oscilloscope to see if any of the pins are damaged. We describe the exact reset sequence for the DSC 56F8345 in the USB Multilink Universal technical summary (see Section 5 Port A).
                  http://www.pemicro.com/downloads/download_file.cfm?download_id=376

                  -Johnny
                  P&E

                  • Hi Tobias,

                    Has this issue been resolved?

                    Regards,
                    Johnny
                    P&E

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