Build and run specific folder or files in project directory

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Build and run specific folder or files in project directory

ソリューションへジャンプ
1,831件の閲覧回数
fireflies_at_night
Contributor II

Hi,
Quite new to MCUExpresso and still learning the ropes.

I want to run a specific directory - in this case the read_accel_value_transfer example code - and not build the rest. Observed two things:

1. This folder does not have the little blue C on the folder icon (meaning this folder is not included in build).

2. Second, when I hash the int main (void) code in source so I can run the int main code in the read_accel_value_transfer folder, I am getting this error. 

fireflies_at_night_1-1659793134525.png

 

fireflies_at_night_0-1659792897961.png 

Could anyone help on this?

Thank you!

 

0 件の賞賛
返信
1 解決策
1,818件の閲覧回数
ErichStyger
Specialist I

There are many different ways you could do this in Eclipse. What I recommend is the usage of build configurations with 'Exclude from build':

a) create one or more build configurations (see https://mcuoneclipse.com/2016/05/19/build-configurations-in-eclipse/ )

b) then exclude the files you don't want to be part of the build configuration, see https://mcuoneclipse.com/2014/07/22/exclude-source-files-from-build-in-eclipse/

 

I hope this helps,

Erich

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,819件の閲覧回数
ErichStyger
Specialist I

There are many different ways you could do this in Eclipse. What I recommend is the usage of build configurations with 'Exclude from build':

a) create one or more build configurations (see https://mcuoneclipse.com/2016/05/19/build-configurations-in-eclipse/ )

b) then exclude the files you don't want to be part of the build configuration, see https://mcuoneclipse.com/2014/07/22/exclude-source-files-from-build-in-eclipse/

 

I hope this helps,

Erich

0 件の賞賛
返信
1,799件の閲覧回数
fireflies_at_night
Contributor II

Thanks Eric!

Point b) resolved it for me. I'll give a shot to a) as well.

 

Regards,

John

0 件の賞賛
返信