<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 05/23/2012 10:10 AM, SAeeD wrote:
<blockquote
cite="mid:CAEdVrmPm_YxHGZ4MStT=fsA3QtmOVtkkSHg3sr3Nwn=Z_qrOnQ@mail.gmail.com"
type="cite">
<div dir="ltr">Thanks for your reply, Joel.<br>
<br>
I wonder why there is no warning or error while configuring
SMDK2410 to use an unaffected option, that is
USE_COM1_AS_CONSOLE=1.<br>
But I'm curious that why this is so? I mean why this option has
no impact while building the OS for SMDK2410? Is it for that COM
naming is specific to Windows systems?<br>
</div>
</blockquote>
It is just a specific option for the pc386 and follows the name that<br>
is usually found on the connectors (when they are labelled at all.<br>
<br>
It is ignored because it is really setting an arbitrary variable. It
could<br>
just as easily have been SAeeD=42 and nothing would know to look<br>
for that. :)<br>
<blockquote
cite="mid:CAEdVrmPm_YxHGZ4MStT=fsA3QtmOVtkkSHg3sr3Nwn=Z_qrOnQ@mail.gmail.com"
type="cite">
<div dir="ltr">
So how is it possible that one attaches the standard console to
serial port, while building RTEMS for SMDK2410?<br>
<br>
Thanks for noticing about the baud rate but I guess the baud
rate on Mini2440 can be configured to be the same as SMDK2410 by
running uart initialization function but I will check it out to
make sure.<br>
<br>
</div>
</blockquote>
This is the type of thing that often changes between "BSP variants".
<br>
Sometimes a board from two vendors with the same core HW <br>
uses different baud rates for the boot monitor. The BSP will
usually<br>
adopt the setting of the ROM monitor by default since that is
convenient<br>
from a user's perspective -- you don't change baud from running<br>
ROM monitor to running RTEMS.<br>
<br>
But it is also possible that the baud rate clock has changed between<br>
the board this was developed for and the board you are using.<br>
<br>
I don't really know.<br>
<blockquote
cite="mid:CAEdVrmPm_YxHGZ4MStT=fsA3QtmOVtkkSHg3sr3Nwn=Z_qrOnQ@mail.gmail.com"
type="cite">
<div dir="ltr">SAeeD<br>
<br>
<br>
<div class="gmail_quote">On Wed, May 23, 2012 at 6:07 PM, Joel
Sherrill <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:joel.sherrill@oarcorp.com" target="_blank">joel.sherrill@oarcorp.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 05/23/2012 02:49 AM, SAeeD wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello every one,<br>
<br>
I am building RTEMS for SMDK2410 these days and I want
to test the simple "hello" application, available in
"testsuites" folder of RTEMS.<br>
But the problem is that I want to use the board's COM
port as the console, so that output of those printf
lines in "hello" application goes through COM port and I
see the output on my laptop's screen.<br>
I configured RTEMS as follows:<br>
../configure --enable-rtems-debug USE_COM1_AS_CONSOLE=1
BSP_PRESS_KEY_FOR_RESET=0 --target=arm-rtems4.10
--enable-rtemsbsp=smdk2410 --enable-tests=samples
--prefix=/home/rtems/rtems-4.10-src/rtems-4.10.2/mini2440/build<br>
<br>
</blockquote>
</div>
USE_COM1_AS_CONSOLE=1 is pc386 specific and has no impact on
this BSP.<br>
<br>
It looks like the console always is the first (only?) UART
on this.
<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Then I transferred "hello.exe" image to board and
connected the board's COM port to my laptop's COM port
and started a terminal for serial connection with baud
rate:115200, data: 8 bits, 1 stop bit, no parity and no
flow control.<br>
<br>
I powered on the board but there was nothing received
from the serial port!<br>
I guess USE_COM1_AS_CONSOLE=1 is not enough to configure
the OS to send console output to COM port. But I am not
sure.<br>
<br>
Does any one have any idea or experience about this?<br>
<br>
</blockquote>
</div>
No personal experience here but looking at the code, I
wonder if the baud rate<br>
clock is the same on your board as on the board it was
developed for.<br>
<br>
/* value is calculated so : (int)(PCLK/16./baudrate) -1
*/<br>
reg = get_PCLK() / (16 * 115200) - 1;
<div class="im"><br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
* Please notice that although I build RTEMS for
SMDK2410, my board is Mini2440.<br>
<br>
</blockquote>
</div>
If there is a boot monitor on this, you can always disable
initializing<br>
the UART and use the same baud rate it used.<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks in advance<br>
SAeeD<span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote>
<span class="HOEnZb"><font color="#888888">
<br>
<br>
-- <br>
Joel Sherrill, Ph.D. Director of
Research& Development<br>
<a class="moz-txt-link-abbreviated" href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a> On-Line Applications
Research<br>
Ask me about RTEMS: a free RTOS Huntsville AL 35805<br>
Support Available (256) 722-9985<br>
<br>
<br>
</font></span></blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Joel Sherrill, Ph.D. Director of Research& Development
<a class="moz-txt-link-abbreviated" href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a> On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
</pre>
</body>
</html>