Quantcast

Flashing the robovero using an overo

classic Classic list List threaded Threaded
34 messages Options
12
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Flashing the robovero using an overo

Petar Durdevic
Has anyone seen this error???

root@overo:~/robovero/firmware# ./flash.py                                      
getting sudo password                                                          
                                                                               
starting openocd: jtag chain detected                                          
gdb runtime: 0s                                                                
Traceback (most recent call last):                                              
  File "./flash.py", line 47, in <module>                                       
    gdb = subprocess.Popen(gdb_cmd, stdout=debug, stderr=debug)                
  File "/usr/lib/python2.6/subprocess.py", line 623, in __init__                
    errread, errwrite)                                                          
  File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child        
    raise child_exception                                                      
OSError: [Errno 2] No such file or directory    
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Flashing the robovero using an overo

Neil MacMunn
On Sat, Feb 4, 2012 at 11:27 AM, Petar Durdevic <[hidden email]> wrote:

> Has anyone seen this error???
>
> root@overo:~/robovero/firmware# ./flash.py
> getting sudo password
>
> starting openocd: jtag chain detected
> gdb runtime: 0s
> Traceback (most recent call last):
>  File "./flash.py", line 47, in <module>
>    gdb = subprocess.Popen(gdb_cmd, stdout=debug, stderr=debug)
>  File "/usr/lib/python2.6/subprocess.py", line 623, in __init__
>    errread, errwrite)
>  File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child
>    raise child_exception
> OSError: [Errno 2] No such file or directory

Hello,

Here is the subprocess command that is being executed there.
 "%sarm-bare_newlib_cortex_m3_nommu-eabi-gdb -x .gdbflash firmware" %
(config["GDB_PATH"])

Check that .gdbflash and firmware exist in your directory and that
"GDB_PATH" is set properly in your flashconfig. Alternatively, you
could add the directory where you've saved
arm-bare_newlib_cortex_m3_nommu-eabi-gdb to your system path.

-
Neil

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Flashing the robovero using an overo

Petar Durdevic
Thanks for your reply..

I have altered my flashconfig and now it is as following:

{
  "OPENOCD_PATH": "/usr/bin/",
  "GDB_PATH": "/home/root/x-tools/arm-bare_newlib_cortex_m3_nommu-eabi/bin/"
}


And now it works a bit more but still it stops and the following error is:

root@overo:~/robovero/firmware# ./flash.py
getting sudo password

starting openocd: jtag chain detected
gdb runtime: timeout
kill: 1399: No such process
failed. please try again


And in my other window where i connect to the jtag looks like this

root@overo:~# sudo openocd -f interface/openocd-usb.cfg -f target/lpc1769.cfg
Open On-Chip Debugger 0.4.0 (2011-06-21-14:18)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.berlios.de/doc/doxygen/bugs.html
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 0
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)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x1fff0080 msp: 0x10001ffc
Info : dropped 'gdb' connection - error -400



Than i tried without running  : sudo openocd -f interface/openocd-usb.cfg -f target/lpc1769.cfg
And the output is as following.


root@overo:~/robovero/firmware# ./flash.py
getting sudo password

starting openocd: jtag chain detected
gdb runtime: timeout
failed. please try again

-----


And I have to add that my blinking red LED turns off when i run ./flash.py

Petar


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Problem when flashing the robovero using ubuntu

Juan David Hernández Vega
Hi everyone,

I'm trying to change robovero's firmware. I have followed all the instructions give at robovero.org. However when trying to update flash memory I'm getting the following messages:

Building target: all
Invoking: GCC C Linker
arm-bare_newlib_cortex_m3_nommu-eabi-ld -nostdlib -L"lib" -Map=firmware.map -T "script.ld"  --gc-sections -o"firmware" src/wrap/_LPC17xx.o src/wrap/_core.o src/wrap/_debug_frmwrk.o src/wrap/_lpc17xx_adc.o src/wrap/_lpc17xx_can.o src/wrap/_lpc17xx_clkpwr.o src/wrap/_lpc17xx_dac.o src/wrap/_lpc17xx_emac.o src/wrap/_lpc17xx_exti.o src/wrap/_lpc17xx_gpdma.o src/wrap/_lpc17xx_gpio.o src/wrap/_lpc17xx_i2c.o src/wrap/_lpc17xx_i2s.o src/wrap/_lpc17xx_libcfg.o src/wrap/_lpc17xx_mcpwm.o src/wrap/_lpc17xx_nvic.o src/wrap/_lpc17xx_pinsel.o src/wrap/_lpc17xx_pwm.o src/wrap/_lpc17xx_qei.o src/wrap/_lpc17xx_rit.o src/wrap/_lpc17xx_rtc.o src/wrap/_lpc17xx_spi.o src/wrap/_lpc17xx_ssp.o src/wrap/_lpc17xx_systick.o src/wrap/_lpc17xx_timer.o src/wrap/_lpc17xx_uart.o src/wrap/_lpc17xx_wdt.o src/wrap/_lpc_types.o src/usb/cdcuser.o src/usb/usbcore.o src/usb/usbdesc.o src/usb/usbhw.o src/usb/usbuser.o src/extras.o src/main.o src/return.o src/ringbuffer.o src/serial.o src/startup.o src/system_LPC17xx.o src/table.o   -lDriversLPC17xxgnu -lgcc -lc
Finished building target: all
 
make --no-print-directory post-build
arm-bare_newlib_cortex_m3_nommu-eabi-objcopy -O binary firmware firmware.bin
 
md5sum firmware > md5sum.txt
git log -1 --pretty=oneline > commit-id.txt
./flash.py
getting sudo password

starting openocd: jtag chain detected
gdb runtime: timeout
kill: No such process
failed. please try again


----------

root@ubuntu:~/cortex-m3/openocd-0.5.0# sudo openocd -f interface/openocd-usb.cfg -f target/lpc1769.cfg
Open On-Chip Debugger 0.5.0 (2012-02-07-03:57)
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
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x23000052, MEM_AP_TAR 0x4
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x23000052, MEM_AP_TAR 0x4
Warn : Block write error address 0x0, wcount 0xff4
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x23000052, MEM_AP_TAR 0x3fd4
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x23000052, MEM_AP_TAR 0x3fd4
Warn : Block write error address 0x3fd0, wcount 0xfec
Info : dropped 'gdb' connection


Any clue ??

Thanks for your help.

--
Juan David Hernández Vega
MSc. Student in Automation and Robotics
Robotics and Automation Center (CAR) UPM-CSIC
Universidad Politécnica de Madrid





------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
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-d2d
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem when flashing the robovero using ubuntu

Petar Durdevic
I get the same error when flashing from ubuntu.

starting openocd: jtag chain detected
gdb runtime: timeout
kill: No such process
failed. please try again

Which crosstool are you using?


Have you tried to build using overo?? it is not working for me as you can see in earlier posts, but maybe it will work for you!?

Regards

Petar Durdevic
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem when flashing the robovero using ubuntu

Juan David Hernández Vega
Hi Petar,

I'm using crosstool 1.9.1, and yes, I did read your posts .. trying to find a solution, but I'm having the same problem.

--
Juan David Hernández Vega
MSc. Student in Automation and Robotics
Robotics and Automation Center (CAR) UPM-CSIC
Universidad Politécnica de Madrid




On Feb 7, 2012, at 3:28 PM, Petar Durdevic wrote:

> I get the same error when flashing from ubuntu.
>
> starting openocd: jtag chain detected
> gdb runtime: timeout
> kill: No such process
> failed. please try again
>
> Which crosstool are you using?
>
>
> Have you tried to build using overo?? it is not working for me as you can
> see in earlier posts, but maybe it will work for you!?
>
> Regards
>
> Petar Durdevic
>
> --
> View this message in context: http://gumstix.8.n6.nabble.com/Flashing-the-robovero-using-an-overo-tp4365290p4372673.html
> Sent from the Gumstix mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> 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-d2d
> _______________________________________________
> gumstix-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gumstix-users


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
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-d2d
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem when flashing the robovero using ubuntu

Brett Hemes-2
In reply to this post by Juan David Hernández Vega
Have you tried the "old fashioned way" on the firmware page? http://robovero.org/index.php/tutorials/firmware
I also had similar issues with the python script but the command line calls worked great.

Brett


2012/2/7 Juan David Hernández Vega <[hidden email]>
Hi everyone,

I'm trying to change robovero's firmware. I have followed all the instructions give at robovero.org. However when trying to update flash memory I'm getting the following messages:

Building target: all
Invoking: GCC C Linker
arm-bare_newlib_cortex_m3_nommu-eabi-ld -nostdlib -L"lib" -Map=firmware.map -T "script.ld"  --gc-sections -o"firmware" src/wrap/_LPC17xx.o src/wrap/_core.o src/wrap/_debug_frmwrk.o src/wrap/_lpc17xx_adc.o src/wrap/_lpc17xx_can.o src/wrap/_lpc17xx_clkpwr.o src/wrap/_lpc17xx_dac.o src/wrap/_lpc17xx_emac.o src/wrap/_lpc17xx_exti.o src/wrap/_lpc17xx_gpdma.o src/wrap/_lpc17xx_gpio.o src/wrap/_lpc17xx_i2c.o src/wrap/_lpc17xx_i2s.o src/wrap/_lpc17xx_libcfg.o src/wrap/_lpc17xx_mcpwm.o src/wrap/_lpc17xx_nvic.o src/wrap/_lpc17xx_pinsel.o src/wrap/_lpc17xx_pwm.o src/wrap/_lpc17xx_qei.o src/wrap/_lpc17xx_rit.o src/wrap/_lpc17xx_rtc.o src/wrap/_lpc17xx_spi.o src/wrap/_lpc17xx_ssp.o src/wrap/_lpc17xx_systick.o src/wrap/_lpc17xx_timer.o src/wrap/_lpc17xx_uart.o src/wrap/_lpc17xx_wdt.o src/wrap/_lpc_types.o src/usb/cdcuser.o src/usb/usbcore.o src/usb/usbdesc.o src/usb/usbhw.o src/usb/usbuser.o src/extras.o src/main.o src/return.o src/ringbuffer.o src/serial.o src/startup.o src/system_LPC17xx.o src/table.o   -lDriversLPC17xxgnu -lgcc -lc
Finished building target: all

make --no-print-directory post-build
arm-bare_newlib_cortex_m3_nommu-eabi-objcopy -O binary firmware firmware.bin

md5sum firmware > md5sum.txt
git log -1 --pretty=oneline > commit-id.txt
./flash.py
getting sudo password

starting openocd: jtag chain detected
gdb runtime: timeout
kill: No such process
failed. please try again


----------

root@ubuntu:~/cortex-m3/openocd-0.5.0# sudo openocd -f interface/openocd-usb.cfg -f target/lpc1769.cfg
Open On-Chip Debugger 0.5.0 <a href="tel:%282012-02-07-03" value="+12012020703">(2012-02-07-03:57)
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
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x23000052, MEM_AP_TAR 0x4
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x23000052, MEM_AP_TAR 0x4
Warn : Block write error address 0x0, wcount 0xff4
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x23000052, MEM_AP_TAR 0x3fd4
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x23000052, MEM_AP_TAR 0x3fd4
Warn : Block write error address 0x3fd0, wcount 0xfec
Info : dropped 'gdb' connection


Any clue ??

Thanks for your help.

--
Juan David Hernández Vega
MSc. Student in Automation and Robotics
Robotics and Automation Center (CAR) UPM-CSIC
Universidad Politécnica de Madrid





------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
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-d2d
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
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-d2d
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem when flashing the robovero using ubuntu

Petar Durdevic
This is what i get if I try to follow the old fashioned way, from Ubuntu



pede@pede-Latitude-13:~$ 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 (GDB) 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=armv7l-build_unknown-linux-gnueabi --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/pede/robovero/firmware/firmware...done.
localhost: unknown host
gdbconfig:1: Error in sourced command file:
localhost:3333: No such file or directory.
(gdb) load
You can't do that when your target is `exec'
(gdb) continue
The program is not being run.
(gdb)


Regards

Petar Durdevic
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem when flashing the robovero using ubuntu

Petar Durdevic
And here is my result from running it from the overo..



pede@pede-Latitude-13:~$ ssh root@192.168.10.196
Last login: Sat Nov 18 16:52:36 2023 from pede-latitude-13.local
root@overo:~# x-tools/arm-bare_newlib_cortex_m3_nommu-eabi/bin/arm-bare_newlib_c
ortex_m3_nommu-eabi-gdb -x gdbconfig robovero/firmware/firmware
GNU gdb (GDB) 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=armv7l-build_unknown-linux-gnueabi --target=arm-bare_newlib_cortex_m3_nommu-eabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
robovero/firmware/firmware: No such file or directory.
0x00000000 in ?? ()
JTAG tap: lpc1768.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x1fff0080 msp: 0x10001ffc
(gdb) load
No executable file specified.
Use the "file" or "exec-file" command.
(gdb) quit
A debugging session is active.

        Inferior 1 [Remote target] will be killed.

Quit anyway? (y or n) y
root@overo:~#


Regards

Petar Durdevic
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem when flashing the robovero using ubuntu

Juan David Hernández Vega
In reply to this post by Brett Hemes-2
This is what I get:

root@ubuntu:~# 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 (GDB) 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=i686-build_pc-linux-gnu --target=arm-bare_newlib_cortex_m3_nommu-eabi".
For bug reporting instructions, please see:

warning: Can not parse XML memory map; XML support was disabled at compile time
0x00000000 in ?? ()
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
Reading symbols from /root/robovero/firmware/firmware...done.
gdbconfig: No such file or directory.
(gdb) load
Loading section .text, size 0x48cd4 lma 0x0
Load failed
(gdb) 

---

root@ubuntu:~/cortex-m3/openocd-0.5.0# sudo openocd -f interface/openocd-usb.cfg -f target/lpc1769.cfg
Open On-Chip Debugger 0.5.0 (2012-02-07-03:57)
Licensed under GNU GPL v2
For bug reports, read
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
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x23000052, MEM_AP_TAR 0x4
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x23000052, MEM_AP_TAR 0x4
Warn : Block write error address 0x0, wcount 0xff4
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x23000052, MEM_AP_TAR 0x3fd4
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x23000052, MEM_AP_TAR 0x3fd4
Warn : Block write error address 0x3fd0, wcount 0xfec


--
Juan David Hernández Vega
MSc. Student in Automation and Robotics
Robotics and Automation Center (CAR) UPM-CSIC
Universidad Politécnica de Madrid




On Feb 7, 2012, at 3:38 PM, Brett Hemes wrote:

Have you tried the "old fashioned way" on the firmware page? http://robovero.org/index.php/tutorials/firmware
I also had similar issues with the python script but the command line calls worked great.

Brett


2012/2/7 Juan David Hernández Vega <[hidden email]>
Hi everyone,

I'm trying to change robovero's firmware. I have followed all the instructions give at robovero.org. However when trying to update flash memory I'm getting the following messages:

Building target: all
Invoking: GCC C Linker
arm-bare_newlib_cortex_m3_nommu-eabi-ld -nostdlib -L"lib" -Map=firmware.map -T "script.ld"  --gc-sections -o"firmware" src/wrap/_LPC17xx.o src/wrap/_core.o src/wrap/_debug_frmwrk.o src/wrap/_lpc17xx_adc.o src/wrap/_lpc17xx_can.o src/wrap/_lpc17xx_clkpwr.o src/wrap/_lpc17xx_dac.o src/wrap/_lpc17xx_emac.o src/wrap/_lpc17xx_exti.o src/wrap/_lpc17xx_gpdma.o src/wrap/_lpc17xx_gpio.o src/wrap/_lpc17xx_i2c.o src/wrap/_lpc17xx_i2s.o src/wrap/_lpc17xx_libcfg.o src/wrap/_lpc17xx_mcpwm.o src/wrap/_lpc17xx_nvic.o src/wrap/_lpc17xx_pinsel.o src/wrap/_lpc17xx_pwm.o src/wrap/_lpc17xx_qei.o src/wrap/_lpc17xx_rit.o src/wrap/_lpc17xx_rtc.o src/wrap/_lpc17xx_spi.o src/wrap/_lpc17xx_ssp.o src/wrap/_lpc17xx_systick.o src/wrap/_lpc17xx_timer.o src/wrap/_lpc17xx_uart.o src/wrap/_lpc17xx_wdt.o src/wrap/_lpc_types.o src/usb/cdcuser.o src/usb/usbcore.o src/usb/usbdesc.o src/usb/usbhw.o src/usb/usbuser.o src/extras.o src/main.o src/return.o src/ringbuffer.o src/serial.o src/startup.o src/system_LPC17xx.o src/table.o   -lDriversLPC17xxgnu -lgcc -lc
Finished building target: all

make --no-print-directory post-build
arm-bare_newlib_cortex_m3_nommu-eabi-objcopy -O binary firmware firmware.bin

md5sum firmware > md5sum.txt
git log -1 --pretty=oneline > commit-id.txt
./flash.py
getting sudo password

starting openocd: jtag chain detected
gdb runtime: timeout
kill: No such process
failed. please try again


----------

root@ubuntu:~/cortex-m3/openocd-0.5.0# sudo openocd -f interface/openocd-usb.cfg -f target/lpc1769.cfg
Open On-Chip Debugger 0.5.0 <a href="tel:%282012-02-07-03" value="+12012020703">(2012-02-07-03:57)
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
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x23000052, MEM_AP_TAR 0x4
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x23000052, MEM_AP_TAR 0x4
Warn : Block write error address 0x0, wcount 0xff4
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x23000052, MEM_AP_TAR 0x3fd4
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x23000052, MEM_AP_TAR 0x3fd4
Warn : Block write error address 0x3fd0, wcount 0xfec
Info : dropped 'gdb' connection


Any clue ??

Thanks for your help.

--
Juan David Hernández Vega
MSc. Student in Automation and Robotics
Robotics and Automation Center (CAR) UPM-CSIC
Universidad Politécnica de Madrid





------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
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-d2d
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
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-d2d_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
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-d2d
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem when flashing the robovero using ubuntu

Petar Durdevic
Juan are you running Ubuntu on your overo?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem when flashing the robovero using ubuntu

Juan David Hernández Vega
On ubuntu 10.04, I'm gonna try on my overo and post you my results.



On Feb 7, 2012, at 4:02 PM, Petar Durdevic wrote:

> Juan are you running Ubuntu on your overo?
>
> --
> View this message in context: http://gumstix.8.n6.nabble.com/Flashing-the-robovero-using-an-overo-tp4365290p4372787.html
> Sent from the Gumstix mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> 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-d2d
> _______________________________________________
> gumstix-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gumstix-users


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
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-d2d
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem when flashing the robovero using ubuntu

Neil MacMunn
Hi guys,

I just updated the documentation for flashing the RoboVero. You no
longer need to download gdbconfig as these commands are included in
.gdbinit. I'm not sure why flash.py isn't working but the output for
gdb might shed some light.

-
Neil

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
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-d2d
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem when flashing the robovero using ubuntu

Petar Durdevic
This is the output when i try to build LPC1700CMSIS:


pede@pede-Latitude-13:~/cortex-m3/lpc17xx.cmsis.driver.library$ sudo make VERBOSE=yes
Building Drivers support package source -> /home/pede/cortex-m3/lpc17xx.cmsis.driver.library/Drivers/source
make[1]: Entering directory `/home/pede/cortex-m3/lpc17xx.cmsis.driver.library/Drivers/source'
CC debug_frmwrk.c
arm-bare_newlib_cortex_m3_nommu-eabi-cc -c -c  -mcpu=cortex-m3  -mthumb  -Wall  -O0  -mapcs-frame  -D__thumb2__=1  -msoft-float  -gdwarf-2  -mno-sched-prolog  -fno-hosted  -mfix-cortex-m3-ldrd   -ffunction-sections  -fdata-sections  -I/home/pede/cortex-m3/lpc17xx.cmsis.driver.library/Drivers/include -I/home/pede/cortex-m3/lpc17xx.cmsis.driver.library/Core/CM3/CoreSupport -I/home/pede/cortex-m3/lpc17xx.cmsis.driver.library/Core/CM3/DeviceSupport/NXP/LPC17xx -I../include  debug_frmwrk.c -o debug_frmwrk.o
make[1]: arm-bare_newlib_cortex_m3_nommu-eabi-cc: Command not found
make[1]: *** [debug_frmwrk.o] Error 127
make[1]: Leaving directory `/home/pede/cortex-m3/lpc17xx.cmsis.driver.library/Drivers/source'
make: *** [fwlib] Error 2
pede@pede-Latitude-13:~/cortex-m3/lpc17xx.cmsis.driver.library$

Regards

Petar Durdevic
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem when flashing the robovero using ubuntu

Dave Hylands
Hi Peter,

On Tue, Feb 7, 2012 at 10:58 AM, Petar Durdevic <[hidden email]> wrote:

> This is the output when i try to build LPC1700CMSIS:
>
>
> pede@pede-Latitude-13:~/cortex-m3/lpc17xx.cmsis.driver.library$ sudo make
> VERBOSE=yes
> Building Drivers support package source ->
> /home/pede/cortex-m3/lpc17xx.cmsis.driver.library/Drivers/source
> make[1]: Entering directory
> `/home/pede/cortex-m3/lpc17xx.cmsis.driver.library/Drivers/source'
> CC debug_frmwrk.c
> arm-bare_newlib_cortex_m3_nommu-eabi-cc -c -c  -mcpu=cortex-m3  -mthumb
> -Wall  -O0  -mapcs-frame  -D__thumb2__=1  -msoft-float  -gdwarf-2
> -mno-sched-prolog  -fno-hosted  -mfix-cortex-m3-ldrd   -ffunction-sections
> -fdata-sections
> -I/home/pede/cortex-m3/lpc17xx.cmsis.driver.library/Drivers/include
> -I/home/pede/cortex-m3/lpc17xx.cmsis.driver.library/Core/CM3/CoreSupport
> -I/home/pede/cortex-m3/lpc17xx.cmsis.driver.library/Core/CM3/DeviceSupport/NXP/LPC17xx
> -I../include  debug_frmwrk.c -o debug_frmwrk.o
> make[1]: arm-bare_newlib_cortex_m3_nommu-eabi-cc: Command not found

Looks like you forgot to add something to your PATH?

You should be able to just type:
arm-bare_newlib_cortex_m3_nommu-eabi-gcc

and you should get the error:
arm-bare_newlib_cortex_m3_nommu-eabi-gcc: no input files

if arm-bare_newlib_cortex_m3_nommu-eabi-gcc is in your PATH, otherwise
you'll get:

arm-bare_newlib_cortex_m3_nommu-eabi-cc: Command not found

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

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
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-d2d
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem when flashing the robovero using ubuntu

Petar Durdevic
Hi Dave

I am sorry, but are you reffering to the flashconfig PATH for the openocd and gdb or??

Regards

Petar Durdevic
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem when flashing the robovero using ubuntu

Dave Hylands
Hi Peter,

On Tue, Feb 7, 2012 at 1:10 PM, Petar Durdevic <[hidden email]> wrote:
> Hi Dave
>
> I am sorry, but are you reffering to the flashconfig PATH for the openocd
> and gdb or??

Hmm. I see that the missing command was:

arm-bare_newlib_cortex_m3_nommu-eabi-cc

So it looks like it might not be a path problem at all.

It should have read arm-bare_newlib_cortex_m3_nommu-eabi-gcc (i.e. use
gcc not cc)

and that's controlled by one of the CMSIS makefiles. Did you maybe
accidentally delete the g when you edited one of the Makefiles?

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

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
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-d2d
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem when flashing the robovero using ubuntu

Petar Durdevic
Hi Dave

And thanks for your help.

I am having hard time finding this error, but do not recall doing this, 'deleting the g'.

Regards

Petar
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem when flashing the robovero using ubuntu

Dave Hylands
HI Peter,

On Tue, Feb 7, 2012 at 4:04 PM, Petar Durdevic <[hidden email]> wrote:
> Hi Dave
>
> And thanks for your help.
>
> I am having hard time finding this error, but do not recall doing this,
> 'deleting the g'.

And right you are. I tried typing

which arm-bare_newlib_cortex_m3_nommu-eabi-cc

and it reported:

arm-bare_newlib_cortex_m3_nommu-eabi-cc is hashed
(/home/dhylands/x-tools/arm-bare_newlib_cortex_m3_nommu-eabi/bin/arm-bare_newlib_cortex_m3_nommu-eabi-cc)

and I have /home/dhylands/x-tools/arm-bare_newlib_cortex_m3_nommu-eabi/bin/
in my PATH.

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

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
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-d2d
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem when flashing the robovero using ubuntu

Petar Durdevic
Dave can you flash the firmware by using the Overo, and than running ./flash.py??

With every attempt, it says


root@overo:~/robovero/firmware# ./flash.py
getting sudo password

starting openocd: jtag chain detected
gdb runtime: timeout
failed. please try again


I do not know what to do anymore, and the original bandwidth is just not acceptable, as i am building a segway robot for my 8 semester project, and i need an bandwidth of approximately 100 Hz, not 5Hz.

I am seriously considering a sparkfun IMU unit.  
12
Loading...