Debugging firmware from a microcontroller

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Debugging firmware from a microcontroller

跳至解决方案
1,614 次查看
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

 

标签 (1)
0 项奖励
回复
1 解答
1,333 次查看
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 项奖励
回复
2 回复数
1,334 次查看
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 项奖励
回复
1,333 次查看
andrewlynes
Contributor I

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

Thanks

0 项奖励
回复