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]

multi-ice with integrator/ARM946


Dear all,

I tried to port eCos onto an ARM926ej-s based platform, which is
still in manufacturing phase. To prepare the porting, I'm doing some
work on the integrator board and ARM946 core module. ARM946 has
I/D cache and proection unit that ARM966 has not. However, the
eCos poring on ARM966 should work on ARM946.

I managed to install the cygwin, downloaded the ecos-2.0 and installed
the multi-ice-gdb-server. However, I couldn't make it work, so would
someone please help me to clarify if my procedure is right?

1. I used the configtool to build redboot with "Integrator/ARM966"
   template and redboot package. I changed the "Startup type" to ROM, and
   loaded redboot.srec into flash with ARM boot monitor. Both boot
   loaders coexist in the flash now. I reboot the integrator board and
   Redboot ran as expected.
   
2. I built libtarget.a with the same template and default package.
   I did change the sram size to 1MB by editing .mlt .ldi and .h files.
   The GDB_STUBS and THREAD_SUPPORT are not turned on by default.
   
3. I used the above libtarget.a to create a hello test program.

4. I followed the detailed instructions in ecos/multi-ice.html and
   tried to run both arm-elf-gdb and insight. The connection between
   gdb and multi-ice was established and the gdb displayed the correct
   settings. I set debug remote to 1 and saw messages sent from gdb
   to target and somehow couldn't get any replies back. An error message
   "Not a good vector or eCos not running" is displayed.
   I saw a message from benny in the mailing list with the same question
   but no answer.

My question are:
1. Am I using the right configuration settings for both redboot and libtarget.a?
   If I am wrong, what should be the correct settings to build a gnu toolchain
   to work with multi-ice?

2. The redboot I built currently cannot program flash. I tried to build
   one with the same template as above and imported
   hal/arm/integrator/v2_0/misc/redboot_ROM.ecm, which has the flash programming
   and net boot settings. However, I cannot load it into flash by using command
   'L' in ARM boot Monitor. No error was shown when flash was programmed
   but checksum errors were reported when the redboot was used to boot up.
   Are ther any other way to program redboot into flash for integrator board?

3. Basically I would like to see serial/ethernet and multi-ice debugging work.
   Am I right to use GDB_stubs for serial/ethernet and
   HAL_DEBUG_GDB_INCLUDE_STUBS for multi-ice?

4. I tried to use AXD to debug the hello application I created. The AXD does
   not reconize .elf file, so instead I used the .bin file. Is it right?
   I loaded the .bin file into memory and set the pc to 0x0 and trace it.
   I saw the code jumps to 0x20000050 which is virtual vector table. I tried
   to remove CYGPKG_HAL_ROM_MONITOR settings but it didn't work. How could i
   create a self-contained code which I guess can be used for multi-ice?

Thanks in advance,

Best Regards,

Sam Tsaur
   


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