This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RealView Empty project doesn't work

Hi,
I am trying to create a simple project for AT91FR40162 using RealView compiler. It contains only 1 file main.c:

#include <91R40008.h>

void main(void)
{;}

When I compile it, I get this error message:
 compiling main.c...
linking...
PROJEKTAS.axf: error: L6913E: Invalid value for --ro-base.
Target not created 
What does it mean? When I compile example projects for RealView - everything is ok.

  • Is there any point in worrying about this?

    You project does nothing, and nothing is created - so the output is a faithful representation of the input!

    You say you can build real projects. Try making your project actually do something - if you still get problems then, that would be the time to start worrying!

  • #include <91R40008.h>
    void main(void)
    {
        unsigned long a = 10;
    	unsigned long b = 20;
    
    	b += a;
        TC0_CMR  = TC_CAPT | TC_CPCTRG;              /* set timer mode              */
        TC0_RC   = 10000 - 1;                        /* set timer period            */
        TC0_IER  = TC_CPCS;                          /* enable RC compare interrupt */
        AIC_SVR6 = a;                                /* set interrupt vector        */
        AIC_SMR6 = AIC_SRCTYPE_INT_EDGE_TRIGGERED;   /* edge triggered interrupt    */
        AIC_IECR = (1<<TC0_ID);                      /* enable interrupt            */
        TC0_CCR  = TC_CLKEN | TC_SWTRG;              /* enable and start timer   	*/
       	while(1)
    	{;}
    
    }
    
    


    gives the same error

  • OK, so look at what the message is actually telling you:

    error: L6913E: Invalid value for --ro-base
    You need to look-up the documentation for --ro-base to see what constitutes a valid value; then look at what you've actually specified, and see why it's invalid.

  • In the EVAL Mode, you need to specify a address for the RO and RW Base manually.

    This is done under Project - Options - Linker.

    See example projects like
    C:\Keil\ARM\RV\Examples\Hello.

    Reinhard