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]

RE: Serial port used by both RedBoot and a program


> -----Original Message-----
> From: Jesper Skov [mailto:jskov@redhat.com]
> Subject: Re: [ECOS] Serial port used by both RedBoot and a program
> 
> 
> >>>>> "Fabrice" == Fabrice Gautier 
> <Fabrice_Gautier@sdesigns.com> writes:
> 
> Fabrice> How does that works exactly ? The corresponding entries in
> Fabrice> the vector table are disabled or something like that ?
> 
> No. What happens is that the stubs enable serial receive interrupts,
> but do not change the vector. When a serial interrupt happens, it
> causes the cyg_hal_default_isr of the application to be run. This
> calls into the stub (via the virtual vectors) which determines if the
> received character was a 0x03. If so, a breakpoint is put at the PC
> where the interrupt happened.


Ok for the isr and the ctrl-C stuff, but what happens about diagnostic
output that are sent throught the vector table to the serial port ?

Thanks

-- 
Fabrice Gautier
fabrice_gautier@sdesigns.com 

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