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) {;}
compiling main.c... linking... PROJEKTAS.axf: error: L6913E: Invalid value for --ro-base. Target not created
#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) {;} }
OK, so look at what the message is actually telling you:
error: L6913E: Invalid value for --ro-base
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