Re: problem with VxWorks resident




ok Gvarndell
I'm going to seek.
my config.h for information
/* config.h - Scope MTX configuration header file */

/* Copyright 1984-1999 Wind River Systems, Inc. */

/*
modification history
--------------------
01a,25apr03,dat implementation du BSP sur la carte CPU du scope
Portable
*/

/*
This file contains the configuration parameters for the template BSP.
This template starts simple - with most facilities excluded by
default.

TODO -
Present the user with simple straight forward options. Do not ask the
user to encode values together to form a value to be loaded in a
register.
Let the source code, or the pre-processor, do the computational work
to
determine what value to load in a particular register.
*/

#ifndef INCconfigh
#define INCconfigh

/* BSP version/revision identification, before configAll.h */

#define BSP_VER_1_1 1 /* 1.2 is backward compatible with 1.1
*/
#define BSP_VER_1_2 1
#define BSP_VERSION "1.2"
#define BSP_REV "/0" /* 0 for first revision */

#include "configAll.h" /* Set the VxWorks default
configuration */

#define DEFAULT_BOOT_LINE \
/* JFB */ "cpm(0,0)host:vxWorks h=14.3.200.20 e=14.3.250.47
u=ox6000 pw=ox6000 tn=ppc f=8"
/* JFGL *//* "cpm(0,0)host:vxWorks h=14.3.200.27 e=14.3.250.48
u=ox6000 pw=ox6000 tn=ppc f=8" */
/* OL */ /* "cpm(0,0)host:vxWorks h=14.3.200.26 e=14.3.250.50
u=ox6000 pw=ox6000 tn=ppc f=8" */
/* EG */ /* "cpm(0,0)host:vxWorks h=14.3.200.11 e=14.3.250.47
u=ox6000 pw=ox6000 tn=ppc f=8" */
/* BL */ /* "cpm(0,0)host:vxWorks h=14.3.200.53 e=14.3.250.49
u=ox6000 pw=ox6000 tn=ppc f=8" */

/* Modif du 06/07/2001 par JFB */

/* memory configuration */

#define LOCAL_MEM_LOCAL_ADRS 0 /* fixed at zero */
#undef LOCAL_MEM_AUTOSIZE /* run-time memory
sizing */
#define LOCAL_MEM_SIZE 0x01000000
#define USER_RESERVED_MEM 0x00034000 /* see sysMemTop()
(for bitmap) */

#define NON_CACHABLE_MEM 0x00FCC000 /* Non-cachable memory
for Bitmap & IP driver */
#define NON_CACHABLE_MEM_SIZE 0x00034000

/*
* The constants ROM_TEXT_ADRS, ROM_SIZE, RAM_HIGH_ADRS, and
RAM_LOW_ADRS
* are defined in config.h and Makefile.
* All definitions for these constants must be identical.
*
* Modif du 06/07/2001 par JFB :
* - Make sure these values match those in your Makefile. The
values
* shown below are the defaults for a 68000 series system. Pay
particular
* attention to ROM_TEXT_ADRS and ROM_WARM_ADRS. The correct default
values
* are in the Makefile for each template BSP.
*/

#define ROM_BASE_ADRS 0x02800000 /* base
address of ROM */
#define ROM_TEXT_ADRS (ROM_BASE_ADRS + 0x100) /* with PC &
SP *//*0x20000*/
#define ROM_WARM_ADRS (ROM_TEXT_ADRS + 8) /* warm
reboot entry */
#define ROM_SIZE 0x007F0000 /* 8MB ROM
space - les derniers secteurs */
/* RAM address for bootrom */
#define RAM_HIGH_ADRS (LOCAL_MEM_LOCAL_ADRS + 0x00E00000)
/* RAM address for vxWorks */
#define RAM_LOW_ADRS (LOCAL_MEM_LOCAL_ADRS + 0x00010000)
#define NV_RAM_SIZE NONE

/* Serial port configuration */

#define INCLUDE_SERIAL
#undef CONSOLE_TTY

/* CONSOLE_TTY = NONE :Pour eviter le blocage de l'autoboot par la
presence de la souris */
#define CONSOLE_TTY /* NONE */1 /* Valeur standard: 1 */

#undef NUM_TTY
#define NUM_TTY N_SIO_CHANNELS
#undef INCLUDE_SHELL
#undef INCLUDE_WDB_BANNER

/* Timer configuration */
#undef INCLUDE_TIMESTAMP /* no timestamp driver
support */

/*
* Cache configuration
*
* Modif du 06/07/2001 par JFB
*
* All cache is turned off to begin with. Activate caching after basic
* BSP functionality is achieved. Start with instruction caching,
followed
* by data caching. Begin without snooping options; and turn those on
* later if the board supports it.
*
* Note that when MMU is enabled, cache modes are controlled by
* the MMU table entries in sysPhysMemDesc[], not the cache mode
* macros defined here.
*/

//#undef INCLUDE_CACHE_SUPPORT /* no cacheLib support */
/*essai fd*/
#define INCLUDE_CACHE_SUPPORT
//#undef USER_I_CACHE_ENABLE
/*essai fd */
#define USER_I_CACHE_ENABLE
#undef USER_I_CACHE_MODE
#define USER_I_CACHE_MODE CACHE_DISABLED
#undef USER_D_CACHE_ENABLE
/*essai fd */
#define USER_D_CACHE_ENABLE

#undef USER_D_CACHE_MODE
#define USER_D_CACHE_MODE CACHE_DISABLED
#undef USER_B_CACHE_ENABLE

/* MMU configuration */

#define USER_I_MMU_ENABLE
#define USER_D_MMU_ENABLE
#define INCLUDE_MMU_BASIC /* no MMU support */
#undef INCLUDE_MMU_FULL /* no MMU support */

/* Network driver configuration */

#undef INCLUDE_WDB
#define INCLUDE_NETWORK
#define INCLUDE_NET_INIT

#undef INCLUDE_EX
#undef INCLUDE_ENP
#undef INCLUDE_SM_NET
#undef INCLUDE_BOOTP /* bootp */

/* Enhanced Network Driver (END) support */

#define INCLUDE_CPM
#define INCLUDE_END /* Enhanced Network Driver (see
configNet.h) */
#undef INCLUDE_BSD /* BSD 4.4 drivers */

/* VME configuration */

/*
* Modif du 06/07/2001 par JFB
*
* Only those options that are actually user changeable should be
defined
* here. Options that cannot be changed should be moved to
template.h.
*/

#undef INCLUDE_VME
#undef INCLUDE_PCI
#undef INCLUDE_PCI_AUTOCONF

/*
* User application initialization
*
* USER_APPL_INIT must be a valid C statement or block. It is
* included in the usrRoot() routine only if INCLUDE_USER_APPL is
* defined. The code for USER_APPL_INIT is only an example. The
* user is expected to change it as needed. The use of taskSpawn
* is recommended over direct execution of the user routine.
*/

#undef INCLUDE_USER_APPL
#define USER_APPL_INIT \
{ \
IMPORT int myAppInit(); \
taskSpawn ("myApp", 30, 0, 5120, \
myAppInit, 0x1, 0x2, 0x3, 0,0,0,0,0,0,0); \
}

/* Configurable interrupt vectors/levels (static defs go in
template.h) */

#if FALSE
#define INT_VEC_ABORT xxx
#define INT_VEC_CLOCK xxx
...
#define INT_LVL_ABORT xxx
#define INT_LVL_CLOCK xxx
...
#endif

#include "ox6000.h" /* Verify user options, specify i/o
addr etc */

#endif /* INCconfigh */
#if defined(PRJ_BUILD)
#include "prjParams.h"
#endif

Gvarndell
I don't find this constant (INCLUDE_EXC_EXTENDED_VECTORS). I work with
VxWorks 5.4 maybe that this constant isn't in VxWorks 5.4.

--

.