Background Debug Mode - interface problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Background Debug Mode - interface problem

ソリューションへジャンプ
1,726件の閲覧回数
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,127件の閲覧回数
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,128件の閲覧回数
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,127件の閲覧回数
AJU
Contributor I

Hello!

 

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

 

Best Regards!

 

0 件の賞賛
返信