2016年8月18日星期四

How to repair Renault CAN CLiP hardware -flash ISO&CAN BDM chip

There is an easier way to repair Renault CAN CLiP hardware (at least flash chips).

According to Freescale (in present owner of Motorola chips) ) 
www.freescale.com/files/microcontrollers/doc/user_guide/MC68HC16ZUM.pdf

The CPU that is inside CLiP (both cards have one - ISO and CAN) HAVE capability for BDM (see page 4-42 / chapter 4.14.4 from manual).

Now, let's dig more...

In this happy family this particular CPU that power Clip (more precisely
 MC68HC16Z1) have only 1-Kbyte static RAM and use external FLASH also external RAM for program execution.

By checking pinout (page 3-7 / figure 3-4) the pins involved in BDM business are:

pin 59 - VDD
pin 62 - VSS
pin 64 - FREEZE
pin 66 - BKPT/DSCLCK
pin 67 - IPIPE0/DSO
pin 68 - IPIPE1/DSI
pin 69 - RESET
pin 71 - BERR
pin 86 - DS

Now...at page 4-45 / figure 4 -8 we see Freescale recommended BDM connection.

After i check (by measuring traces) i found BDM connections on both cards - they are EXACTLY as producer recommends (see photos attached).

CANBDM:
1- DS
2- BERR
3- VSS
4- BKPT/DSCLK
5- VSS
6- FREEZE
7- RESET
8- IPIPE1/DSI
9- VDD
10- IPIP0/DSO


ISOBDM:
1- DS
2- BERR
3- VSS
4- BKPT/DSCLK
5- VSS
6- FREEZE
7- RESET
8- IPIPE1/DSI
9- VDD
10- IPIP0/DSO

As we found out BDM port for this CPU, we need a software for flashing, and i found 
PROG16z or PROG32z from P&E Microcomputer Systems (as info, but unfortunately NOWHERE to download).

Also Freescale recommends this software here 
68HC16Z1 Product Summary Page section Programmers (Flash, etc.) (1):
http://www.nxp.com/products/microcontrollers-and-processors/more-processors/8-16-bit-mcus/16-bit-hc16/16-bit-automotive-microcontroller:68HC16Z1?fpsp=1&tab=Design_Tools_Tab

I also found hardware interface for BDM (pretty simple).


The main concern is to find a software to put CPU in Background Debug Mode (BDM) and load flash thru BDM port (prog16z or prog32z are perfect for that).

Also for testing you could try Freescale Background Debug Monitor. I also atached s19 to hex convertor

BDM_V090DBG.zip and for convert hex files to s19 or s19 to hex file ....binmot.zip

Maybe someone who has some free time can test that and report evolution of this project on
CAN CLIP interface. But TRY ON YOUR OWN RISK.


Special thanks bubu782001 for kindness at http://www.digital-kaos.co.uk/forums/

没有评论:

发表评论