Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service

search inside this forum
search inside all forums
Custom SPC584C PCP file
Tirthesh S. Feb 21, 2018 at 09:57 AM (09:57 hours)
Staff: Takao Y.

  • Hello, 

    I am trying to write a custom PCP file that does more of what I need.
    But I get an warning saying "Selected .PCP file has been modified. CRC16 = $BAB1" but the actual UTEST writes are not being done.

    Is there some thing else I need to do to get the PCP file to write to the UTEST area.

    ;version 1.04, 12/16/2016, Copyright P&E Microcomputer Systems, [spc58EC80_UTest_16k]
    ;device ST, SPC584C70, 1x32x4k, desc=UTest
    ;begin_cs device=$00400000, length=$00004000, ram=$400A8000
    WRITE_LONG=0000C520/F4058010/ ;Disable Watchdogs
    ADDR_RANGE=00000000/0000003F/00/FFFFFFC0/FFFFFE00/ ; $00400000 - 0040003F (Ignoring ECC bytes)
    ADDR_RANGE=000000A0/00003FFF/00/FFFFFFC0/FFFFFE00/ ; $004000A0 - 00403FFF
    BLOCKING_MASK=0000000F/ ;min 16 byte write for 128-bit ECC length
    WRITE_LONG=00008000/F7FE0000/ ;Reset any prior flash read errors
    WRITE_LONG=3FFFFFFF/F7FE0010/ ;Enable UTest for prog/erase
    WRITE_LONG=FFFFFFFF/F7FE0014/ ;Disable High Blocks for prog/erase
    WRITE_LONG=FFFFFFFF/F7FE0018/ ;Disable 256K blocks[31:0] for prog/erase
    WRITE_LONG=FFFFFFFF/F7FE001C/ ;Disable 256K blocks[47:32] for prog/erase
    WRITE_LONG=00000001/00400370/   ;Actual write of UTEST
    WRITE_LONG=00400040/00400374/   ;Actual write of UTEST
    WRITE_LONG=00000000/00400378/   ;Actual write of UTEST
    WRITE_LONG=010003FC/0040037C/   ;Actual write of UTEST


  • Only the items in between lines have been added to the PCP file.

  • Greetings,

    You cannot write to UTEST by modifying the algorithm. The WRITE LONG and WRITE WORD is only used to modify registers.

    You must use a binary file like s19 or ELF file to program your UTEST. Load the UTEST algorithm within PROG software and select your binary file to program.

    Takao Yamada

  • Thanks for the quick response.

    Is it possible for me to do following?

    1) Write to register using WRITE_WORD=0610/F7FE0000/.
    2) Flash the UTEST addresses using S19
    3) Write to register using WRITE_WORD=0611/F7FE0000/
    4) Wait little bit about 100milisec using DELAY=0100/
    5) Write to register using WRITE_WORD=0610/F7FE0000/
    6) Write to register using WRITE_WORD=0600/F7FE0000/

  • Greetings,

    Everything done in the header of this algorithm will execute the moment you load the algorithm. Therefore, you can do up to step 2 in your list of commands. Any other register modifications needs to be done using other tools like our UNIT libraries, which allows users to run tests like loading into RAM, modify registers, etc.

    Takao Yamada

Add comment

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

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