my question about s12x processor & sorry about my poor english

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

my question about s12x processor & sorry about my poor english

Jump to solution
859 Views
rcpbrl
Contributor I

i hope i can explain my problem...

i have mc9s12xet processor on ECU's board and i want to replace this processor. will i need to ECU's firmware for ECU in the same way to use ? (firmware write byECU producer)

Labels (1)
1 Solution
597 Views
RadekS
NXP Employee
NXP Employee

Hi Recep,

Thank you for more information now is your previous question​ clearer.

Yes, you will have to program new MCU by firmware.

For that purpose, you will need some BDM interface (debugger). For example: BDM Multilink from PE

http://www.freescale.com/products/more-processors/32-bit-mcu-and-mcp/coldfire-plus-coldfire-mcus-mpu...

As software you could use for example CodeWarrior for HCS12(X) Microcontrollers (Classic IDE) v5.1:

http://www.freescale.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=CWX-H12-PROED-EX

If you don’t have original firmware source code or image, you could try download this code from working original MCU. Important note: This could be done only in case when original MCU is not secured. Firmware of secured MCU cannot be read. Security could be disabled if we know backdoor key and this option is enabled in original firmware. Unsecuring by mass erase will erase whole firmware in MCU.

How to save MCU P-Flash content into file is described for example here:

https://community.freescale.com/message/538883#538883

In case of S12XET256 you could use commands:

SAVE 0x780000’G..0x79FFFF’G DUMP.SX

SAVE 0x7E0000’G..0x7FFFFF’G DUMP.SX;A

More details about S12X security:

https://community.freescale.com/docs/DOC-93803


I hope it helps you.

Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

3 Replies
598 Views
RadekS
NXP Employee
NXP Employee

Hi Recep,

Thank you for more information now is your previous question​ clearer.

Yes, you will have to program new MCU by firmware.

For that purpose, you will need some BDM interface (debugger). For example: BDM Multilink from PE

http://www.freescale.com/products/more-processors/32-bit-mcu-and-mcp/coldfire-plus-coldfire-mcus-mpu...

As software you could use for example CodeWarrior for HCS12(X) Microcontrollers (Classic IDE) v5.1:

http://www.freescale.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=CWX-H12-PROED-EX

If you don’t have original firmware source code or image, you could try download this code from working original MCU. Important note: This could be done only in case when original MCU is not secured. Firmware of secured MCU cannot be read. Security could be disabled if we know backdoor key and this option is enabled in original firmware. Unsecuring by mass erase will erase whole firmware in MCU.

How to save MCU P-Flash content into file is described for example here:

https://community.freescale.com/message/538883#538883

In case of S12XET256 you could use commands:

SAVE 0x780000’G..0x79FFFF’G DUMP.SX

SAVE 0x7E0000’G..0x7FFFFF’G DUMP.SX;A

More details about S12X security:

https://community.freescale.com/docs/DOC-93803


I hope it helps you.

Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

597 Views
rcpbrl
Contributor I

hi RadekS,

thank you for this answer radeks,

     But, i have not firmware and orginal MCU is secured. i dont know backdoor key. in this case, what can i do? i have ECUs board and no processor on the board. And i know , this board using mc09s12xet. I bought a new processor, and i want to put this processor on the board. after this operation, can i use this ECUs board without any operation? can i use this ECU without firmware? i need to do it. because producer dont share any firmware to me.

     This ECUs flash programing via CAN-bus, type of the compiled application is S19. and another way,i can  using BDM interface and CW.

     And my other question, can i load .bin file into the flash with BDM Multilink from PE or only S19 files?

  Best Regards

     have a great day

          Recep...

0 Kudos
597 Views
RadekS
NXP Employee
NXP Employee

Hi Recep,

In this case you could only write your own firmware. If original MCU is secured and you don’t know backdoor key, you cannot read internal firmware.

I am afraid that board with MCU without software could be used only as decoration or for spare parts.

MCU needs software for its own work.

Software to MCU could be loaded trough CAN, but MCU has to already contain CAN bootloader code.

So, first we have to load software via BDM interface (for example bootloader).

Debugger software in CW (hiwave.exe) could be used for loading executable files (with debug informations) like *.abs or *.elf or for loading flash image files (like *.s19, *.sx, *.hex,…). *.bin file could be loaded by CW if this file contains data in one of supported formats.

It is hard to say whether CW will be able load your file just according file extension. It will depend on data format in this file.


I hope it helps you.

Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------