Author Topic: problem compiling Rowley or IAR  (Read 8928 times)

Offline egnoske

  • Newbie
  • *
  • Posts: 1
    • View Profile
problem compiling Rowley or IAR
« on: January 06, 2009, 05:33:06 AM »
Hello,

When I try to compile either the Rowley or IAR projects (SP3 or SP4) I get errors relating to finding the header files:

Build active project
Building “uTaskerV13” in configuration “THUMB Flash Debug”
Compiling application.c
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:58:20: error: config.h: No such file or directory
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:355: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'network_default'
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:365: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'cParameters'
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:568: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:569: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:570: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'network'
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:571: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'network_flash'
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:622: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'save_handle'
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:683: error: expected ')' before '*' token
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:1261: error: expected ')' before '*' token
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c: In function 'fnGetEthernetPars':
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:1313: warning: implicit declaration of function 'fnSetDefaultNetwork'
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:1313: error: 'network' undeclared (first use in this function)
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:1313: error: (Each undeclared identifier is reported only once
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:1313: error: for each function it appears in.)
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:1319: error: 'LAN_LEDS' undeclared (first use in this function)
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c: In function 'fnGetOurParameters':
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:1380: warning: implicit declaration of function 'uMemcpy'
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:1380: error: 'temp_pars' undeclared (first use in this function)
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:1380: error: 'cParameters' undeclared (first use in this function)
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:1380: error: 'PARS' undeclared (first use in this function)
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c: In function 'fnWeHaveBeenValidated':
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:1417: warning: implicit declaration of function 'uTaskerStopTimer'
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:1417: error: 'TASK_APPLICATION' undeclared (first use in this function)
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c: In function 'fnSaveDebugHandle':
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:1424: error: 'save_handle' undeclared (first use in this function)
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:1424: error: 'DebugHandle' undeclared (first use in this function)
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:1437: error: 'NETWORK_HANDLE' undeclared (first use in this function)
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c: In function 'fnRestoreDebugHandle':
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:1445: error: 'DebugHandle' undeclared (first use in this function)
C:/atmel/utasker/Applications/uTaskerV1.3/Rowley_SAM7X/../application.c:1445: error: 'save_handle' undeclared (first use in this function)
Build failed

Any ideas on proper configuration?

Thanks

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3234
    • View Profile
    • uTasker
Re: problem compiling Rowley or IAR
« Reply #1 on: January 06, 2009, 12:10:03 PM »
Hi Eric

My bet is that the installation of the SP has not been performed correctly. Since config.h is in the same directory as application.c I think that this file is missing rather than a path incorrect. The other errors you see are subsequent errors due to missing defines etc.

Check in your directory \Applications\uTaskerV1.3 and see whether config.h exists. You should find that config-sam7x-reference-SP4.h is there, which you can rename to config.h since you are starting your project with the SP. (The SPs don't overwrite any existing config.h for users who are upgrading during a project development, so that their configuration is not modified). See also the following for a SP starters guide and any patches for the release:
http://www.utasker.com/forum/index.php?topic=478.0

Check page 4 of the following document which gives a step for step guide to adding SPs: http://www.utasker.com/docs/uTasker/uTaskerV1.3_user_guide.PDF

Note that service packs replace new files by overwriting existing ones from the base project (V1.3). If a service pack is extracted without the base project there will be missing files and it will not be able to build.

Good luck!

Regards

Mark