public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Jamie Guinan <guinan@bluebutton.com>
To: ecos-discuss@sourceware.cygnus.com
Subject: [ECOS] Re: Transceiver required for SMC2 on MPC821?
Date: Thu, 21 Oct 1999 14:07:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.10.9910210230310.10893-100000@gemini.home.net> (raw)
In-Reply-To: <Pine.LNX.4.10.9910192214380.6893-100000@gemini.home.net>

Thanks to all (on and off the list) for helping out with
my SMC2 issues.  I wired up a little riser card with a 
MAX232 transceiver and the required 1uF caps, and 
from the hardware side it looks good now.  I can redirect 
the EPPCBug console to SMC2 with "ta 1", that works fine, 
and the Tx/RX leds on my inline RS-232 tester are a nice 
healthy green instead of a dim red.

Now for an eCos-related question: is anyone successfully 
using SMC2 on an MBX using the "/dev/ser2" interface?

I've had mixed results.

a) With the following, all the cyg_io_* calls work fine, but
nothing comes out SMC2.  I stepped into serial_write()
a little, and it seemed to be calling HAL_DIAG_WRITE_CHAR()
which seemed a bit odd.

pkgconf/infra.h:     #define  CYGDBG_INFRA_DIAG_USE_DEVICE
pkgconf/io_serial.h: #define CYGPKG_IO_SERIAL_POWERPC_QUICC_SMC
pkgconf/io_serial.h: #define  CYGPKG_IO_SERIAL_POWERPC_QUICC_SMC_SMC1
pkgconf/io_serial.h: #define  CYGPKG_IO_SERIAL_POWERPC_QUICC_SMC_SMC2


b) With these settings, I got one string out SMC2 before the
assertion at hal_inter.c:212 tripped with "Interrupt not handled".

pkgconf/infra.h:     #undef  CYGDBG_INFRA_DIAG_USE_DEVICE
pkgconf/io_serial.h: #define CYGPKG_IO_SERIAL_POWERPC_QUICC_SMC
pkgconf/io_serial.h: #undef  CYGPKG_IO_SERIAL_POWERPC_QUICC_SMC_SMC1
pkgconf/io_serial.h: #define  CYGPKG_IO_SERIAL_POWERPC_QUICC_SMC_SMC2


I'll send a bug report to Cygnus, but I wanted to see if anyone
else had this working first.

Here are the URLs for the sample app and Makefile.  
The printf's come out on the gdb console.

http://www.bluebutton.com/ecos-discuss/Makefile
http://www.bluebutton.com/ecos-discuss/serialtest.c

-Jamie


      parent reply	other threads:[~1999-10-21 14:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-19 19:28 [ECOS] " Jamie Guinan
1999-10-20  8:08 ` Morgan Jones
1999-10-21 14:07 ` Jamie Guinan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.10.9910210230310.10893-100000@gemini.home.net \
    --to=guinan@bluebutton.com \
    --cc=ecos-discuss@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).