Øyvind Harboe <oyvind.har...@zylin.com> wrote on 08/04/2010 10:08:26 AM:
> On Wed, Aug 4, 2010 at 9:45 AM, Fredrik Hederstierna
> <fredrik.hederstie...@securitas-direct.com> wrote:
> > Hi
> >
> > We've tried to break out several generic parts of our openOCD scripts
into
> > different script files.
> > We then encounter some issues to access global variables.
> >
> > Example
> >
> > File main.cfg:
> > --------------
> >
>
> Isn't the line below missing?
>
> # define as a global variable
> global FLASH_CONFIG_SIZE
>
> > set FLASH_CONFIG_SIZE 1
No it did not work.
Actually I did not give the full picture.
The problem occurs when we using GDB tries to call a function using these
global variables:
gdb> monitor str_configure_flash
So it works using script as in-argument when starting openOCD, but then
when using GDB and calling same function, the scope is not working.
Its interesting though that adding "::" makes it work, can there be
different "global" scope mismatch issue regarding via-GDB-scripting?
/Fredrik
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development