Background Debug Mode - interface problem

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

Background Debug Mode - interface problem

跳至解决方案
2,140 次查看
AJU
Contributor I

Hello!

 

I want to read/write eeprom area via BDM mode. Main problem is with connection

I didn't receive any answer from processor. I'm waiting for 150cycles ect ect... but I didn't reiceve any data.

 

Can you look on attached file, and write me suggestions?

 

Perhaps is problem with reset time? I don'f find any documentation with detailed explanation of DBM.

 

Test traget is MC9S12DB128 @ 4MHz clock.


Best regards!

标签 (1)
0 项奖励
回复
1 解答
1,541 次查看
kef
Specialist I

Host initiates every bit transfer, not only writes, but also reads. Slave MCU can't pulse BKGD pin the same like you pulse it. To read bits you should drive BKGD low and release BKGD pin, allowing MCU to keep BKGD low for additional "0" or "1" - time. Then you sample BKGD pin state in the middle of expected "0" and "1" - rising edges. It's normal MCU "didn't answer" read byte command.

The only response MCU is pulsing low and high is SYNC pulse, which allows you to measure MCU speed.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,542 次查看
kef
Specialist I

Host initiates every bit transfer, not only writes, but also reads. Slave MCU can't pulse BKGD pin the same like you pulse it. To read bits you should drive BKGD low and release BKGD pin, allowing MCU to keep BKGD low for additional "0" or "1" - time. Then you sample BKGD pin state in the middle of expected "0" and "1" - rising edges. It's normal MCU "didn't answer" read byte command.

The only response MCU is pulsing low and high is SYNC pulse, which allows you to measure MCU speed.

0 项奖励
回复
1,541 次查看
AJU
Contributor I

Hello!

 

Thank You, Kef, for help. Your suggestions was really useful, so now all working ok.

 

Best Regards!

 

0 项奖励
回复