Announcements

Ever wondered how you could shape the future in collaboration with others? Join us at OktoberTech Asia Pacific and get inspired. Click here to sign up FREE of charge.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 6 Forum Discussions

Dave_Long
Level 3
10 replies posted 10 questions asked 10 sign-ins
Level 3

Hi:

    In one project,I found tow same named fuction in the same .c file,how the modustollbox design which funtion to be build?

  

LODA_2997366_0-1614868087692.png

LODA_2997366_1-1614868152416.png

 

0 Likes
1 Solution
AlanH_86
Employee
100 replies posted 50 replies posted 25 solutions authored
Employee

If you look in the directory emwin/latest-v5.X/ you will find a file called ".cyignore"

The modus build system looks for that file... and then it it ignore all files/directories listed in that file.

You will see in that .cyignore it has

Config

Sample

Tool

Which is why those are ignored.

Alan

 

View solution in original post

0 Likes
2 Replies
Rakshith
Moderator
Moderator 1000 replies posted 750 replies posted 500 replies posted
Moderator

Hi @Dave_Long

When two files of the same name exist in a ModusToolbox application, the auto-discovery selects the file that has the smaller path relative to the application directory. 

In your case, the configuration file in the folder emWin_config will be selected.

Thanks and Regards,
Rakshith M B
0 Likes
AlanH_86
Employee
100 replies posted 50 replies posted 25 solutions authored
Employee

If you look in the directory emwin/latest-v5.X/ you will find a file called ".cyignore"

The modus build system looks for that file... and then it it ignore all files/directories listed in that file.

You will see in that .cyignore it has

Config

Sample

Tool

Which is why those are ignored.

Alan

 

0 Likes