MCF5485EVB Board Console problems

Chris Xenophontos cxenophontos at hammers.com
Tue May 1 14:41:03 UTC 2012


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




More information about the users mailing list