Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service

search inside this forum
search inside all forums
S32R2017.R1 Code Flash Programming Failure
fgu f. Nov 11, 2019 at 10:24 PM (22:24 hours)
Staff: Takao Y.

  • Dear Sir,

    I use S32 Design Studio(S32 Design Studio for Power Architecture
    Version: 2017.R1 ) and Multilink Universal to program the MCU SPC5604C. It used the algorithm file for SPC5604C code Flash - "nxp_mpc5604c_1x32x128k_cflash.pcp" from S32 Design Studio‘s defualt install folder.
    I made an S19 file which includes data at Code Flash address 0x008000 ~ 0x008025.
    Then I click the "Debug" button in S32DS to try to download the S19 file in to SPC5604C Flash. But always failed. The following is the console message during download in S32 Design Studio:
    Do have any idea what's the possible cause for this issue?

    Connection from "127.0.0.1" via 127.0.0.1
    Telnet server running on 127.0.0.1:51794
    Copyright 2017 P&E Microcomputer Systems,Inc.
    Command Line :C:\NXP\S32DS_Power_v2017.R1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.7.2.201709281658\win32\pegdbserver_power_console -device=MPC5604C -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=USBMULTILINK -speed=5000 -?

    CMD>RE

    Initializing.
    MPC560xx Device detected.
    Target has been RESET and is active.
    CMD>CM C:\NXP\S32DS_Power_v2017.R1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.7.2.201709281658\win32\gdi\P&E\nxp_mpc5604c_1x32x128k_cflash.pcp

    Initializing.
    MPC560xx Device detected.
    Initialized.

    ;version 1.13, 03/30/2017, Copyright P&E Microcomputer Systems, www.pemicro.com [560x_512k_cflash]

    ;device NXP, MPC5604C, 1x32x128k, desc=CFlash

    ;begin_cs device=$00000000, length=$00080000, ram=$40000000

    Loading programming algorithm ...

    WARNING - Selected .PCP file has been modified. CRC16 = $8807
    Done.
    CMD>VC
    Verifying object file CRC-16 to device ranges ...
    block 00000000-00000007 ...
    Calculated CRC-16 does not match block. (File = $14EC, Device = $6820)

    CMD>EM

    Erasing.
    Module has been erased.
    CMD>PM

    Programming.
    Processing Object File Data ...


    .
    Programmed.
    CMD>VC
    Verifying object file CRC-16 to device ranges ...
    block 00000000-00000007 ...
    Ok.
    block 00000010-000000E3 ...
    Ok.
    block 00000100-0000428B ...
    Ok.
    block 00008000-00008025 ...
    Ok.
    block 00010000-00010073 ...
    Ok.
    block 00010080-0003818F ...
    Calculated CRC-16 does not match block. (File = $729B, Device = $0000)
    Error verifying flash of device
    Error occured during Flash programming.

    Starting reset script (C:\NXP\S32DS_Power_v2017.R1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.7.2.201709281658\win32\gdi\P&E\s32e200_mpc560xx.mac) ...
    REM This script is compatible with MPC560xB, MPC560xC, MPC560xD, MPC560xE, MPC560xS, and MPC560xP devices.
    REM Clean GPRs to remove residual data after using algorithm
    REM Initialize all of the Main SRAM - 96KB
    Initializing RAM from $40000000 to $40017FFF.

    Reset script (C:\NXP\S32DS_Power_v2017.R1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.7.2.201709281658\win32\gdi\P&E\s32e200_mpc560xx.mac) completed.

    MPC560xx Device detected.




    Comments

  • Greetings,

    Try lowering your debug shift frequency within debug configurations.
    Communication may be too fast for reads during verification stage, while writes are working just fine during programming stage.


    Best,
    Takao

    • Dear Takao,
      Thank u for ur reply.I don't familiar with S32DS settings of how to lowwer comm speed.When I used CodeWarrior the error are the same , So I have lowerred the BDM Debug Shift frequency from 8.3M to 1.6M in CW and shortened the debug ribbon line .Now We are waiting for the result.

    • Dear Takao,
      We have lowerred the BDM Debug Shift frequency from 8.3M to 1.6M in CW and shortened the debug ribbon line, but the Error still exist.
      I read from this issue:
      http://www.pemicro.com/forums/forum.cfm?forum_id=8&forum_topic_id=6659#c19237
      My questiones are :
      1.Will our Multilink Multilink Universal's firmware be updated automaically by Our PC(Win7 or Win10) via internet connction?
      2,Will it be that we have an old firmware in our Multilink Universal device?
      Since our as Our PC is not connected to the internet, So I guess this maybe the old firmware reason
      3.But this error occurrs Occasionally,I still doubt if it is a hardware problem.....

  • Greetings,

    Sorry for the delayed response.

    1) It is not firmware updated by internet. It has to do with the software version you have. Newer software will have new firmware files and you will be forced to update the firmware to be able to use the newer software. For example, you should download the latest Multilink Resource CD from our website which gets updated pretty often:
    http://www.pemicro.com/downloads/download_file.cfm?download_id=346

    2) Everything needs to work correctly from firmware, software, and drivers.

    3) If it is an occasional problem, then I would also try adding 200ms delay after reset in the debug configuration. It could be a timing issue and we need to account for delays after a reset circuitry.


    Takao

Add comment


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







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