This is the mail archive of the ecos-discuss@sourceware.org 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: printf not working in ARM simulator


On Sat, Jan 10, 2009 at 05:17:00AM -0800, Portos wrote:
> 
> Actually, we may have found a temporary solution, a hack...
> 
> A watchpoint can call commands and resume the program.
> So we can have printf send characters to some buffer (possibly hack the code
> a bit for that), and when some location is changed, a watchpoint catches
> that, gdb prints the content of the buffer, and then resumes execution. If
> we can make watchpoint silent such that only the buffered characters are
> printed, it would be ideal.
> 
> If someone knows of a clean solution along these lines, please let us know.
> We'll try to implement something, otherwise.

Take a look at the TX39 Architecture simulator. It includes a
simulated serial port, interrupt controller, timers etc. A proper
solution to your problem is to write similar simulations of your
hardware devices. 

Probably better options is to use the eCos Synth target on linux, or a
Virtual x86 machine, eg Bochs, which will also have virtual serial
ports etc, or maybe SkyEye.

      Andrew

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


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