Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service

search inside this forum
How can i erase all flash data?
David d. Jun 12, 2015 at 03:10 AM (03:10 hours)
Staff: Takao Y.

  • Hi,

    I can unsecure the MCU(S12 and secured) with usb multilink,
    but I can't erase flash data?
    Why?

    Thanks a lot!

    Best Regards
    David Dai




    Comments

  • Hi,
    sorry, I add the detail´╝Ü

    I use HI-WAVE and USB BDM Multilink to debug my MM912H634,

    Step1: I unsecure the MCU, passed.
    Step2: I click HC12Multilink->Flash...

    then warning as below,

    "Error while loading diagnostics to target system.
    The chip may be secured, or the derivative selected be wrong."

    So I can't access to the flash to erase it.

    Thanks a lot!

    Best Regards

    David dai

  • Greetings,

    Did you check if your derivative selected was wrong? Meaning, is the project made for the MC912H634?

    Create a new project for your chip and try debugging the default project with minimal setting changes. You should have no issues.


    Takao Yamada

  • Hi, Mr Takao,

    Thanks for your response.
    I am sure the derivative selected is right. If the derivative selected is wrong, I can't unsecure the MCU, right?
    I predict the MCU entered the run mode after I unsecure it, then start up the secure proces, but how I can know if the MCU is in run mode and how can I stop it?
    Please advice.Thanks a lot!

    Best Regards
    David Dai

  • Greetings,

    No, not a good assumption about unsecure. You can unsecure the chip without knowing the derivative.

    So you are purposely securing the chip in your flash programming? Then of course you are going to have issues debugging. You cannot debug a secured chip. Stop securing the chip if you wish to debug the part. There is no way of stopping a secure because the moment the chip is reset after flash programming it is already secured and nothing you can do other than unsecure it.


    Takao Yamada

  • Hi, Mr Takao,

    Thanks for your comment.
    Yes, you are right. I am purposely securing the chip in flash programming.
    Now I want to debut it,
    Could you please advice me how to debug a secured chip?

    Thanks!

    Best Regards
    David Dai

  • Greetings,

    You cannot debug a secured chip.

    Change your code to prevent securing of the chip. You should only secure the chip when you are ready to go for production. If you are still debugging, then you are not ready for production.


    Takao Yamada

  • Hi, Mr Takao,

    Very thanks for your answer.
    This is my first time to use Freescale MCU and PE simulator for my project.
    So, could you please advise me how I can re-flash this secured MCU with the new code without securing function?

    BTW, I can't program the secured MCU flash once more via "HC12MultilinkCyclonePro"-->"Load.." due to it is already disabled the moment.


    Thanks!

    Best Regards
    David Dai

  • Hi, Mr Takao,

    I can flash my MCU now.
    I connect MCU REST pin to Multilink directly,
    Then, I can do that.

    Thank you once again.

    Best Regards
    David Dai

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