This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: redboot on STM3240G-EVAL board
- From: Sergei Gavrikov <sergei dot gavrikov at gmail dot com>
- To: Oleg Uzenkov <o dot uzenkov at unicore dot co dot ua>
- Cc: eCos Discussion <ecos-discuss at sourceware dot org>
- Date: Thu, 16 Oct 2014 18:01:31 +0300 (FET)
- Subject: Re: redboot on STM3240G-EVAL board
- Authentication-results: sourceware.org; auth=none
- References: <542D110B dot 9080002 at unicore dot co dot ua> <542E8B41 dot 8030905 at dallaway dot org dot uk> <5436726C dot 8000703 at unicore dot co dot ua> <alpine dot DEB dot 2 dot 00 dot 1410091628430 dot 5392 at sg-laptop> <543696C4 dot 2040201 at unicore dot co dot ua> <alpine dot DEB dot 2 dot 00 dot 1410091716530 dot 5580 at sg-laptop> <5437742F dot 7020908 at unicore dot co dot ua> <alpine dot DEB dot 2 dot 00 dot 1410100906150 dot 1839 at sg-pc dot belvok dot com> <54379E39 dot 4070804 at unicore dot co dot ua> <alpine dot DEB dot 2 dot 00 dot 1410101654110 dot 7877 at sg-laptop> <543E5F88 dot 2050002 at unicore dot co dot ua> <alpine dot DEB dot 2 dot 00 dot 1410151724130 dot 6062 at sg-laptop> <543F7CFC dot 5010104 at unicore dot co dot ua>
On Thu, 16 Oct 2014, Oleg Uzenkov wrote:
> Thanks Sergei!
>
> I can confirm that loading and running .bin files works now ))
>
> For someone with the same problem here is a piece of information:
>
> 1. From objdump command below we see that .rom_vectors section
> address is 0x64008000 and .text section starts at 0x64008110.
...
To be more precise, .text begins itself from 'reset_vector' address (it
is public label). See arch's target.ld and vectors.S sources.
> 2. Check Entry point address with readelf command. In my case Entry
> point address: 0x64008111
...
It is strange value as 0x64008111 is odd address, but 'reset_vector'
address for your arch should be aligned on 2-bytes boundary. I believe
that entry address is 0x64008110 or some even address. Try in GDB
(gdb) load
(gdb) print $pc
(gdb) print reset_vector
or disassembly
% arm-eabi-objdump -d app.elf | more
I think you see 0x64008110.
> 3. Now load .bin
>
> RedBoot> load -m x -r -b 0x64008000
> CRaw file loaded 0x64008000-0x6400df27, assumed entry at 0x64008000
> xyzModem - CRC mode, 191(SOH)/0(STX)/0(CAN) packets, 5 retries
> RedBoot>
>
> 4. Now run binary with:
> RedBoot> go 0x64008111
Just wondering, 'go 0x640008110' does not work?
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