AVR32UC3 Freertos problem with libraries

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,
I have problem with my project in Atmel Studio 7.0 with EVK1100 board. I'm going to code it with Freertos. I uploaded basic example with blinking LEDs. Now I'm going to extend it with temperature measurement. I found similiar project on the Internet and tried to upload it to device but there are few errors. When I started to do my own project I have problem with compile. Libraries which I added aren't recognized by compiler. I have problem with libraries spi.h, pwm.h and delay.h. Also it's somethong wrong with dip204 file which is connected with display. I'm adding screen with these errors. What could be wrong?
Regards,
Pawel

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hellblessar wrote:
libraries spi.h, pwm.h and delay.h.

Note that thes are not libraries - they are just so-called header files 

 

It makes life a lot easier if you embed your image - instead of attaching it - so that we can see it.

 

Instructions here: http://www.avrfreaks.net/comment...

 

Like this:

 

 

Assuming that those headers are actually present on your PC, these errors mean that you have not (properly) configured your project so that the compiler knows where to find them.

 

You do that by setting-up the Include Paths.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for correct me with image posting.
I checked how paths for another example project (DIP204 EXAMPLE) looks like. This is project with simple display on controller. dip204.c and all these header files I've included have the same path so mine.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You may need to add the folder name to the include (e.g. #include "spi/spi.h") unless you have added the path(s) in the Project/Properties/Toolchain/Compiler/Directories include paths.

David (aka frog_jr)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I really appreciate your answer. Added all sources to the compiler directories delete all errors with missing headers and other files. After added all paths I tried to build the project and reduced all errors to 2. Do you have idea how to solve this?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Forget that Error List - to see the errors just look at the "Output" tab.

 

Anyway the error is simply about _stext, from what I can gather that is a symbol that should be provided by the C "run time".

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In the output table I only found this error:
C:\Users\lenovo\Documents\Atmel Studio\7.0\GccBoardProject1\GccBoardProject1\Debug\Makefile(642,1): error: recipe for target 'GccBoardProject1.elf' failed

It's error in makefile with building target:

Then is just error:
undefined reference to `_stext'        collect2: ld returned 1 exit status
        make: *** [GccBoardProject1.elf] Error 1

Do you have any ideas?
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Do a search that comes up a lot - it's about the CRT code for UC3. See posts by "mikech" on this subject.