Hello World Error...
strauman at SLAC.Stanford.EDU
Fri May 30 18:56:07 UTC 2003
Hmm - I do not know that BSP at all.
However, a look at 'bspstart.c' reveals
> void bsp_start( void )
> unsigned char *work_space_start;
> unsigned int msr_value = 0x2030;
> * Set BSP to initial value. Note: This value is a guess
> * check how the real board comes up. This is critical to
> * getting the source to work with the debugger.
> _CPU_MSR_SET( msr_value );
Probably, your MMU is not initialized and reading the
instruction following CPU_MSR_SET() (which enables the MMU)
crashes for lack of a valid address translation.
Madhu Raju wrote:
>>===== Original Message From Joel Sherrill <joel.sherrill at oarcorp.com> =====
>>Madhu Raju wrote:
>>>I have configured RTEMS for dmv177 bsp for powerpc.I did that succesfully.I
>>>downloaded a hello world application onto SVME/DMV-177 PowerPC 603e Single
>>>Board Computer using minicom.When i try to execute the application, I get
>>>Exception 0400: Instruction Access Exception
>>> SRR0(pc) 00041A10 SRR1(msr) 10002030
>>>I found out from Hello.num and hello.dump that the instruction is
>>>000419ec T bsp_start
>>>Could anyone please help me solve this problem?
>>I have no guesses but recommend using powerpc-rtems-objdump -da to find
>>what instruction is at 00041A10. That would give a clue as to what
>>One thing I do see is that the linkcmds assumes 32M of RAM. If this
>>match your board, it could be accessing non-existent memory.
>>I haven't heard a report on this BSP in a long time. Please keep us
> The instruction at 41A10 is
> 41a10: 80 87 00 04 lwz r4,4(r7)
> Can the problem be guessed using this instruction information?
More information about the users