Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service

search inside this forum
search inside all forums
9S12XDT256 read flash problems
Raivis B. May 27, 2019 at 03:55 AM (03:55 hours)
Staff: Takao Y.

  • Hello!

    I want save Flash from microcontroller 9S12XDT256 in computer. I use Codewarrior to read information from microcontroller.

    I get information that flash save in such address blocks:


    block0

    page $E0 0x08000 - 0x0BFFF

    page $E1 0x18000 - 0x1BFFF

    page $E2 0x28000 - 0x2BFFF

    page $E3 0x38000 - 0x3BFFF

    page $E4 0x48000 - 0x4BFFF

    page $E5 0x58000 - 0x5BFFF

    page $E6 0x68000 - 0x6BFFF

    page $E7 0x78000 - 0x7BFFF


    block1

    page $F8 0x88000 - 0x8BFFF

    page $F9 0x98000 - 0x9BFFF

    page $FA 0xA8000 - 0xABFFF

    page $FB 0xB8000 - 0xBBFFF

    page $FC 0xC8000 - 0xCBFFF

    page $FD 0xD8000 - 0xDBFFF

    page $FE 0xE8000 - 0xEBFFF

    page $FF 0xF8000 - 0xFBFFF


    In first address 0x08000..0x0BFFF range I can see information, but in others ranges are text "CAFECAFECAFE"

    Where can be problem? Maybe flash address ranges are incorrect?

    Thanks!




    Comments

  • Greetings,

    Within CW you should change the PAGE register of the MCU to the page number you want to see. They are all mapped to 0x8000 to 0x0BFFF.

    What is your end goal? Are you trying to save the contents? Or just debugging?


    Takao Yamada

    • I want clone microcontrollers.

  • I have two microcontrollers 9S12XDT256. I want clone flash from one to other. At first I want save flash information to computer and then write this information to other microcontroller.

  • Greetings,

    That is going to be quite hard to do within Codewarrior.

    We sell a software called PROG12Z that can be used to read and write the flash. You can easily clone a microcontroller with it:
    http://www.pemicro.com/products/product_viewDetails.cfm?product_id=49

    I do not think there is a way to dump data from Codewarrior. You will have to ask NXP if that is possible. It needs to be in the correct file format to reprogram a device.


    Takao Yamada

Add comment


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







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