Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service

search inside this forum
cprogdsc.exe can't do the erase process (CYCLONE MAX PROGRAMMER)
hugo z. Apr 18, 2014 at 01:46 AM (01:46 hours)
Staff: Johnny N.

  • I have modified the DOS batch file MC56F82726_FlashProgram3.bat and configure file (ProgrammerConfig2.cfg) to run the cprogdsc.exe as below:

    ==============MC56F82726_FlashProgram3.bat==========
    @ECHO OFF

    SET FW_FILE=C:\Users\zhouhu\Desktop\MC56F82726_FlashProg\MC56F82726_FlashProg\VKA_U0P01_0F1_00_03_20140306_1414.S
    SET USB_PORT=USB1

    SET DEVICE_TYPE=MC56F82726
    SET FLASH_FILE=C:\PEMicro\PROGDSC\Algorithms\freescale_mc56f82726_1x16x16k_pflash.dsp

    :START
    cls
    COLOR 0F
    @ECHO *******************************************************************************
    @ECHO Freescale Flash Programmer Utility
    @ECHO -----------------------------------
    @ECHO.
    @ECHO Copyright (C) 2014 Power-One
    @ECHO All rights reserved
    @ECHO.
    @ECHO *******************************************************************************
    @ECHO.
    @ECHO *******************************************************************************
    @ECHO Press Any Key To Program Unit
    @ECHO Press Ctrl+C (Break) To Exit
    @ECHO *******************************************************************************
    @ECHO.
    PAUSE > NUL


    :FLASH
    cls
    COLOR 0F
    @ECHO *******************************************************************************
    @ECHO ...DOWNLOADING FIRMWARE
    @ECHO -----------------------------------
    @ECHO.
    @ECHO !!! Do not disconnect programmer !!!
    @ECHO *******************************************************************************
    @set PATH=C:\;C:\PEMicro\PROGDSC
    @cprogdsc.exe C:\Users\zhouhu\Desktop\MC56F82726_FlashProg\MC56F82726_FlashProg\ProgrammerConfig2.cfg INTERFACE=CYCLONE PORT=%USB_PORT% /PARAM1=%DEVICE_TYPE% /PARAM2=%FLASH_FILE% /PARAM3=%FW_FILE% /logfile D:\AAA.TXT


    IF ERRORLEVEL == 1 GOTO :FAIL
    GOTO PASS


    :PASS
    cls
    COLOR 0A
    GOTO END


    :FAIL
    @ECHO %ERRORLEVEL%
    PAUSE
    cls
    COLOR 0C
    GOTO END

    :END
    @ECHO.
    @ECHO.
    @ECHO.
    @ECHO *******************************************************************************
    @ECHO Press Any Key To Continue
    @ECHO *******************************************************************************
    PAUSE > NUL
    GOTO START

    =================MC56F82726_FlashProgram3.bat end================

    ===============================ProgrammerConfig2.cfg===============


    ; Freescale Programming Script File
    :DEVICE /PARAM1

    ;Choose Module.DSP
    CM /PARAM2

    ;Specifiy Object Module
    SS /PARAM3

    ;Erase Module
    EM

    ;Blank Check Module
    BM

    ;Program Module
    PM

    ;Verify Module
    VM

    ;Exit programmer
    QU

    ===========ProgrammerConfig2.cfg end ==============


    The batch dos command is use the CPROGDSC.EXE (COMMAND LINE PROGRAMMER)

    During the debug, I find a problem with dos command.
    1> for blank chips:
    a.the cprogdsC.exe can programming the DSP and all the process are OK.

    2>If the DSP chip is not Blank and need Erase.
    a.The cprogdsC.exe can show the Erase process is ok, but can’t pass the blank checking process. Be cause the chip don’t be Erased at all.

    below is the log data during the process, you can see the ERASING....Module has been erased, but it can't pass the Blank verify process. (remark: the chip can be erased by PROGDAC.EXE(FLASH PROGRAMER)

    .................
    REM>;Erase Module
    CMD>EM
    Erasing. -Module has been erased.
    Initializing. -Initialized.
    ;version 1.03, 06/19/2013, Copyright P&E Microcomputer Systems, www.pemicro.com [mc56f82728]
    ;device freescale, mc56f82726, 1x16x16k, desc=pflash
    ;begin_cs device=$00000000, length=$01008000, ram=$0000F000
    Loading programming algorithm ... Done.


    REM>

    REM>;Blank Check Module
    CMD>BM
    Blank Checking ...
    Module word not erased at address $00000000 word is $E154.
    ERROR 25 during script!
    ..............




    Comments

    • Hugo,

      What version of PROGDSC/CPROGDSC are you using?

      -Johnny

  • hi Johnny,
    the progdsc is ver3.10.00.00, i download it from https://www.pemicro.com/products/product_viewDetails.cfm?product_id=15320158.

    thanks so much!
    hugo,zhou

    • Hugo,

      There is a new algorithm for your device which I would like you to try. I will email it to you.

      Regards,
      Johnny
      P&E

  • hello Johnny,
    i have download the newest dsp file and try to use it.
    but the problem can't be solved until now.

    the current issue is :
    1>   use progdsc.exe-----can run EM/BM process
    2>   Use CPROGDSC.EXE If the chip is blank, the EM/BM process is ok.
    3> Use CPROGDSC.EXE If the chip is not blank, EM/BM will be fail with error code 25. the logfile is below:

    ===========logfile==================
    CYCLONE detected - Flash Version 7.80


    REM>; Freescale Programming Script File

    REM>:DEVICE MC56F82726 ; [Script Line = :DEVICE /PARAM1]

    REM>

    REM>;Choose Module.DSP
    CMD>CM C:\PEMicro\PROGDSC\Algorithms\freescale_mc56f82726_1x16x16k_pflash.dsp ; [Script Line = CM /PARAM2]
    Initializing. -Initialized.
    ;version 1.06, 01/27/2014, Copyright P&E Microcomputer Systems, www.pemicro.com [mc56f82728]
    ;device freescale, mc56f82726, 1x16x16k, desc=pflash
    ;begin_cs device=$00000000, length=$01008000, ram=$0000F000
    Loading programming algorithm ... Done.

    REM>

    REM>;Specifiy Object Module
    CMD>SS D:\PEMicro\VKA_U0P01_0F1_00_03_20140306_1414.S ; [Script Line = SS /PARAM3]

    REM>

    REM>;Erase Module
    CMD>EM
    Erasing. -Module has been erased.
    Initializing. -Initialized.
    ;version 1.06, 01/27/2014, Copyright P&E Microcomputer Systems, www.pemicro.com [mc56f82728]
    ;device freescale, mc56f82726, 1x16x16k, desc=pflash
    ;begin_cs device=$00000000, length=$01008000, ram=$0000F000
    Loading programming algorithm ... Done.


    REM>

    REM>

    REM>;Blank Check Module
    CMD>BM
    Blank Checking ...
    Module word not erased at address $00000000 word is $E154.
    ERROR 25 during script!

    ==========logfile=========

    hope it is useful to solve the problem.
    thanks so much!
    Hugo,zhou

    • Hugo,

      You might be talking a bit too fast for the processor. Use the BDM_SPEED parameter to lower the speed.

      cprogdsc.exe C:\Users\zhouhu\Desktop\MC56F82726_FlashProg\MC56F82726_FlashProg\ProgrammerConfig2.cfg INTERFACE=CYCLONE PORT=%USB_PORT% BDM_SPEED 8 /PARAM1=%DEVICE_TYPE% /PARAM2=%FLASH_FILE% /PARAM3=%FW_FILE% /logfile D:\AAA.TXT

      Regards,
      Johnny
      P&E

  • Hallo.

    I have exactly the same problem. The erase seems will be done OK, but I have ever the error with the blank check (then further programming try).

    Initializing. Initialized.
    ;version 1.06, 07/17/2013, Copyright P&E Microcomputer Systems, www.pemicro.com [mc56f84786]
    ;device freescale, mc56f84786, 1x16x144k, desc=all
    ;begin_cs device=$00000000, length=$01040000, ram=$00060000
    Loading programming algorithm ... Done.
    Erasing.
    -Module has been erased.

    Initializing. Initialized.
    ;version 1.06, 07/17/2013, Copyright P&E Microcomputer Systems, www.pemicro.com [mc56f84786]
    ;device freescale, mc56f84786, 1x16x144k, desc=all
    ;begin_cs device=$00000000, length=$01040000, ram=$00060000
    Loading programming algorithm ... Done.
    Blank Checking ...
    Module word not erased at address $00000000 word is $E155.
    ERROR 25 during script!

    The version of PROGGDSC is the latest (3/2015) V5.13.03.00

    I tried to slowdown the BDM speed

    I tried to use CPROGGDSC but have the same problem.

    Actually I neet to change a microcontroller each time I need to change the firmware on it. It is not a good thing...

    Please Help me to solve it.

    Thanks.

  • Greetings,

    I am sorry no one has answered back to your question. Is this problem resolved?

    Is the problem only showing up when using CPROGDSC or is the problem also showing up in PROG DSC? If the test does not pass PROGDSC, then we have a bigger issue like hardware communication and voltage issues.


    Takao Yamada

  • I too am having this issue when it comes to erasing my parts.

    Error: BlankCheck Command Failed.

    56F8323

    • Gene,

      Did the latest version of PROGDSC resolve your issues with erasing and programming?

      -Johnny

      • Yes it did. First try. Thank you.

        For whatever reason the flash program that comes with CodeWarrior 10.6 doesn't work right. I've tried every switch and button in the setup and it always does the same thing. When flashing an ELF file, it says it erases, programs, and completes with no issues. Yet the program will never run on the part, Blankcheck terminates with an error, and there is no 'verify' option. Not impressed with this tool set at all. (I know you guys didn't make it. I just needed to complain. :) ) Made sure every .mem, .tcl, and dsp file were up to date too.

        PROGDSC saved the day, way easier to use, and it's 1000 times faster.

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