MCF5485EVB Board Console problems

Chris Xenophontos cxenophontos at hammers.com
Mon May 7 12:52:35 UTC 2012


Continuing with our console problem on MCF5485EVB, I incorporated
Sebastian's changes (config.ac and bspstart.c).
We have the same problem, i.e, application won't initialize with
CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER #defined.
Perhaps we missed something - here are the steps we performed:
-updated /c/src/lib/libbsp/m68k/genmcf548x/startup/bspstart.c
-updated /c/src/lib/libbsp/m58k/genmcf548x/configure.ac

-ran configure as follows (successful):
../rtems-4.10.2/configure --target=m68k-rtems4.10
--enable-rtemsbsp=m5484FireEngine --prefix=/opt/rtems-4.10

-ran make as follows (successful):  make RTEMS_BSP="m5484FireEngine" install
-libraries, etc, updated as expected in /opt/rtems-4.10.

-Our configure parameters and startup code follows,

thanks again!

Chris Xenophontos

#include <stdio.h>
#include <stdlib.h>
#include <rtems.h>
#include <bsp.h>
#include <unistd.h>


#include <rtems/rtems_bsdnet.h>

rtems_task Init( rtems_task_argument ignored );
extern int AppMain( void );

rtems_task Init( rtems_task_argument ignored )
{
    printk( "\n\n.. application init messages....\n" );
    printk( "\nEntering AppMain....\n" );
    AppMain();
    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_DRIVERS              3
#define ADA_TASKS  0
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE

/*****  Application won't initialize if the following is #defined
// #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER

#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS    4   /* 30 */

#define CONFIGURE_MICROSECONDS_PER_TICK        10000

#include <rtems/confdefs.h>












On Wed, May 2, 2012 at 9:32 AM, Joel Sherrill <joel.sherrill at oarcorp.com> wrote:
>
> Sebastian,
>
> Would you mind updating the wiki page for 4.10.3
> to include this?
>
> http://www.rtems.org/wiki/index.php/4.10_Release_Notes#Release_4.10.3_Changes
>
> Since this was fixed without a PR, please add it to
> that section.
>
> If you have committed anything else to the branch
> after 4.10.2, that needs to be mentioned as well.
>
> Thanks.
>
> --joel
>
>
> On 05/02/2012 08:20 AM, Chris Xenophontos wrote:
>
> Thanks so much! - I will incorporate at next opportunity and post back.
> Chris Xenophontos
>
> On Wed, May 2, 2012 at 4:36 AM, Sebastian Huber
> <sebastian.huber at embedded-brains.de> wrote:
>
> Hi,
>
> I back-ported two changes to RTEMS 4.10:
>
> http://git.rtems.org/rtems/commit/?h=4.10&id=eeb965b325705987cfa029d423f4f67b95f46695
>
> http://git.rtems.org/rtems/commit/?h=4.10&id=57d29cd5a99ef14de5c943ee2a14cbeb3f4422c2
>
> It works now at least on our evaluation board.
>
> --
> Sebastian Huber, embedded brains GmbH
>
> Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
> Phone   : +49 89 18 90 80 79-6
> Fax     : +49 89 18 90 80 79-9
> E-Mail  : sebastian.huber at embedded-brains.de
> PGP     : Public key available on request.
>
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>
> _______________________________________________
> 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
>




More information about the users mailing list