This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

i386 problem


Hi,

I tried till long ago running an eCos application on the PC target again. 
Everything was working fine, but the application won't run :-(.

- Redboot is starting from floppy.
- gdb connects via net and via serial line.
- The application is builded for startup type RAM

$ ecosconfig new pc
$ ecosconfig tree
$ make
$ cd ex
$ i386-elf-gcc -c -o hello.o -g -Wall -I../install/include 
-ffunction-sections -fdata-sections hello.c
$ i386-elf-gcc -nostartfiles -L../install/lib -Wl,--gc-sections -o hello 
hello.o -Ttarget.ld -nostdlib

- loading the application works
target remote 192.168.1.155:9000
load
b main
c

-->

nothing is happen!

I have set a breakpoint at "hal_platform_init".
I can step till:

    // ISR table setup: plant the default ISR in all interrupt handlers
    // and the default interrupt VSR in the equivalent VSR table slots.
    for (vector = CYGNUM_HAL_ISR_MIN; vector <= CYGNUM_HAL_ISR_MAX; vector++)
    {
        cyg_uint32 index;
        HAL_TRANSLATE_VECTOR( vector, index );
here >> hal_interrupt_handlers[index] = (CYG_ADDRESS) HAL_DEFAULT_ISR;
        HAL_VSR_SET( vector, &__default_interrupt_vsr, NULL );
    }

but after vector is 70, the application stops at this line.

(the same over serial line)

Does anybody know what's going wrong?

Roland

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]