public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Sergei Gavrikov <sergei.gavrikov@gmail.com>
To: Oleg Uzenkov <o.uzenkov@unicore.co.ua>
Cc: eCos Discussion <ecos-discuss@sourceware.org>
Subject: Re: [ECOS] redboot on STM3240G-EVAL board
Date: Wed, 15 Oct 2014 14:45:00 -0000	[thread overview]
Message-ID: <alpine.DEB.2.00.1410151724130.6062@sg-laptop> (raw)
In-Reply-To: <543E5F88.2050002@unicore.co.ua>

On Wed, 15 Oct 2014, Oleg Uzenkov wrote:

> > For binaries you have to know the first LMA address (rom_vectors
> > address) to specify that address on a command line.
> >
> > For binary image
> >
> >    load -m x -r -b <LMA>
> >    fis create -b <LMA> <name>
> Please, let me know what do you think of this:
>
> 1) I have built app.elf and app.bin for *RAM* startup
> (SECTION_rom_vectors: LMA == 0x64008000 ) (memory layout is
> mlt_cortexm_stm32x0g_eval_ram.ldi)
>
> 2) I can successfuly run app.elf under redboot (i.e. >load -m x; >go)
>
> 3) When I load app.bin like this:
> >load -m x -r -b 0x64008000
> >go 0x64008000
> or
> >go

RedBoot 'load' command does stat info about 'Entry point'. For example
on my ARM target

  RedBoot> load -m y
  Entry point: 0x81008040, address range: 0x81008000-0x81013890
  xyzModem - CRC mode, 627(SOH)/0(STX)/0(CAN) packets, 2 retries
  RedBoot>

Load address 0x81008000 and entry point (LMA of .text) is 0x81008040.

If I load a binary, I got something likes this

  RedBoot> load -m y -r -b 0x81008000
  CRaw file loaded 0x81008000-0x8101388f, assumed entry at 0x81008000
  xyzModem - CRC mode, 372(SOH)/0(STX)/0(CAN) packets, 3 retries
  RedBoot>

RedBoot has no clue where start from (it can guess only, 'assumed
entry')

From your old message

  http://ecos.sourceware.org/ml/ecos-discuss/2014-10/msg00007.html

I see that after loading PC register will be set to 0x64008110, so try

  RedBoot> go 0x64008110

> I get rubbish ($T080f:00800064;0d:e8cf1b64;)

Connect GDB to get it.

> (i also tried to create fis and load and run image from fis, same
> result, i.e.
> >fis create -b 0x64008000 app; >fis load app; >go)
>
> any ideas where I am wrong?

See/try above.

>
> Did anyone manage to execute .bin file from Redboot?

It should work.

HTH

Sergei

-- 
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:[~2014-10-15 14:45 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-02  8:47 [ECOS] redboot on STM32f4-discovery board Oleg Uzenkov
2014-10-03 11:40 ` [ECOS] " John Dallaway
2014-10-04 14:27   ` "Ilija Kocho [Илија Кочо]"
2014-10-05  8:32     ` Oleg Uzenkov
2014-10-05  9:56       ` "Ilija Kocho [Илија Кочо]"
2014-10-09 15:48     ` [ECOS] " Oleg Uzenkov
2014-10-09 18:44       ` [ECOS] " John Dallaway
2014-10-09 21:12       ` [ECOS] " Sergei Gavrikov
2014-10-13 11:59         ` Oleg Uzenkov
2014-10-13 15:10           ` Sergei Gavrikov
2014-10-09 11:33   ` [ECOS] redboot on STM3240G-EVAL board Oleg Uzenkov
2014-10-09 12:36     ` Edgar Grimberg
2014-10-09 13:42       ` Oleg Uzenkov
2014-10-09 13:45     ` Sergei Gavrikov
2014-10-09 14:08       ` Oleg Uzenkov
2014-10-09 14:35         ` Sergei Gavrikov
2014-10-10  5:52           ` Oleg Uzenkov
2014-10-10  7:55             ` Sergei Gavrikov
2014-10-10  8:52               ` Oleg Uzenkov
2014-10-10 15:58                 ` Sergei Gavrikov
2014-10-15 11:50                   ` Oleg Uzenkov
2014-10-15 14:45                     ` Sergei Gavrikov [this message]
2014-10-16  8:08                       ` Oleg Uzenkov
2014-10-16 15:01                         ` Sergei Gavrikov
2014-10-17  9:15                           ` Oleg Uzenkov

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=alpine.DEB.2.00.1410151724130.6062@sg-laptop \
    --to=sergei.gavrikov@gmail.com \
    --cc=ecos-discuss@sourceware.org \
    --cc=o.uzenkov@unicore.co.ua \
    /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).