public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Edgar Grimberg <edgar.grimberg@gmail.com>
To: Oleg Uzenkov <o.uzenkov@unicore.co.ua>
Cc: eCos Discussion <ecos-discuss@sourceware.org>
Subject: Re: [ECOS] small custom bootloader to start an app stored in flash
Date: Thu, 23 Oct 2014 12:53:00 -0000	[thread overview]
Message-ID: <CAPrjMDCdT9ddPowRvQmaKh396tYwt7yWLzKNQB+83Asi0f71jw@mail.gmail.com> (raw)
In-Reply-To: <CAPrjMDBeetQ+sEYswv7dF=bcFuqpjpqOhtjfNBC+oMFuXzT_8A@mail.gmail.com>

>>> 4. Try starting your application (0x08020000) from the debugger
>>> directly, see if you get the printf.
>>
>> ...
>> (gdb) load
>> Loading section .rom_vectors, size 0x8 lma 0x8020000
>> Loading section .ARM.extab, size 0x3c lma 0x8020008
>> Loading section .ARM.exidx, size 0xc8 lma 0x8020048
>> Loading section .text, size 0x586c lma 0x8020110
>> Loading section .rodata, size 0x10d lma 0x8025980
>> Loading section .data, size 0x268 lma 0x8025a98
>> Start address 0x8020110, load size 23789
>> Transfer rate: 3 KB/sec, 3398 bytes/write.
>> (gdb) next
>> Cannot find bounds of current function
>> ...
>
> Does it display the printf if you continue? If not, this confirms the
> theory that the application does not start correctly from its start
> address.

To gather more evidence, in GDB, can you disassemble the code from
0x08020000 to 0x08020008 ?

(gdb) disas 0x08020000, 0x08020008

-- 
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-23 12:53 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-21  8:27 Oleg Uzenkov
2014-10-21 11:02 ` Gary Thomas
2014-10-21 13:25 ` Edgar Grimberg
     [not found] ` <CAPrjMDAi=cqTSQ-d-c9FF53W-c6=v0j8rzSLQfuTcBQUY43Zpw@mail.gmail.com>
2014-10-22 11:08   ` Oleg Uzenkov
2014-10-22 13:17     ` Edgar Grimberg
2014-10-22 14:40       ` Oleg Uzenkov
2014-10-23  9:55         ` Edgar Grimberg
2014-10-23 12:53           ` Edgar Grimberg [this message]
2014-10-23 15:03             ` Oleg Uzenkov
2014-10-23 19:25               ` Rainer Arndt
2014-10-23 21:21               ` Sergei Gavrikov
2014-10-24  7:44                 ` Oleg Uzenkov
2014-10-24  8:36                   ` Sergei Gavrikov
2014-10-24  9:13                     ` Sergei Gavrikov
2014-10-24  9:13                     ` Oleg Uzenkov
2014-10-22 19:01     ` Rainer Arndt
2014-10-23 11:50       ` 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=CAPrjMDCdT9ddPowRvQmaKh396tYwt7yWLzKNQB+83Asi0f71jw@mail.gmail.com \
    --to=edgar.grimberg@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).