>When you debug on FLASH there is a maximum of two
breakpoints at the
>same time.
I have noticed, however, at times Eclipse seems to lose track of the
interrupts, and you can get into a state where no interrupts are set,
but Eclipse won't let you set any (or even single step source, which
requires an interrupt). I'm note sure if it's Eclipse or OpenOCD that
is
getting confused. Only solution is to start from scratch.
Also, why, if you have a single breakpoint set, does Eclipse whinge like
mad if you single step, but still does it fine anyway (as it should as
you only need 1 interrupt for this) ?
These are just annoyances rather than show stoppers, but since this
topic came up I thought I'd mention.
I have Olimex ARM-USB-OCD JTAG Programmer... works fine since the
first time.
I have some troubles a few months ago when loading large (>32 Kb)
programs into flash, because the script only was erasing some
sectors, not the entire flash.
Are you already test the scripts from Olimex? (my JTAG Programmer
came with drivers & examples CD)
Other idea, visit Yagarto, and ask Michael Fischer.
Sorry for the limited help, Mark! Hope you get luck!
Gaspar
Reply by mjbutsch●May 27, 20082008-05-27
Hi Gaspar,
Yes I have different linker scripts fpor RAM and Flash.
I tried your gdb and OpenOCD (I have the Olimex ARM-USB-Tiny Jtag)
settings and got the same result.
Also, if I try to debug in RAM first, I get a message,
"Unable to set 32 bit software breakpoint at address 4000010c",
which is where my main() is located. If I "resume", the program
crashes and I end up in the Undefined Instruction Handler. It is like
the program did not get loaded into RAM.
If I then debug in FLASH, and then in RAM, it is able to set the one
breakpoint at main().
Still lost. Any other suggestions?
Mark
Reply by Gaspar Pollano●May 23, 20082008-05-23
Hi Mark!,
Im also using LPC2148 with ECLPISE.
When you debug on FLASH there is a maximum of two breakpoints at the
same time.
When you debug on RAM there is no limit.
I assume you are using diferents linker scripts to load the program
into FLASH and RAM, since the locations are diferent. Im using this
for a while with no problems.