Build and run specific folder or files in project directory

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Build and run specific folder or files in project directory

Jump to solution
1,297 Views
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 Kudos
1 Solution
1,284 Views
ErichStyger
Senior Contributor V

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

View solution in original post

0 Kudos
2 Replies
1,285 Views
ErichStyger
Senior Contributor V

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 Kudos
1,265 Views
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 Kudos