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]

Re: the output information from simulator


On Fri, Jun 06, 2003 at 04:54:00PM +0800, Young Jay wrote:
> Hello, all:
> 
> I made an ARM simulator package referring to powerpc simulator. I built eCos library for this ARM simulator as well as the examples provided by eCos. But I can't make the excutable file run through. The step is:
> 
> /*****************************************************************************/
> $ arm-elf-gdb -nw hello
> GNU gdb 5.3 (eCosCentric)
> Copyright 2002 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "--host=i686-pc-cygwin --target=arm-elf"...
> (gdb) target sim
> Connected to the simulator.
> (gdb) load
> Loading section .rom_vectors, size 0x40 vma 0x8000
> Loading section .text, size 0x79e0 vma 0x8040
> Loading section .rodata, size 0x280 vma 0xfa20
> Loading section .data, size 0x2e0 vma 0xfca0
> Start address 0x8040
> Transfer rate: 261120 bits in <1 sec.
> (gdb) run
> Starting program: /home/dell/ecos-targets/application/hello
> /*****************************************************************************/
> 
> The program is still running, but no output information is displayed. That is, the function "printf" in the test code can't redirect the output string to my cygwin window.  When I use "Ctrl+C" to interrupt the running program, I got information as follows, which indicates that the program are running in a loop of function cyg_hal_plf_serial_putc in file hal_diag.c:
> 
> //////////////////////////////////////////////////////////////
> Program received signal SIGINT, Interrupt.
> cyg_hal_plf_serial_putc (__ch_data=0xd800000, c=36 '$')
>     at /ecos-c/cygwin/opt/ecos/ecos-2.0/packages/hal/arm/armulator/v2_0/src/hal_
> diag.c:181
> 181             HAL_READ_UINT8(base+CYG_DEV_LSR, lsr);
> //////////////////////////////////////////////////////////////


Have you checked to see if the arm simulator simulates a serial port
you are trying to do the output to?

    Andrew

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