Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service

search inside this forum
"Device is secured. Erasing ..." when debuging with CodeWarrior and Multilink Universal FX
Peter H. May 31, 2016 at 05:14 AM (05:14 hours)
Staff: Mikhail A.

  • I have two laptops that are being used to debug Kinetis microcontrollers. When I debug using laptop A the micro seems to program with no issues (other than displaying a few security warnings because I have secured the micro). When I debug the micro using laptop B the programmer seems to do a mass erase when it sees that the micro is secure. I think I've checked all the configuration settings on both laptops and they appear to be the same (Debug Configurations... > Target settings Edit... > Advanced Programming Options etc.).

    Note that I can't just flash the firmware (FYI, it is bootloader firmware) to the micro because I need to set the trim value which I believe is only possible via debugging.

    The output from laptop A (the one that works) is:

    INF: CMD>PT
    INF: Programming Trim value $4D to location $
    INF: Success.
    INF: Programming FTrim value $00 to location $
    INF: Success.
    INF: CMD>RE
    INF: Initializing.
    INF: Device is Secure.
    INF: Cannot enter background mode. Check connections.
    INF: Device is Secure.

    The output from laptop B (the one that doesn't work) is:

    INF: CMD>PT
    INF: Programming Trim value $4D to location $
    INF: Success.
    INF: Programming FTrim value $00 to location $
    INF: Success.
    INF: CMD>RE
    INF: Initializing.
    INF: Device is Secure.
    INF: Device is secured. Erasing ...
    INF: Target has been RESET and is active.


    Can anyone suggest how I can get laptop B working? Many thanks in advance.




    Comments

  • Hi again, 

    Just wondering if anyone has any thoughts on this?

    Thanks,
    Peter

  • Dear Peter,

    What software are you using for debugging?

    It seems that you need to make sure mass erase is turned off in the Programming options. I can let you know where these options are located in the programming setup once I know your software. If you have confirmed that mass erase is turned off there may be some other settings we have to look at for when the software encounters a secure interface.

    Regards,
    Mikhail
    P&E

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