Topic : L1119 issue using RBuilder

Forum : ST7/STM8

Original Post
Post Information Post
January 15, 2008 - 5:42pm
Guest

Hello

I try to use the raisonace kit Revav2.12 and use the Rbuilder for a very simple application "switch on led" on the application board. And I use a ST7LITE3 as daughter board.

I use metrowerk C toolchain

In the Rbuider
I have just selected the IO generated sample. And the code given is the following:

#include "ST7lib_config.h"
#include 


/* --------------------------------------------------------------------------- */
/* Function:       PeriphInit */
/* Purpose:        Periph configuration at RESET */
/* Date:           1/15/2008 */
/* --------------------------------------------------------------------------- */
void PeriphInit ( void ) {
   
   /* I/O Port initialization */
   IO_Init();
   IO_Output(IO_PUSH_PULL, IO_PORT_A, 0x9f);
   IO_Input(IO_PULL_UP, IO_PORT_B, 0xf6);
   IO_Input(IO_PULL_UP_IT, IO_PORT_B, 0x9);
   
   
}/* end of  PeriphInit */

/* --------------------------------------------------------------------------- */
/* Function:       main() */
/* Purpose:        main routine */
/* Date:           1/15/2008 */
/* --------------------------------------------------------------------------- */
void main ( void ) {
   
   /* Configure the internal peripherals */
   PeriphInit();

   while ( 1 ){
      
      {
         /* * * * Sample code for the IOs * * *
         This code works with the REva evaluation board. It performs the following:
            a. Read the state of the input buttons/switches (Port B)
            b. Copy the resulting value to the Port A. */
         int read_Data;
         read_Data = IO_Read(IO_PORT_B);     /* Read Port B */
         IO_ByteWrite(IO_PORT_A, read_Data );   /* Write Port A */
      }
      

   }
}/* end of main */

but if I do a build All that generate an error as

Error L1119 : Vector allocated at absolute adress 0xFFFE overlaps with sections placed in segment .absSeg74

I have try to change by hand the address in the .prm but without success. Is anyone have an idea, should be very nice :D

thanks a lot by advance
Kind regards

Replies
Post Information Post
+1
0
-1
January 21, 2008 - 5:41pm
Guest

1. Raisonance products (including RBuilder) does not support the Metrowerks compiler anymore. However, the generated code source is quite simple, and the problem is probably in the setting of the linker (it seems that there are 2 startup files in your project).