<font size=2 face="sans-serif">Hi all,</font>
<br>
<br><font size=2 face="sans-serif">I'm looking for a hint to see why my
eval board doesn't come up.</font>
<br>
<br><font size=2 face="sans-serif">A custom 5475 board (Cobra) and its
toolchain is running already.</font>
<br><font size=2 face="sans-serif">It has RAM in the upper address range.</font>
<br>
<br><font size=2 face="sans-serif">To make some reference tests I found
a m5475evb FireEngine board</font>
<br><font size=2 face="sans-serif">lieing around. It has dBUG running and
I want to bring it up. RTEMS</font>
<br><font size=2 face="sans-serif">seems to support it out of the box.</font>
<br>
<br><font size=2 face="sans-serif">The point I'm blocked is that the initialization
seems to run through</font>
<br><font size=2 face="sans-serif">but the application code does not get
invoked. The hello world from</font>
<br><font size=2 face="sans-serif">test.c runs on my custom board but not
on the eval board. It is not</font>
<br><font size=2 face="sans-serif">giving any output and not even changing
a memory location (see below).</font>
<br><font size=2 face="sans-serif">But printk from RTEMS functions are
visible.</font>
<br>
<br><font size=2 face="sans-serif">Attached the modified pieces. May be
there is an obvious error</font>
<br><font size=2 face="sans-serif">showing up.</font>
<br>
<br><font size=2 face="sans-serif">Thanks in advance</font>
<br><font size=2 face="sans-serif">Wolfgang R.</font>
<br>
<br><font size=2 face="sans-serif">################################################################</font>
<br><font size=2 face="sans-serif">## in top level makefile for toolchain
build</font>
<br><font size=2 face="sans-serif">...</font>
<br><font size=2 face="sans-serif"># target settings</font>
<br><font size=2 face="sans-serif"> RTEMS_ARCH=m68k</font>
<br><font size=2 face="sans-serif"> RTEMS_BSP=m5484FireEngine</font>
<br><font size=2 face="sans-serif"> ##RTEMS_BSP=COBRA5475</font>
<br><font size=2 face="sans-serif">...</font>
<br>
<br><font size=2 face="sans-serif">################################################################</font>
<br><font size=2 face="sans-serif">## </font>
<br><font size=2 face="sans-serif">## ./gcc/rtems-4.10/c/src/lib/libbsp/m68k/genmcf548x/configure.ac</font>
<br><font size=2 face="sans-serif">...</font>
<br><font size=2 face="sans-serif">RTEMS_BSPOPTS_SET([HAS_DBUG],[COBRA5475],[1])</font>
<br><font size=2 face="sans-serif">RTEMS_BSPOPTS_SET([HAS_DBUG],[*],[1])
</font>
<br><font size=2 face="sans-serif">##RTEMS_BSPOPTS_SET([HAS_DBUG],[*],[0])</font>
<br><font size=2 face="sans-serif">...</font>
<br><font size=2 face="sans-serif">## the following two lines make no difference
in behaviour</font>
<br><font size=2 face="sans-serif">##RTEMS_BSPOPTS_SET([HAS_LOW_LEVEL_INIT],[m5484FireEngine],[1])</font>
<br><font size=2 face="sans-serif">RTEMS_BSPOPTS_SET([HAS_LOW_LEVEL_INIT],[*],[0])</font>
<br><font size=2 face="sans-serif">...</font>
<br>
<br><font size=2 face="sans-serif">################################################################</font>
<br><font size=2 face="sans-serif">## /opt/Ada-rtems-4.10/m68k-rtems4.10/m5484FireEngine/lib/linkcmds</font>
<br><font size=2 face="sans-serif">...</font>
<br><font size=2 face="sans-serif">/*</font>
<br><font size=2 face="sans-serif"> * Location and size of on-chip
devices</font>
<br><font size=2 face="sans-serif"> */</font>
<br><font size=2 face="sans-serif">_SdramBase = DEFINED(_SdramBase)
? _SdramBase : 0x00000000;</font>
<br><font size=2 face="sans-serif">_SdramSize = DEFINED(_SdramSize)
? _SdramSize : (64 * 1024*1024);</font>
<br><font size=2 face="sans-serif">_SysSramBase = DEFINED(_SysSramBase)
? _SysSramBase : __MBAR + 0x00010000;</font>
<br><font size=2 face="sans-serif">_SysSramSize = DEFINED(_SysSramSize)
? _SysSramSize : (32 * 1024);</font>
<br><font size=2 face="sans-serif">_McdapiBase = DEFINED(_McdapiBase)
? _McdapiBase : _SysSramBase;</font>
<br><font size=2 face="sans-serif">_McdapiSize = DEFINED(_McdapiSize)
? _McdapiSize : (12 * 1024);</font>
<br><font size=2 face="sans-serif">_CoreSramBase0 = DEFINED(_CoreSramBase0)
? _CoreSramBase0 : 0x20000000;</font>
<br><font size=2 face="sans-serif">_CoreSramBase1 = DEFINED(_CoreSramBase1)
? _CoreSramBase1 : 0x20001000;</font>
<br><font size=2 face="sans-serif">_CoreSramSize0 = DEFINED(_CoreSramSize0)
? _CoreSramSize0 : (4 * 1024);</font>
<br><font size=2 face="sans-serif">_CoreSramSize1 = DEFINED(_CoreSramSize1)
? _CoreSramSize1 : (4 * 1024);</font>
<br><font size=2 face="sans-serif">_BootFlashBase = DEFINED(_BootFlashBase)
? _BootFlashBase : 0xFF800000;</font>
<br><font size=2 face="sans-serif">_BootFlashSize = DEFINED(_BootFlashSize)
? _BootFlashSize : (2 * 1024*1024);</font>
<br><font size=2 face="sans-serif">_CodeFlashBase = DEFINED(_CodeFlashBase)
? _CodeFlashBase : 0xE0000000;</font>
<br><font size=2 face="sans-serif">_CodeFlashSize = DEFINED(_CodeFlashSize)
? _CodeFlashSize : (16 * 1024*1024);</font>
<br>
<br><font size=2 face="sans-serif">_VectorRam = DEFINED(_VectorRam)
? _VectorRam : _SdramBase;</font>
<br><font size=2 face="sans-serif">_DataRam =
DEFINED(_DataRam) ? _DataRam : _data_dest_start;</font>
<br><font size=2 face="sans-serif">_DataRom =
DEFINED(_DataRom) ? _DataRom : _data_src_start;</font>
<br><font size=2 face="sans-serif">_DataEnd =
DEFINED(_DataEnd) ? _DataEnd : _data_dest_end;</font>
<br><font size=2 face="sans-serif">_BssStart = DEFINED(_BssStart)
? _BssStart : _clear_start;</font>
<br><font size=2 face="sans-serif">_BssEnd
= DEFINED(_BssEnd) ? _BssEnd :
_clear_end;</font>
<br><font size=2 face="sans-serif">_SpInit
= DEFINED(_SpInit) ? _SpInit :
_EndInitStackSpace;</font>
<br>
<br><font size=2 face="sans-serif">_InitStackSize = DEFINED(StackSize)
? StackSize : 0x800; /* 2 kB */</font>
<br><font size=2 face="sans-serif">_TopRamReserved = DEFINED(_TopRamReserved)
? _TopRamReserved : 0;</font>
<br>
<br><font size=2 face="sans-serif">RamBase =
DEFINED(_SdramBase) ? _SdramBase : _SdramBase;</font>
<br><font size=2 face="sans-serif">RamSize =
DEFINED(_SdramSize) ? _SdramSize : _SdramSize;</font>
<br><font size=2 face="sans-serif">HeapSize = DEFINED(HeapSize)
? HeapSize : 0x0;</font>
<br><font size=2 face="sans-serif">_VBR
= DEFINED(_VBR) ? _VBR
: RamBase;</font>
<br>
<br><font size=2 face="sans-serif">__MBAR =
DEFINED(__MBAR) ? __MBAR
: 0x10000000;</font>
<br>
<br><font size=2 face="sans-serif">ENTRY(start)</font>
<br><font size=2 face="sans-serif">MEMORY</font>
<br><font size=2 face="sans-serif">{</font>
<br><font size=2 face="sans-serif"> /*sdram
: ORIGIN = 0x400 , LENGTH = 64M - 0x400*/</font>
<br><font size=2 face="sans-serif"> sdram :
ORIGIN = 0x01000000 , LENGTH = 64M - 0x01000000</font>
<br><font size=2 face="sans-serif"> code_flash : ORIGIN =
0xE0000000, LENGTH = 16M</font>
<br><font size=2 face="sans-serif"> boot_flash : ORIGIN =
0xFF800000, LENGTH = 2M</font>
<br><font size=2 face="sans-serif">}</font>
<br><font size=2 face="sans-serif">...</font>
<br>
<br><font size=2 face="sans-serif">################################################################</font>
<br><font size=2 face="sans-serif">## mmap</font>
<br>
<br><font size=2 face="sans-serif">## mmap EVB</font>
<br><font size=2 face="sans-serif">dBUG></font>
<br>
<br><font size=2 face="sans-serif">External Reset</font>
<br>
<br><font size=2 face="sans-serif">ColdFire MCF547X on the M5475EVB</font>
<br><font size=2 face="sans-serif">Firmware v4a.1a.1d (Built on Jan 21
2007 22:28:09)</font>
<br><font size=2 face="sans-serif">Copyright 1995-2007 Freescale Semiconductor,
Inc.</font>
<br>
<br><font size=2 face="sans-serif">Enter 'help' for help.</font>
<br>
<br><font size=2 face="sans-serif">dBUG> mmap</font>
<br>
<br><font size=2 face="sans-serif"> Type
Start End
Port Size</font>
<br><font size=2 face="sans-serif"> ---------------------------------------------------</font>
<br><font size=2 face="sans-serif"> SDRAM
0x00000000 0x03FFFFFF 32-bit</font>
<br><font size=2 face="sans-serif"> MBAR
0x10000000 0x1003FFFF 32-bit</font>
<br><font size=2 face="sans-serif"> System SRAM 0x10010000
0x10017FFF 32-bit</font>
<br><font size=2 face="sans-serif"> Core SRAM0
0x20000000 0x20000FFF 32-bit</font>
<br><font size=2 face="sans-serif"> Core SRAM1
0x20001000 0x20001FFF 32-bit</font>
<br><font size=2 face="sans-serif"> Code Flash
0xE0000000 0xE0FFFFFF 16-bit</font>
<br><font size=2 face="sans-serif"> Boot Flash
0xFF800000 0xFF9FFFFF 16-bit</font>
<br>
<br><font size=2 face="sans-serif"> Protected
Start End</font>
<br><font size=2 face="sans-serif"> ----------------------------------------</font>
<br><font size=2 face="sans-serif"> dBUG Code
0xFF800000 0xFF82FFFF</font>
<br><font size=2 face="sans-serif"> dBUG Data
0x00000000 0x0001FFFF</font>
<br><font size=2 face="sans-serif"> MCD API
0x10010000 0x10012FFF</font>
<br>
<br><font size=2 face="sans-serif"> Chip Selects</font>
<br><font size=2 face="sans-serif"> ----------------</font>
<br><font size=2 face="sans-serif"> CS0 Boot Flash</font>
<br><font size=2 face="sans-serif"> CS1 Code Flash</font>
<br>
<br><font size=2 face="sans-serif">## mmap Cobra</font>
<br>
<br><font size=2 face="sans-serif"> Type
Start End
Port Size</font>
<br><font size=2 face="sans-serif"> ---------------------------------------------------</font>
<br><font size=2 face="sans-serif"> SDRAM
0xF0000000 0xF7FFFFFF 32-bit</font>
<br><font size=2 face="sans-serif"> MBAR
0xFE000000 0xFE03FFFF 32-bit</font>
<br><font size=2 face="sans-serif"> System SRAM 0xFE010000
0xFE017FFF 32-bit</font>
<br><font size=2 face="sans-serif"> Core SRAM0
0xFF000000 0xFF000FFF 32-bit</font>
<br><font size=2 face="sans-serif"> Core SRAM1
0xFF001000 0xFF001FFF 32-bit</font>
<br><font size=2 face="sans-serif"> Boot Flash
0xFC000000 0xFDFFFFFF 16-bit</font>
<br><font size=2 face="sans-serif"> VME Config
0xFE800000 0xFE800226 16-bit</font>
<br><font size=2 face="sans-serif"> Timer
0xFE880000 0xFE88000C 8-bit</font>
<br><font size=2 face="sans-serif"> VME Bus
0x00000000 0xBFFFFFFF 32-bit</font>
<br><font size=2 face="sans-serif"> VME Bus Sh. IO 0xFFFF0000
0xFFFFFFFF 32-bit</font>
<br>
<br><font size=2 face="sans-serif"> Protected
Start End</font>
<br><font size=2 face="sans-serif"> ----------------------------------------</font>
<br><font size=2 face="sans-serif"> dBUG Code
0xFC000000 0xFC095FFF</font>
<br><font size=2 face="sans-serif"> dBUG Data
0xF0000000 0xF001FFFF</font>
<br><font size=2 face="sans-serif"> MCD API
0xFE010000 0xFE012FFF</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> Chip Selects</font>
<br><font size=2 face="sans-serif"> ----------------</font>
<br><font size=2 face="sans-serif"> CS0 Boot Flash</font>
<br>
<br><font size=2 face="sans-serif">dBUG> </font>
<br>
<br><font size=2 face="sans-serif">################################################################</font>
<br><font size=2 face="sans-serif">## I come to this point visible in the
console </font>
<br><font size=2 face="sans-serif">## (launch multi-tasking)</font>
<br><font size=2 face="sans-serif">## ./cpukit/score/src/threadstartmultitasking.c</font>
<br><font size=2 face="sans-serif">void _Thread_Start_multitasking( void
)</font>
<br><font size=2 face="sans-serif">{</font>
<br><font size=2 face="sans-serif">...</font>
<br><font size=2 face="sans-serif"> printk("_Context_Switch()...\n");</font>
<br><font size=2 face="sans-serif"> _Context_Switch( &_Thread_BSP_context,
&_Thread_Heir->Registers );</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif">################################################################</font>
<br><font size=2 face="sans-serif">## ./test.c (0xadef is not
set on the EVB board but works on Cobra)</font>
<br><font size=2 face="sans-serif">## not any output visible</font>
<br><font size=2 face="sans-serif">#include <bsp.h></font>
<br>
<br><font size=2 face="sans-serif">#include <stdlib.h></font>
<br><font size=2 face="sans-serif">#include <stdio.h></font>
<br>
<br><font size=2 face="sans-serif">#include <rtems/bspIo.h></font>
<br>
<br><font size=2 face="sans-serif">rtems_task Init(</font>
<br><font size=2 face="sans-serif"> rtems_task_argument ignored</font>
<br><font size=2 face="sans-serif">)</font>
<br><font size=2 face="sans-serif">{</font>
<br><font size=2 face="sans-serif"> /* make a memory entry to check
after board reset */</font>
<br><font size=2 face="sans-serif"> *((volatile
unsigned int *)0x00f00000) = 0xadef; </font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> printf( "\n\n*** HELLO WORLD
TEST ***\n" );</font>
<br><font size=2 face="sans-serif"> printf( "Hello World\n"
);</font>
<br><font size=2 face="sans-serif"> printf( "*** END OF HELLO
WORLD TEST ***\n" );</font>
<br><font size=2 face="sans-serif"> exit( 0 );</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif">/* configuration information */</font>
<br>
<br><font size=2 face="sans-serif">/* NOTICE: the clock driver is explicitly
disabled */</font>
<br><font size=2 face="sans-serif">#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER</font>
<br><font size=2 face="sans-serif">#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER</font>
<br>
<br><font size=2 face="sans-serif">#define CONFIGURE_MAXIMUM_TASKS
1</font>
<br>
<br><font size=2 face="sans-serif">#define CONFIGURE_MAXIMUM_SEMAPHORES
5</font>
<br>
<br><font size=2 face="sans-serif">#define CONFIGURE_RTEMS_INIT_TASKS_TABLE</font>
<br>
<br><font size=2 face="sans-serif">#define CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM</font>
<br>
<br><font size=2 face="sans-serif">#define CONFIGURE_INIT</font>
<br><font size=2 face="sans-serif">#include <rtems/confdefs.h></font>
<br>
<br><font size=2 face="sans-serif">/* end of include file */</font>
<br><font size=2 face="sans-serif">#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER</font>
<br>
<br><font size=2 face="sans-serif">#define CONFIGURE_RTEMS_INIT_TASKS_TABLE</font>
<br>
<br><font size=2 face="sans-serif">#define CONFIGURE_MAXIMUM_TASKS 1</font>
<br>
<br><font size=2 face="sans-serif">#define CONFIGURE_INIT</font>
<br>
<br><font size=2 face="sans-serif">#include <rtems/confdefs.h></font>
<br>
<br><font size=2 face="sans-serif">/* end of file */</font>
<br>
<br><font size=2 face="sans-serif">################################################################</font>
<br><font size=2 face="sans-serif">## I'm not able to link to 0x400 as
seen in the default linkcmds </font>
<br><font size=2 face="sans-serif">## No idea why, used 0x01000000 instead</font>
<br><font size=2 face="sans-serif">dBUG> md.l 0 600</font>
<br><font size=2 face="sans-serif">00000000: 0001F840 00000400 FF812B12
FF812B12 ...@......+...+.</font>
<br><font size=2 face="sans-serif">00000010: FF812B12 FF812B12 FF812B12
FF812B12 ..+...+...+...+.</font>
<br><font size=2 face="sans-serif">00000020: FF812B12 FF812B12 FF812B12
FF812B12 ..+...+...+...+.</font>
<br><font size=2 face="sans-serif">00000030: FF812B12 FF812B12 FF812B12
FF812B12 ..+...+...+...+.</font>
<br><font size=2 face="sans-serif">00000040: FF812B12 FF812B12 FF812B12
FF812B12 ..+...+...+...+.</font>
<br><font size=2 face="sans-serif">...</font>
<br><font size=2 face="sans-serif">000003F0: FF812C3E FF812C3E FF812C3E
FF812C3E ..,>..,>..,>..,></font>
<br><font size=2 face="sans-serif">00000400: 2D5C7C2F 4D756C74 692D6368
616E6E65 -\|/Multi-channe</font>
<br><font size=2 face="sans-serif">00000410: 6C20444D 41204150 4920416C
70686120 l DMA API Alpha</font>
<br><font size=2 face="sans-serif">00000420: 76302E33 20283230 30342D30
342D3236 v0.3 (2004-04-26</font>
<br><font size=2 face="sans-serif">00000430: 29000000 00000005 00000005
00000001 )...............</font>
<br><font size=2 face="sans-serif">00000440: 00000001 00000001 00000001
00000001 ................</font>
<br><font size=2 face="sans-serif">...</font>
<br>
<br><font size=2 face="sans-serif">################################################################</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif"> </font>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>