Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service


Please accept the use of cookies on our site

At PEmicro we use web browser cookies in order to provide you with an enhanced experience and in order to be able to do things like shopping cart processing and identify you when you login to our website.

Click here to accept



search inside this forum
search inside all forums
TRK-KEA128 / Keil uVision / OpenSDA Debug: Error 51 when starting Debug, fine on second attempt
Martin M. Aug 16, 2017 at 08:43 AM (08:43 hours)
Staff: Zahar R.

  • I'm working and debugging on TRK-KEA128 via the OpenSDA USB interface with CodeWarrior and Keil uVision to have a taste of both.

    Under uVision only, when I start the debugging, the first attempt always raise an error 51 due to some CRC-16 checking, but connect on second attempt (which is launched automatically after failing the first one).

    CodeWarrior Console:
    Starting 3rd party flash programming...
    GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : STARTUP, Entry : SPECIFY_NETWORKCARD_ENABLED, Value : 0, R) => DI_OK
    INF: Copyright 2012 P&E Microcomputer Systems,Inc.
    INF: Command Line :"C:\Freescale\CW MCU v10.5\eclipse\..\MCU\bin\de.exe" -noni -language en -ORBendPoint giop:tcp:127.0.0.1: -ORBtraceLevel 0
    INF: CMD>RE
    INF: Initializing.
    INF: Target has been RESET and is active.
    INF: CMD>CM C:\Freescale\CW MCU v10.5\MCU\bin\Plugins\support\arm\gdi\P&E\keaz128m4_pflash_pipeline.arp
    INF: Initializing.
    INF: Initialized.
    INF: ;version 1.00, 11/18/2013, Copyright P&E Microcomputer Systems, www.pemicro.com [ke_128k_pflash_ftmre_m0]
    INF: ;device freescale, keaz128m4, desc=pflash_pipeline
    INF: ;begin_cs device=$00000000, length=$00020000, ram=$20000000
    INF: Loading programming algorithm ...
    INF: Done.
    INF: CMD>EM
    INF: Erasing.
    INF: Module has been erased.
    INF: Initializing.
    INF: Initialized.
    INF: ;version 1.00, 11/18/2013, Copyright P&E Microcomputer Systems, www.pemicro.com [ke_128k_pflash_ftmre_m0]
    INF: ;device freescale, keaz128m4, desc=pflash_pipeline
    INF: ;begin_cs device=$00000000, length=$00020000, ram=$20000000
    INF: Loading programming algorithm ...
    INF: Done.
    INF: CMD>PM
    INF: Programming.
    INF: Processing Object File Data ...
    INF: .
    INF: Programmed.
    INF: CMD>VC
    INF: Verifying object file CRC-16 to device ranges ...
    INF: block 00000000-000000BF ...
    INF: Ok.
    INF: block 00000800-00001DA7 ...
    INF: Ok.
    INF: Checksum Verification Successful. (Cumulative CRC-16=$D1B9)
    INF: CMD>RE
    INF: Initializing.
    INF: Target has been RESET and is active.

    Keil uVision Console:
    After a rebuild of modified code, any download to flash memory raises an error 51. Any re-attempt is fine.




    Comments

  • Contacted ARM for support and got this answer:

    Public text added by Barth, Andreas/ARM:1187425 at 2017-08-18 11:11:05
    Hello Martin,
    the the P&E files have different version (in Keil folder seems newer) and the arp files (flashloader) are quite different as well then.

    But your pemicro_connection_settings.ini looks consistent. The paths are pointing to the Keil folder. So, sorry, the P&E needs to clarify, how the checksum is calculated and what could happen, that the one of the arp file does not match any more.

    Best regards,
    Andreas Barth

  • Hi Martin, 

    We are aware of this non-fatal warning and will eventually remove it from our FLASH programming application within Keil.

    When a new debug session is launched, we first do a CRC check to compare a new object file with what is programmed in the device. If there is a match, we move forward with a debug session without erasing and reprogramming your device.

    If the project has been changed and no longer matches what is programmed in your device, we will throw a non fatal CRC mismatch error, and proceed with a debug session by erasing and reprogramming your device.

    Best Regards,
    Zahar
    P&E

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