Search code examples
flashmipstrace32lauterbachbroadcom

Issue during flash programming in lauterbach tool


I have a MIPS based broadcom chip BCM68380 which I am trying to program by following cmm script.

SYSTEM.RESET

SYSTEM.CPU bcm63268

SYSTEM.OPTION ResBreak OFF

SYSTEM.OPTION IMASKASM ON
SYSTEM.OPTION IMASKHLL ON

CORE.NUMBER 2
SYSTEM.CONFIG.IRPOST  0. 5.
SYSTEM.CONFIG.IRPRE   10. 5.
SYSTEM.CONFIG.DRPOST  0. 1.
SYSTEM.CONFIG.DRPRE   2. 1.

SYSTEM.BdmClock 20.Mhz
SYSTEM.UP

d.load cfe6838rom

ENDDO

But the problem is when doing System.UP I am getting "debug port failed". On closer inspection I found following errors in area.view:

ERROR: Mips Tap chain length -20 too long!
debug port fail

On looking into documents I found more debug commands.

I did following for more debugging:

diag 10000 1
diag 16001

and again ran the command this time area.view, in addition to above errors also yields:

Length of IDCODE chain and number of detected devices mismatch. (34 != 96). Ive attached image.

Trace 32 Window

Please help.


Solution

  • This problem was solved by changing CPU to one of the older versions, in my case, instead of SYSTEM.CPU bcm63268, I changed it to SYSTEM.CPU bcm6318 and commented out

    ;CORE.NUMBER 2
    ;SYSTEM.CONFIG.IRPOST  0. 5.
    ;SYSTEM.CONFIG.IRPRE   10. 5.
    ;SYSTEM.CONFIG.DRPOST  0. 1.
    ;SYSTEM.CONFIG.DRPRE   2. 1.
    

    The system was able to get in ready state.