MCF5485EVB Board Console problems

Thomas Doerfler Thomas.Doerfler at embedded-brains.de
Tue May 1 16:05:17 UTC 2012


Chris,

we have a Freescale Evaluation board in our company and will
cross-check your results in the next days (today is holiday in
germany). Maybe we can help you a bit there.

wkr,

Thomas.

Am 01.05.2012 17:56, schrieb Chris Xenophontos:
> Thomas, I have the sample applications, but nothing seems to run.
> I can only get our application to run if I do not enable
> CONSOLE_DRIVER and use printk.  All startup code, etc built from
> RTEMS BSP, etc runs as expected.
> 
> I believe we have the real mcf5484FireEngine board, according to
> docs that were delivered with the board: dBUG> reset ColdFire
> MCF548X on the M5485EVB Firmware v4a.1a.1d (Built on Dec  6 2004
> 11:50:38) Copyright 1995-2004 Freescale Semiconductor, Inc. Enter
> 'help' for help. dBUG> thanks Chris
> 
> On Tue, May 1, 2012 at 11:37 AM, Thomas Doerfler 
> <Thomas.Doerfler at embedded-brains.de> wrote:
>> Chris,
>> 
>> can you successfully execute one of the "sample" applications
>> built for this board, like "ticker.exe" ? These applications
>> should be present in your "install" tree since you haven't
>> disabled them explicitly in your configure line.
>> 
>> Are you working with a real "mcf5484FireEngine" board or is it
>> different in some areas?
>> 
>> Which boot monitor do you use?
>> 
>> wkr, Thomas.
>> 
>> Am 01.05.2012 17:19, schrieb Chris Xenophontos:
>>> The problem occurs regardless if CONFIGURE_TERMIOS_DISABLED is
>>> #defined or not. We've repeatedly tried it both ways.
>>> 
>>> On Tue, May 1, 2012 at 10:48 AM, Chris Xenophontos 
>>> <cxenophontos at hammers.com> wrote:
>>>> The problem occurs regardless if CONFIGURE_TERMIOS_DISABLED
>>>> is #defined or not. We've repeatedly tried it both ways.
>>>> 
>>>> 
>>>> 
>>>> On Tue, May 1, 2012 at 10:43 AM, Joel Sherrill 
>>>> <joel.sherrill at oarcorp.com> wrote:
>>>>> You can't disable TERMIOS and have a working console
>>>>> driver.
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> On 05/01/2012 09:41 AM, Chris Xenophontos wrote:
>>>>>> 
>>>>>> Hello, In continuing to port a previous application to an
>>>>>> MCF5485EVB board with RTEMS 4.10.2, We're having problems
>>>>>> initializing the console. Currently, we successfully
>>>>>> configured as follows:
>>>>>> 
>>>>>> ./rtems-4.10.2/configure --target=m68k-rtems4.10 
>>>>>> --enable-rtemsbsp=m5484FireEngine
>>>>>> --prefix=/opt/rtems-4.10
>>>>>> 
>>>>>> gmake RTEMS_BSP="m5484FireEngine" install
>>>>>> 
>>>>>> 
>>>>>> The problem is that when
>>>>>> CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER is #defined, 
>>>>>> Either the application is not initializing, or no output
>>>>>> is sent through serial port.  Only way to get any 
>>>>>> messages to console window is to use printk.
>>>>>> 
>>>>>> The snipped below had previously worked as shown, on
>>>>>> MCF5235 board with RTEMS 4.9 - no issues with console.
>>>>>> 
>>>>>> Is additional configuration required for m5484FireEngine
>>>>>> BSP?
>>>>>> 
>>>>>> thanks Chris Xenophontos
>>>>>> 
>>>>>> 
>>>>>> include<stdio.h> #include<stdlib.h> #include<rtems.h> 
>>>>>> #include<bsp.h> #include<unistd.h> 
>>>>>> #include<rtems/rtems_bsdnet.h> #include
>>>>>> "networkconfig.h" #include "tids.h" #include "pids.h" 
>>>>>> #include "ostasks.h" #include "debug.h"
>>>>>> 
>>>>>> rtems_task Init( rtems_task_argument ignored ); extern
>>>>>> int myAppMain( void );
>>>>>> 
>>>>>> rtems_task Init( rtems_task_argument ignored ) { // !!
>>>>>> forced to use prink - #defining 
>>>>>> CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER won't
>>>>>> initialize - see below
>>>>>> 
>>>>>> printk( "\n\n\nMMS Trainer Initializing...\n" ); printk(
>>>>>> "\n*** RTEMS Info ***" ); printk( "\n" ); printk(
>>>>>> "\nsizeof( Objects_Control *):               0x%08X", ( 
>>>>>> unsigned int )sizeof( Objects_Control *)); printk(
>>>>>> "\nsizeof( rtems_name *):                    0x%08X", ( 
>>>>>> unsigned int )sizeof( rtems_name *)); printk( "\nsizeof(
>>>>>> rtems_name ):                     0x%08X", ( unsigned int
>>>>>> )sizeof( rtems_name  )); printk( "\n" ); printk(
>>>>>> "\nsizeof(Thread_Control):                   0x%08X", ( 
>>>>>> unsigned int )sizeof(Thread_Control )); printk(
>>>>>> "\nCONTEXT_FP_SIZE:                          0x%08X", ( 
>>>>>> unsigned int )CONTEXT_FP_SIZE ); printk(
>>>>>> "\nSTACK_MINIMUM_SIZE:                       0x%08X", 
>>>>>> STACK_MINIMUM_SIZE ); printk( "\nsizeof(
>>>>>> RTEMS_API_Control ):              0x%08X", ( unsigned int
>>>>>> )sizeof( RTEMS_API_Control )); printk( "\n" );
>>>>>> 
>>>>>> rtems_bsdnet_initialize_network(); 
>>>>>> rtems_bsdnet_show_inet_routes (); 
>>>>>> rtems_bsdnet_show_mbuf_stats (); 
>>>>>> rtems_bsdnet_show_if_stats (); rtems_bsdnet_show_ip_stats
>>>>>> (); rtems_bsdnet_show_icmp_stats (); 
>>>>>> rtems_bsdnet_show_udp_stats (); 
>>>>>> rtems_bsdnet_show_tcp_stats ();
>>>>>> 
>>>>>> #ifdef STACK_DEBUG Stack_check_Initialize(); #endif
>>>>>> 
>>>>>> printk( "\nEntering xmain....\n" );
>>>>>> 
>>>>>> myAppMain();  /* application, startup, etc */
>>>>>> 
>>>>>> exit ( 0 ); };
>>>>>> 
>>>>>> /////////////////////
>>>>>> 
>>>>>> #define TASK_INTLEVEL 0 #define CONFIGURE_INIT #define
>>>>>> CONFIGURE_INIT_TASK_ATTRIBUTES ( RTEMS_FLOATING_POINT | 
>>>>>> RTEMS_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_ASR | 
>>>>>> RTEMS_INTERRUPT_LEVEL(TASK_INTLEVEL))
>>>>>> 
>>>>>> #define CONFIGURE_MAXIMUM_TASKS               20 #define
>>>>>> CONFIGURE_MAXIMUM_TIMERS               3
>>>>>> 
>>>>>> 
>>>>>> #define CONFIGURE_MAXIMUM_SEMAPHORES          20 #define
>>>>>> CONFIGURE_MAXIMUM_MESSAGE_QUEUES      24
>>>>>> 
>>>>>> #define CONFIGURE_INIT_TASK_STACK_SIZE (10*1024) #define
>>>>>> CONFIGURE_INIT_TASK_PRIORITY   120 #define
>>>>>> CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \ 
>>>>>> RTEMS_NO_TIMESLICE | \ RTEMS_NO_ASR | \ 
>>>>>> RTEMS_INTERRUPT_LEVEL(0))
>>>>>> 
>>>>>> //#define CONFIGURE_MAXIMUM_DEVICES       4 #define
>>>>>> CONFIGURE_MAXIMUM_DRIVERS              3
>>>>>> 
>>>>>> 
>>>>>> #define ADA_TASKS  0
>>>>>> 
>>>>>> #define CONFIGURE_RTEMS_INIT_TASKS_TABLE //#define
>>>>>> CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER    !!!! no 
>>>>>> initialization/console output when defined !!! #define
>>>>>> CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
>>>>>> 
>>>>>> // #define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM #define
>>>>>> CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS    4   /* 30 */
>>>>>> 
>>>>>> #define CONFIGURE_MICROSECONDS_PER_TICK        10000
>>>>>> 
>>>>>> #define CONFIGURE_TERMIOS_DISABLED
>>>>>> 
>>>>>> #ifdef STACK_DEBUG #define STACK_CHECKER_ON #endif
>>>>>> 
>>>>>> #include<rtems/confdefs.h>
>>>>>> 
>>>>>> #define NETWORK_TASK_PRIORITY 80
>>>>>> 
>>>>>> _______________________________________________ 
>>>>>> rtems-users mailing list rtems-users at rtems.org 
>>>>>> http://www.rtems.org/mailman/listinfo/rtems-users
>>>>> 
>>>>> 
>>>>> 
>>>>> -- Joel Sherrill, Ph.D.             Director of Research&
>>>>> Development joel.sherrill at OARcorp.com        On-Line
>>>>> Applications Research Ask me about RTEMS: a free RTOS
>>>>> Huntsville AL 35805 Support Available             (256)
>>>>> 722-9985
>>>>> 
>>>>> 
>>> 
>>> _______________________________________________ rtems-users
>>> mailing list rtems-users at rtems.org 
>>> http://www.rtems.org/mailman/listinfo/rtems-users
>> 
>> 
>> -- -------------------------------------------- Embedded Brains
>> GmbH Thomas Doerfler           Obere Lagerstr. 30 D-82178
>> Puchheim          Germany email:
>> Thomas.Doerfler at embedded-brains.de Phone: +49-89-18908079-2 Fax:
>> +49-89-18908079-9 
>> _______________________________________________ rtems-users
>> mailing list rtems-users at rtems.org 
>> http://www.rtems.org/mailman/listinfo/rtems-users
> 
> _______________________________________________ rtems-users mailing
> list rtems-users at rtems.org 
> http://www.rtems.org/mailman/listinfo/rtems-users


-- 
--------------------------------------------
Embedded Brains GmbH
Thomas Doerfler           Obere Lagerstr. 30
D-82178 Puchheim          Germany
email: Thomas.Doerfler at embedded-brains.de
Phone: +49-89-18908079-2
Fax:   +49-89-18908079-9



More information about the users mailing list