Having done several designs with the LPC2148, I'm now switching my
attention to the LPC2468. However, I'm seemingly having a problem
running code when I come out of reset.
Using FlashMagic, I can program a very simple program. If I run the
program with the 'Go' option in FlashMagic, the LED blinks, and life
appears to be good. When I reset the board, nada. Reset is clearly
happening, confirmed both with a 'scope, and the fact that the LED,
which is turned off at the end of the blink routine, comes back on.
I presume that FlashMagic is programming the checksum value at word
0x14, although I have no way to confirm this. FlashMagic has the
option to read flash greyed out, and going into the bootloader
directly and using the 'R' command in the terminal outputs binary
(hey, FlashMagic people, how about a hex dump option?)
I know that when I hit reset that I'm not going back into the
bootloader. At least, P2.10 is high, and hitting '?' in the terminal
window does not produce a 'Synchronized' message, which I can make
happen by resetting the board and hold P2.10 low.
I think I've covered all my bases: Code works when run from
FlashMagic's 'Go' command, reset is high and goes low when reset is
pressed or DTR asserted, P2.10 is high and goes low when its button is
pressed or RTS is asserted. Pretty sure I'm not going back into the
bootloader due to a bad checksum, since I'm not seeing a
'Synchronized' message after hitting '?'.
As for hooking up a JTAG debugger, the board doesn't support one.
I've not had any luck with the couple I messed with on the LPC2148
designs, and to date the bootloader has always been sufficient for
debugging.
Anyone have any ideas? I'll be happy to post the boot code if someone
thinks that might be the problem.
Thanks,
--jc
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )
Solved!
All it takes is posting a question, and then you magically figure it out 10
minutes later.
I was not setting the SCS register to enable fast GPIO. Apparently the
bootloader does enable it, and when you use 'Go', it's already set. Coming
out of a hardware reset, SCS is set for compatibility mode, so my writes to
the FIOPIN registers were having no effect.
As for the other suggestions, thanks very much. Curiously, while I do have
a provision for battery backup on my RTC, the battery is not currently
populated nor tied to Vcc, yet I am not having any issues exiting reset.
--jc
On Fri, Aug 15, 2008 at 8:09 PM, bhasting00
wrote:
> --- In l...@yahoogroups.com , "jcwren"
> wrote:
> >
> > Having done several designs with the LPC2148, I'm now switching my
> > attention to the LPC2468. However, I'm seemingly having a problem
> > running code when I come out of reset.
> >
> > Using FlashMagic, I can program a very simple program. If I run the
> > program with the 'Go' option in FlashMagic, the LED blinks, and life
> > appears to be good. When I reset the board, nada. Reset is clearly
> > happening, confirmed both with a 'scope, and the fact that the LED,
> > which is turned off at the end of the blink routine, comes back on.
> >
> > I presume that FlashMagic is programming the checksum value at word
> > 0x14, although I have no way to confirm this. FlashMagic has the
> > option to read flash greyed out, and going into the bootloader
> > directly and using the 'R' command in the terminal outputs binary
> > (hey, FlashMagic people, how about a hex dump option?)
> >
> > I know that when I hit reset that I'm not going back into the
> > bootloader. At least, P2.10 is high, and hitting '?' in the
> terminal
> > window does not produce a 'Synchronized' message, which I can make
> > happen by resetting the board and hold P2.10 low.
> >
> > I think I've covered all my bases: Code works when run from
> > FlashMagic's 'Go' command, reset is high and goes low when reset is
> > pressed or DTR asserted, P2.10 is high and goes low when its button
> is
> > pressed or RTS is asserted. Pretty sure I'm not going back into the
> > bootloader due to a bad checksum, since I'm not seeing a
> > 'Synchronized' message after hitting '?'.
> >
> > As for hooking up a JTAG debugger, the board doesn't support one.
> > I've not had any luck with the couple I messed with on the LPC2148
> > designs, and to date the bootloader has always been sufficient for
> > debugging.
> >
> > Anyone have any ideas? I'll be happy to post the boot code if
> someone
> > thinks that might be the problem.
> >
> > Thanks,
> > --jc
>
> What is VBAT connected to? We used to ground VBAT on the 213x/214x
> chips if the RTC wasn't being used, but the 23xx/24xx chips need
> VBAT connected to VCC for the reset to work properly.
>
> Ben
>
>
>
[Non-text portions of this message have been removed]
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )