> -----Original Message-----
> From: openocd-development-boun...@lists.berlios.de [mailto:openocd-
> development-boun...@lists.berlios.de] On Behalf Of Freddie Chopin
> Sent: zaterdag 18 juli 2009 16:07
> To: openocd-development
> Subject: Re: [Openocd-development] Strange problem with LPC2103
> 
> I found some time to investigate that problem.
> 
> Nico Coesel pisze:
> > At which frequency is your LPC2103 running and which core voltage?
> 
> After reset 12MHz and the voltages are standard - 3.3V an 1.8V. After
> some inits - 72MHz (max).
> 
> > At higher frequencies the chip may show strange behaviour due to the
core
> > supply voltage dropping too much (NXP has an errata sheet on this).
> 
> I've checked that, but my revision of LPC2103 doesn't have that bug.
> Moreover - the code works perfectly in "normal" conditions - that
> failure is there ONLY when debugging.
> 
> What actually helped was specifically disabling MAM via GDB after
reset.
> The soft_reset_halt doesn't do that, and that was the problem. I need
to
> add:
> 
> monitor mww 0xE01FC000 0
> 
> to a GDB startup commands and then everything is fine.
> 
> Do you think that disabling MAM should be added in some way to
> soft_reset_halt procedure?

Freddie,
Good question. The errata sheet does mention some problems with the
flash and the MAM depending on code location. Did you try to relax the
MAM timing? Turning the MAM off reduces the performance considerably.

Nico Coesel


_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to