public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* RE: [ECOS] Insight 5.1.1 with Angel /serial debugger
@ 2002-02-28 20:20 Jing Luo
  2002-02-28 22:49 ` Charles-Henri Balet
  2002-03-01 11:42 ` Jonathan Larmour
  0 siblings, 2 replies; 6+ messages in thread
From: Jing Luo @ 2002-02-28 20:20 UTC (permalink / raw)
  To: 'Jesper Skov', Jing Luo
  Cc: 'Charles-Henri Balet', eCos Discuss

Hi,
Thanks Jesper. Now I know porting eCos is not that easy.

I choose the second option you suggested - port Redboot.

I changed the hal-platform-setup.h for hardware initialization.

I want to start Redboot from RAM, but the problem is the memory layout came
out is not the way I wanted as the following.
[mlt_arm_mytarget_ram.ldi]
// eCos memory layout - Thu Feb 28 18:55:04 2002

// This is a generated file - do not edit

#include <cyg/infra/cyg_type.inc>

MEMORY
{
    ram : ORIGIN = 0xc0000000, LENGTH = 0x2000000
}

SECTIONS
{
    SECTIONS_BEGIN
    SECTION_fixed_vectors (ram, 0xc0000000, LMA_EQ_VMA)
    SECTION_rom_vectors (ram, 0xc0020000, LMA_EQ_VMA)
    SECTION_text (ram, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_fini (ram, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_rodata (ram, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_rodata1 (ram, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_fixup (ram, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_gcc_except_table (ram, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_data (ram, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_bss (ram, ALIGN (0x4), LMA_EQ_VMA)
    CYG_LABEL_DEFN(__heap1) = ALIGN (0x8);
    SECTIONS_END
}

After build library and look in the map, __exception_handlers start from
address 0x20000 which is in the ROM.
I am confused about that. How can I make it run from RAM?

Have anyone had experience to run Redboot from RAM?

Another question about the linker file:
what LMA_EQ_VMA mean?

Thanks,

-----Original Message-----
From: Jesper Skov [mailto:jskov@redhat.com]
Sent: Thursday, February 28, 2002 12:24 AM
To: Jing Luo
Cc: 'Charles-Henri Balet'; eCos Discuss
Subject: RE: [ECOS] Insight 5.1.1 with Angel /serial debugger


On Wed, 2002-02-27 at 03:45, Jing Luo wrote:
> The same problem with me when I am trying to port eCos to 80200EVB.
> But my configuration is disable of CYGIMP_HAL_PROCESS_ALL_EXCEPTIONS and
> enable of of CYGSEM_HAL_USE_ROM_MONITOR.
> 
> If this one doesn't work, how I can do to debug eCos?

and

> I use Insight 5.1.1 on an ARM processor on a board with Angel 1.20, the
> link, download, debugger work fine,
> my problem, the ecos startup code in the Vectors.s file, this startup
> replace vectors in the vector table and when the
> vector of the undefined instruction is replaced, insight freeze, I'm have
to
> start step by step and the problem is
> on the line "str     r2,[r0,#0x24]"

The problem is that Angel is using the CPU exception to do the
single-stepping. When the eCos HAL executes and takes over that
exception, Angel essentially dies.

What you want to do is either (a) comment out that code to debug the
application with Angel or (b) port RedBoot and make it the primary
monitor and debug agent of the system.

RedBoot knows how to debug eCos applications, Angel does not.

Jesper

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

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: [ECOS] Insight 5.1.1 with Angel /serial debugger
@ 2002-02-26 21:55 Jing Luo
  2002-02-28  0:27 ` Jesper Skov
  0 siblings, 1 reply; 6+ messages in thread
From: Jing Luo @ 2002-02-26 21:55 UTC (permalink / raw)
  To: 'Charles-Henri Balet', ecos-discuss

The same problem with me when I am trying to port eCos to 80200EVB.
But my configuration is disable of CYGIMP_HAL_PROCESS_ALL_EXCEPTIONS and
enable of of CYGSEM_HAL_USE_ROM_MONITOR.

If this one doesn't work, how I can do to debug eCos?

Thanks,
-----Original Message-----
From: Charles-Henri Balet [mailto:charles-henri@bluewin.ch]
Sent: Tuesday, February 26, 2002 9:58 AM
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] Insight 5.1.1 with Angel /serial debugger


Hi,
I use Insight 5.1.1 on an ARM processor on a board with Angel 1.20, the
link, download, debugger work fine,
my problem, the ecos startup code in the Vectors.s file, this startup
replace vectors in the vector table and when the
vector of the undefined instruction is replaced, insight freeze, I'm have to
start step by step and the problem is
on the line "str     r2,[r0,#0x24]"

this is the part of the warm_reset where the problem appear :

        mov     r0,#0           // move vectors
        ldr     r1,=__exception_handlers
#ifndef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
        // Wait with this if stubs are included (see further down).
        ldr     r2,[r1,#0x04]   // undefined instruction
        str     r2,[r0,#0x04]
        ldr     r2,[r1,#0x24]
        str     r2,[r0,#0x24]
#endif
        ldr     r2,[r1,#0x08]   // software interrupt
        str     r2,[r0,#0x08]

I have built an "RAM" startup, with enable of
CYGIMP_HAL_PROCESS_ALL_EXCEPTIONS
and disable of CYGSEM_HAL_USE_ROM_MONITOR.

any has any idea, can we modify the vectors table with an Angel debugger ?

many thanks

balet charles-henri







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

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

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [ECOS] Insight 5.1.1 with Angel /serial debugger
@ 2002-02-26 14:39 Charles-Henri Balet
  0 siblings, 0 replies; 6+ messages in thread
From: Charles-Henri Balet @ 2002-02-26 14:39 UTC (permalink / raw)
  To: ecos-discuss

Hi,
I use Insight 5.1.1 on an ARM processor on a board with Angel 1.20, the
link, download, debugger work fine,
my problem, the ecos startup code in the Vectors.s file, this startup
replace vectors in the vector table and when the
vector of the undefined instruction is replaced, insight freeze, I'm have to
start step by step and the problem is
on the line "str     r2,[r0,#0x24]"

this is the part of the warm_reset where the problem appear :

        mov     r0,#0           // move vectors
        ldr     r1,=__exception_handlers
#ifndef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
        // Wait with this if stubs are included (see further down).
        ldr     r2,[r1,#0x04]   // undefined instruction
        str     r2,[r0,#0x04]
        ldr     r2,[r1,#0x24]
        str     r2,[r0,#0x24]
#endif
        ldr     r2,[r1,#0x08]   // software interrupt
        str     r2,[r0,#0x08]

I have built an "RAM" startup, with enable of
CYGIMP_HAL_PROCESS_ALL_EXCEPTIONS
and disable of CYGSEM_HAL_USE_ROM_MONITOR.

any has any idea, can we modify the vectors table with an Angel debugger ?

many thanks

balet charles-henri







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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-03-01 19:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-28 20:20 [ECOS] Insight 5.1.1 with Angel /serial debugger Jing Luo
2002-02-28 22:49 ` Charles-Henri Balet
2002-03-01 11:42 ` Jonathan Larmour
  -- strict thread matches above, loose matches on Subject: below --
2002-02-26 21:55 Jing Luo
2002-02-28  0:27 ` Jesper Skov
2002-02-26 14:39 Charles-Henri Balet

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).