Flashing MC9S08QG4 over BKGD

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

Flashing MC9S08QG4 over BKGD

1,084 次查看
follopo
Contributor I

I've been looking pretty hard for a solution to this and I might be missing something so I just decided to ask. Here's the deal:

 

I've written code for a MC9S08QG4 and have it compiled and ready to load onto the MCU. The file needs to be loaded into the FLASH through the BKGD pin from a DaVinci SoC. Basically, I have no idea how to push the file from the DaVinci to the MCU. As far as I know, there is a routine to do this already and I just need to modify it for my application but I haven't been able to find it. I have the MCU's datasheet and know that data is sent over BKGD MSB at 16 BDC clock cycles per bit. What I need help figuring out is how to access, erase, and program FLASH through the BKGD pin. Any help or referral to help would be appreciated. Thanks.

标签 (1)
0 项奖励
回复
2 回复数

914 次查看
kef
Specialist I

 

BDM protocol is documented in 17.2 Background Debug Controller (BDC) in QG datasheet.

How to erase and program FLASH you may find in 4.5 FLASH.

Routines for BDM communications probably can be found in USBDM and OSBDM source codes. Don't know how would be easy to port them to DaVinci, since BDM protocol is time critical.

0 项奖励
回复

914 次查看
follopo
Contributor I

Thanks for the references. I'll check out that source code you mentioned and figure out how to adapt it. It sounds like what I was looking for.

0 项奖励
回复