Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service

search inside this forum
ML Universal create .cfp file from .cfg file for USB ColdFire Multilink
Arina V. Jan 30, 2017 at 07:33 AM (07:33 hours)
Staff: Takao Y.

  • Hello,

    I'm trying to reprogram ColdFire MCF5272.
    I have a ML Universal programmer and my colleagues have USB ColdFire Multilink programmer. They send me the .cfg file, but I need .cfp file for my ML Universal. I changed the file extension from .cfg to .cfp, then I load this file with PROGCFZ, there is Warning message "Selected .CFP file has been modified. CRC16=$669D" and the status bar is shown "Executing command..." and commands are inactive.

    here is the text of that .cfg file

    DEVICE MCF5274
    RAMBAR1 20000000
    IPSBAR 40000000
    FLASHBASE FF000000

    INSTRAM RAMBAR1      
    DATARAM RAMBAR1
    DATASIZE 0x100

    FLASHALG 28F640P30B(1x16)

    .init
    wcreg   RAMBAR1    RAMBAR1 0x1

    write.l IPSBAR   0x00000000   IPSBAR 0x1

    write.w   IPSBAR   0x00000080   FLASHBASE>>0x10 0x00000000
    write.w   IPSBAR   0x0000008A   0x3D80
    write.l   IPSBAR   0x00000084   0x007F0001

    /* turn off watchdog */
    write.w   IPSBAR   0x00140000   0x0000

    /* crank up PLL */
    write.l IPSBAR   0x120000   0x01000000
    delay 100



    But then I using .CFP file with commands like below for another kind of device everything is fine, it's text look different.

    ;version 1.00, 10/21/2002, Copyright P&E Microcomputer Systems, www.pemicro.com
    ;device Intel, 28F320J5, 1x16x2meg
    ;device Intel, 28F320J3A, 1x16x2meg
    ;device Intel, 28F320J3, 1x16x2meg
    ;device Micron, 28F320J3, 1x16x2meg
    ;begin_cs device=$00000000, length=$00400000, ram=$10000000
    CONTROL=20000001/0C0F/ ; set mbar on with address $20000000
    WRITE_WORD=0000/2000008E/ ; Set PB6 data=0
    WRITE_WORD=0040/2000008C/ ; Make PB6 an output
    ;end_cs
    NO_TIMING_TEST
    ;blocks 32-128k
    USER=BE Block Erase 2Block > /00000000/0000001F/
    USER=SB Set Block Lock 2Block > /00000000/0000001F/
    USER=CB Clear Block Locks 0 /00000000/00000000/
    ;
    S31510000000100003E0100001A0000002000000000034
    S315100000100040000000000000100001060000000073
    S3151000002000000000100000B0000000001000015891
    S31510000030100000F0100000F2100000F400000000A4
    S315100000400000000000000000100000541000006ABC
    S31510000050100000A0243C000200004C0200002040CA
    S31510000060D1FC00000000600000BC243C000200002F
    S315100000704C0200002040D1FC0000000030BC0060A3
    S3151000008030BC000130BC00703810028400000080C3
    S315100000900C840000008066EC428030BC00FF4AC829
    S315100000A0207C0000000030BC006030BC00D060D462
    S315100000B0203C00000020243C0002000022004C02DC
    S315100000C010002041D1FC0000000030BC002030BCE4
    S315100000D000D030BC007038100284000000800C8400
    S315100000E00000008066EC30BCFFFF538066CE4AC825
    S315100000F04AC84AC82A7C000000003ABC00FF2C7C83
    S31510000100100003A04AC8223CFFFFFFFF32180C81E3
    S31510000110FFFFFFFF6606558066F24AC8203CFFFFC8
    S31510000120FFFF4AC830BC00206000000C207C000095
    S31510000130000030BC003030BC00D030BC007028103D
    S315100001400284000000800C840000008066EC42806F
    S3151000015020BCFFFFFFFF4AC8287C100001A048D72B
    S31510000160180836BC0040369C36BC00703813028422
    S315100001700000008067F25583548B66E64CD718084A
    S3151000018036BC00FF42804281301C321BB2806608AA
    S31510000190558366F442804AC8203CFFFFFFFF4AC8D9
    S804000000FB

    So, does commands format in first example fit for the ML universal or I need new .cfp file with another types of commands like in second example?

    P.S. I'm sorry for my poor knowledge in programming and bad English.




    Comments

    • OOOps! i understood my mistake, I should use CF Flasher instead ProgCFZ. 
      No help needed anymore. Sorry for bothering.

  • Greetings,

    First of all, do not change the file extension. CFG file is completely different from CFP files. The CFG contains information of which commands and settings to use to program. The CFP file is the algorithm that gets loaded into your chip to allow for running the commands in the CFG files.

    CF Flash can continue to work if you have older operating systems and older hardware, but when you use newer systems CF Flasher will no longer work. You will most likely need to use PROG CFZ in the future and I hope you find the proper CFP files in the algorithms folder in PROG CFZ.


    Takao Yamada

    • Thank you for your answer, Takao. Now I know the difference.
      You answered to my next question - while using CF Flasher, I faced with another problem "Could not initialize BDM device". I'll try with older computer.
      Thank you!

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