public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Martin Rösch" <martin.roesch@neratec.com>
To: "discuss, eCos" <ecos-discuss@ecos.sourceware.org>
Subject: Re: [ECOS] Re: Different section placement for kernel and application
Date: Sun, 30 Jan 2011 09:31:00 -0000	[thread overview]
Message-ID: <191410922.8074.1296234413351.JavaMail.root@idefix> (raw)
In-Reply-To: <ihuqhu$c05$2@dough.gmane.org>

Hi,

> > AFAIK, GDB stubs don't know how to program flash (and there's no
> > indication it attempted to do so),
> 
> I posted too quickly. It appears that gdb did try to load
> .rom_vectors .ecos.text .ecos.rodata into flash. After you do the
> load (but before you "continue"), can you verify that the code
> actually got loaded into flash? I didn't think that the gdb stubs
> knew how to write to flash.

Yes, you are right. Here is the log of how i tried to verify:
(gdb) set *((int*)0x8010000) = 0x00000000
(gdb) x/4 0x8010000
0x8010000 <hal_vsr_table_init>:	0x02e4f04f	0xf8df4b1d	0x47e0c078	0x491a4819
(gdb) x/4 0x68000000
0x68000000 <select_stop_bits>:	0x00001000	0x00000000	0x00003000	0x00002000
(gdb) set *((int*)0x68000000) = 0xDEADBEEF
(gdb) x/4 0x68000000
0x68000000 <select_stop_bits>:	0xdeadbeef	0x00000000	0x00003000	0x00002000
(gdb) load
Loading section .rom_vectors, size 0x8 lma 0x8010000
Loading section .ecos.text, size 0x10bcc lma 0x8010008
Loading section .ecos.rodata, size 0x49dc lma 0x8020bd8
Loading section .ARM.exidx, size 0x10 lma 0x64008000
Loading section .text, size 0x924 lma 0x64008010
Loading section .rodata, size 0x108 lma 0x64008938
Loading section .data, size 0xdcc lma 0x68000000
Start address 0x8010009, load size 93624
Transfer rate: 9 KB/sec, 300 bytes/write.
(gdb) x/4 0x8010000
0x8010000 <hal_vsr_table_init>:	0x02e4f04f	0xf8df4b1d	0x47e0c078	0x491a4819
(gdb)

It seem's like it is not working to write to the flash with the GDB stubs. But I
think there is an option in the RedBoot ROM monitor configuration to allow that.
But I will first try to load the image with openocd...

Thank you for your help!

Greetings,

Martin

-- 
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:[~2011-01-28 17:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2815371.163.1296147619546.JavaMail.neratec@martin-lucid32>
2011-01-27 17:56 ` [ECOS] " Martin Rösch
2011-01-27 18:24   ` Christophe Coutand
2011-01-27 22:01   ` [ECOS] " Grant Edwards
2011-01-28 16:19     ` Martin Rösch
2011-01-28 16:25       ` Grant Edwards
2011-01-28 17:07         ` Grant Edwards
2011-01-30  9:31           ` Martin Rösch [this message]
     [not found]         ` <2029563421.8440.1296480614291.JavaMail.root@idefix>
2014-05-19  9:45           ` Badreddine

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=191410922.8074.1296234413351.JavaMail.root@idefix \
    --to=martin.roesch@neratec.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    /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).