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: serial driver


Hi,

btw, how can i debug the serial driver..? to track the bug..!!

<a generic embedded debug issue> If you have a JTAG probe connected to the board, then you can look at the memory contents at the SFR register locations for the UART & make sure that you have written the right values. If you are sure about register values <like control, baud_div & other UART setup registers>, then simply supply those values from the memory window of AXD or ADW. After this you can write into the UART_TX SFR location some hex number, like 0x41 & make sure the char appears on the serial terminal connected to the UART port. If this does not work, then you should work on a small project --writing ROMable code for you board & adding support like LEDs & serial stuff <without the MMU>.


FYI: Prior to this you should make sure you have turned off WDT (if any), interrupts, configure BUS parameters, Clock control & other board requirements.

-Mike.

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



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