IAR project setup

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
alb
Posts: 12
Joined: Fri May 23, 2014 2:28 am

IAR project setup

Post by alb »

How do I get IAR to search the ChibiOS_2.6.4 directory structure for the files needed to compile?

There is a spot in the Project > Options > C/C++ Complier > Preprocessor, to add directories, but it seems as though every leaf directory needs to be listed. Seems there should be an easier way.
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: IAR project setup

Post by Giovanni »

Hi,

If there is a more rational way then I have never found it. If you look at the various IAR demos you will see that all required directories are listed.

Giovanni
alb
Posts: 12
Joined: Fri May 23, 2014 2:28 am

Re: IAR project setup

Post by alb »

Thanks for your weekend help.

Added the directories one at a time, one for each error.

One step at a time. Now how about the linker. I am getting errors such as these:

Error[Li005]: no definition for "halInit" [referenced from C:\ChibiOS_2.6.4\projects\four_motor_iar\iar\Debug\Obj\main.o]
Error[Li005]: no definition for "chSysInit" [referenced from C:\ChibiOS_2.6.4\projects\four_motor_iar\iar\Debug\Obj\main.o]
Error[Li005]: no definition for "sdStart" [referenced from C:\ChibiOS_2.6.4\projects\four_motor_iar\iar\Debug\Obj\main.o]
...
Error[Li005]: no definition for "sduRequestsHook" [referenced from C:\ChibiOS_2.6.4\projects\four_motor_iar\iar\Debug\Obj\usbcfg.o]
Error[Li005]: no definition for "usbInitEndpointI" [referenced from C:\ChibiOS_2.6.4\projects\four_motor_iar\iar\Debug\Obj\usbcfg.o]
Error[Li005]: no definition for "sduConfigureHookI" [referenced from C:\ChibiOS_2.6.4\projects\four_motor_iar\iar\Debug\Obj\usbcfg.o]
...

Any hints?

Thanks, ALB
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: IAR project setup

Post by Giovanni »

Make sure to include all the required files into the project. I suggest you start from one of the provided examples.

Giovanni
Post Reply