public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: tangwei <tziang@hotmail.com>
To: <ilijak@siva.com.mk>
Cc: <ecos-discuss@ecos.sourceware.org>
Subject: RE: [ECOS] Re: Troubles when develop app with Kwikstik
Date: Fri, 07 Sep 2012 03:29:00 -0000	[thread overview]
Message-ID: <BAY163-W63232CBDFAF9527B4E1D03C0AF0@phx.gbl> (raw)
In-Reply-To: <503B1940.1000608@siva.com.mk>


Dear Ilija,

you said

> SRAM startup is not intended for use with Redboot but with JTAG. You can
> use OpenOCD or J-Link.

but I found many examples in the net,which use Redboot(ROM startup burn into the on-chip flash)to debug the RAM startup APP(elf fomat) by the gdb com connect style not JTAG.

steps are same as I have mentioned below. Do you mean only the Kwikstik not support this debug style? Thanks



----------------------------------------
> Date: Mon, 27 Aug 2012 08:52:48 +0200
> From: ilijak@siva.com.mk
> To: tziang@hotmail.com
> CC: ecos-discuss@ecos.sourceware.org
> Subject: [ECOS] Re: Troubles when develop app with Kwikstik
>
> On 21.08.2012 05:52, tangwei wrote:
> > Dear all,
> >
> > I have a FreeScale's Kwikstik board,and have troubles when develop
> > with it as below
> >
> > setp1:Use the default redboot setting for KwikStik,and then download
> > the bin into the flash,
> > then connect the COM,I get the below string on the computer,it seems
> > the redboot is OK.
> >
> > Platform: Freescale KwikStik (Cortex-M4)
> > RAM: 0x1fff8000-0x20007000 [0x1fffb6a8-0x20007000 available]
> > RedBoot>
> >
> > step2:Prepare the app from the examples directory (ELF fomart)
> > If I use the default kernel setting(the startup setting is ROM),build
> > the examples with the kernel,
> > get the hello(elf fomart).
> > then use the gdb tool download the hello
> > (gdb) set remotebaud 38400
> > (gdb) target remote /dev/ttyUSB0
> > Remote debugging using /dev/ttyUSB0
> > 0x00003aa2 in ?? ()
> > (gdb) load hello
> > Loading section .rom_vectors, size 0x8 lma 0x0
> > Load failed
> > (gdb)
> >
>
> You can't load ROM startup with RedBoot. There is an experimental FLASH
> startup
> http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001623 that will enable
> loading applications in Flash by means of Internal Flash driver
> http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001561 . With these you
> should be able to load and run application, but GDB usage is limited
> because current GDB stub doesn't support hardware breakpoints.
>
> > if I use the starup setting SRAM for the kernel,then do as above
> >
> > (gdb) set remotebaud 38400
> > (gdb) target remote /dev/ttyUSB0
> > Remote debugging using /dev/ttyUSB0
> > 0x00003aa2 in ?? ()
> > (gdb) load hello
> > Loading section .rom_vectors, size 0x8 lma 0x1fff8400
> > Loading section .ARM.exidx, size 0x10 lma 0x1fff8408
> > Loading section .text, size 0x4dbc lma 0x1fff8418
> > Ignoring packet error, continuing...
> > Ignoring packet error, continuing...
> > Ignoring packet error, continuing...
> > Ignoring packet error, continuing...
> > Ignoring packet error, continuing...
> >
> > I want to download the app to the RAM for debug,so I think the second
> > kernel startup setting is right,
> > but I don't know somewhere else to make the change,
> > can anyone help me,where is the bug, and how to debug?
> >
>
> SRAM startup is not intended for use with Redboot but with JTAG. You can
> use OpenOCD or J-Link.
>
> I hope this helps.
>
> Ilija
>
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
 		 	   		  

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

  reply	other threads:[~2012-09-07  3:29 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-20  6:19 [ECOS] kinetis kwikstik redboot trouble tangwei
2012-06-20  6:25 ` tangwei
2012-06-20 11:18 ` Ilija Kocho
2012-06-21  1:00   ` tangwei
2012-06-21  6:36     ` Ilija Kocho
2012-06-26  6:39       ` [ECOS] kinetis kwikstik's ecos trouble tangwei
2012-06-26  8:26         ` Ilija Kocho
2012-06-26  9:07           ` tangwei
2012-06-26 10:27         ` Ilija Kocho
2012-06-28  3:22           ` tangwei
2012-06-30 10:19             ` Ilija Kocho
2012-07-02  5:52               ` tangwei
2012-07-03  7:10                 ` Ilija Kocho
2012-07-06  1:01                   ` [ECOS] eCos for FujitSu's MB9B506(cortex-M3) tangwei
     [not found]                   ` <BAY163-W35405946B43D33AF82284DC0B80@phx.gbl>
2012-08-21  3:56                     ` [ECOS] RE: Troubles when develop app with Kwikstik tangwei
2012-08-27  6:53                     ` [ECOS] " Ilija Kocho
2012-09-07  3:29                       ` tangwei [this message]
2012-09-07  8:48                         ` Ilija Kocho
2012-06-28  3:23           ` [ECOS] kinetis kwikstik's ecos trouble tangwei

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY163-W63232CBDFAF9527B4E1D03C0AF0@phx.gbl \
    --to=tziang@hotmail.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=ilijak@siva.com.mk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).