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: RE: ctrl-c in GDB


"Vikas K. Prasad" <vikas.prasad@ittiam.com> writes:

> Nick,
> 
> We are using a custom board with Excalibur on it.
> The serial Rx interrupt is enabled and is working
> fine.  It is  tested by  typing the cntl-c on the
> HyperTerminal. Redboot prompt etc  are absolutely
> fine. Is  the  ^c on  HyperTerminal  and  via the
> arm-elf-gdb different?

When typing ^c to the RedBoot prompt, it will be picked up by the
polled getc routine -- no interrupts involved. When used in GDB to
stop a running program, it has to be delivered via an interrupt. This
interrupt is enabled in cyg_hal_plf_serial_control(). Maybe something
else needs to be done there to enable the interrupt, or maybe the
interrupt controller is not unmasking it properly. You will have to
take a look at what the UART and interrupt controller registers
contain.

-- 
Nick Garnett                    eCos Kernel Architect
http://www.ecoscentric.com/     The eCos and RedBoot experts


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