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.

Parents
  • #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

Reply
  • #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

Children