Ok! Upon returning home I was pleased to see that crosstools-ng version 1.12.4 built successfully!

At this point I am able to flash, halt, set breakpoints, etc. on one of my two roboveros.  The one misbehaving will flash and execute, but it sits stuck in 'void SystemInit (void)' waiting for oscillator to become ready (see below GDB output / line 225 of the firmware source).  I can set breakpoints, specifically at line 225 and continue.  GDB will execute and then break properly so the debug tools are working, therefore, it seems something is happening hardware-side.  Any thoughts?  I might start a new thread for this as it is somewhat unrelated to the original firmware updating issues.

Thanks,
Brett




******* OpenOCD output
$ sudo openocd -f interface/openocd-usb.cfg -f target/lpc1769.cfg
Open On-Chip Debugger 0.5.0 (2012-01-29-21:56)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.berlios.de/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
500 kHz
Info : clock speed 500 kHz
Info : JTAG tap: lpc1768.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Info : lpc1768.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting 'gdb' connection from 3333
Warn : acknowledgment received, but no packet pending
undefined debug reason 6 - target needs reset
Info : JTAG tap: lpc1768.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Warn : Only resetting the Cortex-M3 core, use a reset-init event handler to reset any peripherals
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0002a3b0 msp: 0x100068f8
Warn : Verification will fail since checksum in image (0x00000000) to be written to flash is different from calculated vector checksum (0xefefbe66).
Warn : To remove this warning modify build tools on developer PC to inject correct LPC vector checksum.


*********** GDB output:
$ ~/x-tools/arm-bare_newlib_cortex_m3_nommu-eabi/bin/arm-bare_newlib_cortex_m3_nommu-eabi-gdb -x gdbconfig ~/robovero/firmware/firmware
GNU gdb (crosstool-NG 1.12.4) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-build_unknown-linux-gnu --target=arm-bare_newlib_cortex_m3_nommu-eabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/hemes/robovero/firmware/firmware...done.
0x00000000 in g_pfnVectors ()
JTAG tap: lpc1768.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Only resetting the Cortex-M3 core, use a reset-init event handler to reset any peripherals
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0002a3b0 msp: 0x100068f8
(gdb) load
Loading section .text, size 0x48cd4 lma 0x0
Loading section .ARM.extab, size 0xc lma 0x48cd4
Loading section .ARM.exidx, size 0xb0 lma 0x48ce0
Loading section .data, size 0x890 lma 0x48d90
Start address 0x2a3b1, load size 300576
Transfer rate: 2 KB/sec, 12524 bytes/write.
(gdb) cont
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x0002a470 in SystemInit () at src/system_LPC17xx.c:225
225        while ((LPC_SC->SCS & (1<<6)) == 0);/* Wait for Oscillator to be ready    */
(gdb) list
220    void SystemInit (void)
221    {
222    #if (CLOCK_SETUP)                       /* Clock Setup                        */
223      LPC_SC->SCS       = SCS_Val;
224      if (LPC_SC->SCS & (1 << 5)) {             /* If Main Oscillator is enabled  */
225        while ((LPC_SC->SCS & (1<<6)) == 0);/* Wait for Oscillator to be ready    */
226      }
227   
228      LPC_SC->CCLKCFG   = CCLKCFG_Val;      /* Setup Clock Divider                */
229      /* Periphral clock must be selected before PLL0 enabling and connecting
(gdb)


On Mon, Jan 30, 2012 at 3:28 PM, Dave Hylands <dhylands@gmail.com> wrote:
Hi Brett,

...snip...
> Program received signal SIGINT, Interrupt.
> hwInit () at src/main.c:91
> 91          while (!USB_Configuration);
> (gdb)

It looks like that for me, this particular problem is caused because I
have an early version (R3231) of the robovero which needs a HW mod.

It looks like I'll have to wait for a new board to continue playing
with the canned firmware, but I should be able to continue working on
some custom firmware.

--
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users