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]

Debugging e7t board with Multi-ICE


Dear all,
I sent this question while ago, but may be since then somebody successfully
set the Multi-ICE
debugging environment with eCOS thread-awareness?
In its original form vector.s has a problem:

#ifdef CYGHWR_HAL_ARM_ICE_THREAD_SUPPORT
        ldr     r2,=ice_thread_vector
//BLD!        sub     r2,r2,r1        // compute fixed (low memory) address
        ldr     r3,=0x4D494345  // 'MICE'
        str     r3,[r2],#4

in the commented instruction r2 is the ice_tread_vector which resides in
section ".fixed_vectors"
which in my case has the absolute address 0x20 (the vector itself has the
absolute address 0x150)
r1 is the __exception_handlers which has address 0x10000
This way the sub result got negative.

I commented out the sub instruction, now the sting MICE got written to the
address 0x150.

It is still not good because server expects vector to be on address 0x50,
but addresses 0x50 to 0x100
are occupied by the virtual vector table.
So I rebuilt the server code - I changed #define ICE_THREAD_VECTOR to 0x150
in file rdi150-low.c
This way my target is recognized to be eCOS and I even got thread response -
but only at the beginning,
before I start the application tasks.
After I launch couple of tasks, stop and try to get the tread information,
then my gdb crashes completely.

Looks like there is still something wrong.

Also when I enabled CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS, I start getting GDB
output to my debug console
like : $T02thread:00000006;0f:08c40100;0d:fc4f0400;#24
I guess it comes from redboot (?)
Because I don't have GDB on the serial port, and GDB waits for input, then
my code stuck

Regards,
Benny


-- 
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]