Debugging firmware from a microcontroller

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

Debugging firmware from a microcontroller

Jump to solution
874 Views
andrewlynes
Contributor I

Hello community!

 

I am a humble CodeWarrior novice and have a question which I hope that the community may be able to help answer.

 

I have an automotive component which uses an s12x microcontroller. I wonder if it is possible to extract the firmware by jtag and then run the binary in a simulation in Code Warrior to analyse in a controlled environment (e.g. provoke my own inputs/outputs) and also debug. Is this something that can be done with Code Warrior?

 

Thanks in advance.

 

Andy Lynes

 

Labels (1)
0 Kudos
Reply
1 Solution
593 Views
Lundin
Senior Contributor IV

The S12 family uses something called BDM, which is similar to JTAG. If the S12 sits on a shipped automotive PCB, it will most certainly have MCU security enabled, blocking all attempts to read the binary. This is done through internal hardware in the MCU and the intention is to block copy cats from stealing the program. The only way you can access a secured chip is to erase it completely then download a new program.

So you need to have the original source code.

View solution in original post

0 Kudos
Reply
2 Replies
594 Views
Lundin
Senior Contributor IV

The S12 family uses something called BDM, which is similar to JTAG. If the S12 sits on a shipped automotive PCB, it will most certainly have MCU security enabled, blocking all attempts to read the binary. This is done through internal hardware in the MCU and the intention is to block copy cats from stealing the program. The only way you can access a secured chip is to erase it completely then download a new program.

So you need to have the original source code.

0 Kudos
Reply
593 Views
andrewlynes
Contributor I

Bump! Just wondering if anybody had a chance to ponder this question over the weekend?

Thanks

0 Kudos
Reply