cancel
Showing results for 
Search instead for 
Did you mean: 

Vector source file(example.lkf) error

sandeep2
Associate II
Posted on March 20, 2009 at 05:45

Vector source file(example.lkf) error

12 REPLIES 12
mozra27
Associate II
Posted on May 17, 2011 at 15:02

Hi,

You should include gpio.c in the project and uncomment the line (#define _GPIO (1)) in the conf.h to enable GPIO header file inclusion.

let me know if you have any problems

Regards

mozra

sandeep2
Associate II
Posted on May 17, 2011 at 15:02

This is regarding the errors(my first post on the current thread) that arose because of vector source file(example.lkf). To get rid of the errors and to ensure smooth build, the attached files could be used.

1) example_stm8.lkf(updated for STM8)

2) crts.s (C startup for stm8 without any data initialization)

Add crts.s to the source files and use the example_stm8.lkf as the Linker input script lkf file. Perform a clean build and you should be up and running. 🙂

Regards,

Sandeep

sandeep2
Associate II
Posted on May 17, 2011 at 15:02

Quote:

On 17-03-2009 at 14:52, Anonymous wrote:

Hi,

You should include gpio.c in the project and uncomment the line (#define _GPIO (1)) in the conf.h to enable GPIO header file inclusion.

let me know if you have any problems

Regards

mozra

Yes it worked after including gpio.c. Now it builds without any errors. Thanks.

-SU