On Monday 15 February 2010, Jörg Fischer wrote:
> I was referring to the original tcl/target/lpc1768.cfg from
> openocd, which still has that statement in its "reset init" sequence.

Yeah, I saw that on a closer look.  Just checked in
the obvious fix.  That whole reset-init handler still
seems like one big bug to me.  Those things should
be board-specific ... except in the case of really
broken hardware, and I wouldn't suspect the LPC1768
of being that broken.


> >> It also doesn't remap the Bootloader on Address 0x00000000
> >> correctly. The LPC1768-Stick has only a 4 MHz
> >> quartz crystal (needed for the flash definitio line).
> >
> > Are you saying that nothing puts the flash at 0, and it's
> > always the boot loader?  I thought the remapping was part
> > of the boot configuration for LPC chips...
>
> Yes but "reset init" or "reset halt" stop the bootloader
> before this remapping.

The comment is way off.  All it's doing is writing NVIC.VTOR
to its reset value (i.e. what it already holds).  A quick look
at the lp17xx user manual didn't turn up any way to remap
the ROM via register writes ... but I might have missed it.

(As I said:  that reset-init handler looks like one big bug.)

And regardless, if the chip is set up to boot into ROM, then
I think OpenOCD has no business messing with that setup.


> https://sourceforge.net/apps/trac/openocd/ticket/19

OK, now I'm clear on that failure mode.  That doesn't
look any less fishy ...

- Dave


_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to