public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] How to build an ecos application "redboot-aware"
@ 2013-04-06  9:49 Davide Pippa
  2013-04-06 10:36 ` Ilija Kocho
  0 siblings, 1 reply; 2+ messages in thread
From: Davide Pippa @ 2013-04-06  9:49 UTC (permalink / raw)
  To: ecos-discuss

Hi!

I'm trying to use redboot with a TWR-K70F120M board.
I've succeeded in doing the following:
- got a rom with redboot compiled and running;
- can connect to redboot console thru osbdm usb virtual serial port
(using P&E micro terminal);
- can connect to redboot console thru ethernet (I set the IP to
12.13.14.216 and connect to port 9000);
Now I'm trying to use GDB to debug an application.
I've tried with an application I used to work with (a simple demo
blinking leds and sending udp packets),
but I cannot successfully load it thru gdb, i see that:

$ arm-eabi-gdb demo1.elf
GNU gdb (eCos GNU Tools 4.6.3-20120623) 7.4.1
Copyright (C) 2012 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-pc-cygwin --target=arm-eabi".
For bug reporting instructions, please see:
<http://bugs.ecos.sourceware.org/>...
Reading symbols from /cygdrive/h/Works/Arm/PyIde/proj/demo1/Debug/demo1.elf...do
ne.
(gdb) target remote 12.13.14.216:9000
Remote debugging using 12.13.14.216:9000
update_arp_entry (netif=0x0, ipaddr=0x0, ethaddr=0x0, flags=<optimized out>)
    at /cygdrive/h/Works/Arm/PyIde/build/ecos/packages/net/lwip_tcpip/current/sr
c/netif/etharp.c:480
480           ip_addr_ismulticast(ipaddr)) {
(gdb) load
Loading section .rom_vectors, size 0x8 lma 0x0
Loading section .kinetis_misc, size 0x3b0 lma 0x8
Loading section .flash_conf, size 0x10 lma 0x400
Loading section .ARM.exidx, size 0x8 lma 0x410
Loading section .text, size 0x11f10 lma 0x418
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Remote communication error.  Target disconnected.: Connection reset by peer.
(gdb)
(gdb)

I suppose some problem comes from the fact that this application was
compiled to work "stand-alone",
without any redboot support (I mean I used to download the image with
openocd, without any redboot
thing build and debugging with openocd only).
What kind of configuration change should I do to make an application
"redboot-aware"?
Is there any of the available templates (for the TWR-K70F120M) already
built for that?
Or, can I start from the usual template (I use the lwip_eth template)
and modify it to
support redboot?
Or am I missing something else?

Thanks!

Pyper

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] How to build an ecos application "redboot-aware"
  2013-04-06  9:49 [ECOS] How to build an ecos application "redboot-aware" Davide Pippa
@ 2013-04-06 10:36 ` Ilija Kocho
  0 siblings, 0 replies; 2+ messages in thread
From: Ilija Kocho @ 2013-04-06 10:36 UTC (permalink / raw)
  To: Davide Pippa; +Cc: ecos-discuss

Hi David

Probably you are using default startup type that is ROM(Platform). For
RedBoot you need to select RAM startup. All other startups than RAM you
can debug by menas of JTAG (OSBDM, etc).

There's no special template for RedBoot. Every configuration is, to
quote you "RedBoot aware" when you select RAM startup.

Ilija


On 06.04.2013 11:49, Davide Pippa wrote:
> Hi!
>
> I'm trying to use redboot with a TWR-K70F120M board.
> I've succeeded in doing the following:
> - got a rom with redboot compiled and running;
> - can connect to redboot console thru osbdm usb virtual serial port
> (using P&E micro terminal);
> - can connect to redboot console thru ethernet (I set the IP to
> 12.13.14.216 and connect to port 9000);
> Now I'm trying to use GDB to debug an application.
> I've tried with an application I used to work with (a simple demo
> blinking leds and sending udp packets),
> but I cannot successfully load it thru gdb, i see that:
>
> $ arm-eabi-gdb demo1.elf
> GNU gdb (eCos GNU Tools 4.6.3-20120623) 7.4.1
> Copyright (C) 2012 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-pc-cygwin --target=arm-eabi".
> For bug reporting instructions, please see:
> <http://bugs.ecos.sourceware.org/>...
> Reading symbols from /cygdrive/h/Works/Arm/PyIde/proj/demo1/Debug/demo1.elf...do
> ne.
> (gdb) target remote 12.13.14.216:9000
> Remote debugging using 12.13.14.216:9000
> update_arp_entry (netif=0x0, ipaddr=0x0, ethaddr=0x0, flags=<optimized out>)
>     at /cygdrive/h/Works/Arm/PyIde/build/ecos/packages/net/lwip_tcpip/current/sr
> c/netif/etharp.c:480
> 480           ip_addr_ismulticast(ipaddr)) {
> (gdb) load
> Loading section .rom_vectors, size 0x8 lma 0x0
> Loading section .kinetis_misc, size 0x3b0 lma 0x8
> Loading section .flash_conf, size 0x10 lma 0x400
> Loading section .ARM.exidx, size 0x8 lma 0x410
> Loading section .text, size 0x11f10 lma 0x418
> Ignoring packet error, continuing...
> Ignoring packet error, continuing...
> Remote communication error.  Target disconnected.: Connection reset by peer.
> (gdb)
> (gdb)
>
> I suppose some problem comes from the fact that this application was
> compiled to work "stand-alone",
> without any redboot support (I mean I used to download the image with
> openocd, without any redboot
> thing build and debugging with openocd only).
> What kind of configuration change should I do to make an application
> "redboot-aware"?
> Is there any of the available templates (for the TWR-K70F120M) already
> built for that?
> Or, can I start from the usual template (I use the lwip_eth template)
> and modify it to
> support redboot?
> Or am I missing something else?
>
> Thanks!
>
> Pyper
>


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-06 10:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-06  9:49 [ECOS] How to build an ecos application "redboot-aware" Davide Pippa
2013-04-06 10:36 ` Ilija Kocho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).