Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service

search inside this forum
USB-ML-12E+CPROGHCS08, erase OK, program error 45
Jorge P. migrated on Dec 31, 2013 at 11:00 AM
No staff assigned yet

  • Hello

    I have a computer where I can debug Freescale uC with USB-ML-12E and Freescale Codewarrior 6.3, but USB-ML-12E with CPROGHCS08 1.50 produces error. The config file is:
    RE CM c:\pemicro\progHCS08sz\algorithms\9S08AW16.S8P EM BM SS Project.abs.s19 PM VM VC PT SD RE GO QU (one command per line).
    CPROGHCS08 erases and blank checks microcontroller OK, but it returns error 45 (Can not talk to cable) when it tries to program flash memory. The next time I try to erase/program, erasing does not work. Blue and orange LEDs in USB-ML-12E are always on. Erasing works again when I unplug and plug USB cable to USB-ML-12E.

    Everything works OK in another computer with the same software (Windows XP 32bit, CPROGHCS08 1.50, Freescale Codewarrior 6.3).

    I think this could be a windows driver error but I'm not sure. I have many USB drivers from many manufacturers (ST, Texas Instruments, Atmel, Microchip, NXP, FTDI... ), some of them are under category "Jungo" in device manager, maybe the P&E driver has been replaced by another driver?. Is there a tool to fix P&E driver or remove it to do a fresh install?.

    I downloaded latest flashing algorithms, firmware, drivers...
    When installing CPROGHCS08 1.50, it returns a message error at the end of installation:
    Cannot load dinamic functions
    Cannot load library difxapi.dll: can't find specified module.
    Initializing driver failed

    I saw this error some years ago when I purchased CPROGHCS08 and first installed it, but it has worked with no problem for some years.

    I tried some wdreg_gui.exe commands without success. Now it doesn't work even with Freescale Codewarrior.

    Maybe the USB-ML-12E is broken?

    Regards.




    Comments

  • QUOTE (FordFairlane @ May 13 2011, 06:47 AM) [legacy comment]
    Hello

    I have a computer where I can debug Freescale uC with USB-ML-12E and Freescale Codewarrior 6.3, but USB-ML-12E with CPROGHCS08 1.50 produces error. The config file is:
    RE CM c:\pemicro\progHCS08sz\algorithms\9S08AW16.S8P EM BM SS Project.abs.s19 PM VM VC PT SD RE GO QU (one command per line).
    CPROGHCS08 erases and blank checks microcontroller OK, but it returns error 45 (Can not talk to cable) when it tries to program flash memory. The next time I try to erase/program, erasing does not work. Blue and orange LEDs in USB-ML-12E are always on. Erasing works again when I unplug and plug USB cable to USB-ML-12E.

    Everything works OK in another computer with the same software (Windows XP 32bit, CPROGHCS08 1.50, Freescale Codewarrior 6.3).

    I think this could be a windows driver error but I'm not sure. I have many USB drivers from many manufacturers (ST, Texas Instruments, Atmel, Microchip, NXP, FTDI... ), some of them are under category "Jungo" in device manager, maybe the P&E driver has been replaced by another driver?. Is there a tool to fix P&E driver or remove it to do a fresh install?.

    I downloaded latest flashing algorithms, firmware, drivers...
    When installing CPROGHCS08 1.50, it returns a message error at the end of installation:
    Cannot load dinamic functions
    Cannot load library difxapi.dll: can't find specified module.
    Initializing driver failed

    I saw this error some years ago when I purchased CPROGHCS08 and first installed it, but it has worked with no problem for some years.

    I tried some wdreg_gui.exe commands without success. Now it doesn't work even with Freescale Codewarrior.

    Maybe the USB-ML-12E is broken?

    Regards.


    FordFairlane,

    Are you debugging/programming a S08AW16?

    How are you providing power to the target board?

    I want you to do some testing in the interactive software PROGHCS08. Please try the following programming sequence:

    CM c:\pemicro\progHCS08sz\algorithms\9S08AW16.S8P
    EM
    BM
    SS Project.abs.s19
    PT
    PM
    VM
    VC

    If you're able to program your board in PROGHCS08, then there is a problem with your batch file or script. If it also doesn't work, then it could be a problem with your computer or the target. I don't think your USB-ML-12 is broken since it works fine on another computer.

    Another question I have is are you running a computer with an AMD based processor?

    -Johnny

  • Hello Johnny

    Yes, S08AW16.

    The board has power supply connected to 220v. This is not a problem with one board, I have tested it with 10 or more different boards.

    My script runs OK in another computer.

    I have run your script with CPROGHCS08, here is the output:
    Open program:
    Windows NT detected.
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84

    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    Initializing. (Recommended Trim = $62) (Bus Freq = 19716KHz) Initialized.
    ;version 1.04, 07/10/2009, Copyright P&E Microcomputer Systems, www.pemicro.com [9S08AW16]
    ;device Freescale, 9S08AW16, All
    ;begin_cs
    Loading programming algorithm ... Done.(FCDIV=$CD)


    CM c:\pemicro\progHCS08sz\algorithms\9S08AW16.S8P
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    Initializing. (Recommended Trim = $61) (Bus Freq = 19818KHz) Initialized.
    ;version 1.04, 07/10/2009, Copyright P&E Microcomputer Systems, www.pemicro.com [9S08AW16]
    ;device Freescale, 9S08AW16, All
    ;begin_cs
    Loading programming algorithm ... Done.(FCDIV=$CE)


    EM
    Erasing. Module has been erased.

    BM
    Erased.

    SS Project.abs.s19

    PT
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84

    Pemicro connection manager is open, I push Connect buttom
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    Pemicro connection manager is open, I push Connect buttom
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    Programming trim value $61 to location $ USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    0FFBE Failure.


    PM
    PEMICRO connection manager is open several times with one of 2 errors:
    1, 3, 5, 7, ... "Can't communicate with BDM Intergace Cable. Check power and connections"
    2, 4, 6, 8, ... "Can't communicate with the target processor! Please check your connections between the cable and the target and make sure the target has power."
    Checking range of S records. Checked.
    Programming and Verifying Address $ Could not contact P&E Hardware Interface. Check power and Connections
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    Could not contact P&E Hardware Interface. Check power and Connections.
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    Could not contact P&E Hardware Interface. Check power and Connections.
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    Could not contact P&E Hardware Interface. Check power and Connections.
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    Could not contact P&E Hardware Interface. Check power and Connections.
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
    Could not contact P&E Hardware Interface. Check power and Connections

    This continues forever.
    I power cycle the board but it doesn't work.
    I re-plug the USB cable but it doesn't work.
    When I push Abort button, PROGHCS08 is closed.

    My computer has AMD processor.

    Regards

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