Can't uncheck "exclude resource from build" checkbox

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

Can't uncheck "exclude resource from build" checkbox

703 Views
scottm
Senior Contributor II

Running MCUXpresso IDE v11.6.1. I'm using the MCUX SDK USB stack, but usb/device/class/usb_device_class.c is showing up with "exclude resource from build" checked and I can't uncheck it.

Usually this means it's excluded somewhere higher up, but when I go up to the class folder the option isn't checked in the current (debug) configuration and it's grayed out. It's not grayed out when I select the release configuration.

If I right click on the file and choose "Resource Configurations | Exclude from build" I get checkboxes:

scottm_0-1669172775003.png

But if I uncheck the checkbox, it doesn't stick - as soon as I look again, it's checked. The context menu option isn't available for the folders, just the file.

Normally I'd go all the way up to "usb" and exclude it and then un-exclude it to try to get it to propagate downward, but the exclude option is grayed out for the folder. That's true of all of the folders down to "class", which only lets me check it for the release configuration.

How did this happen and how do I fix it?

Thanks,

Scott

0 Kudos
Reply
3 Replies

681 Views
scottm
Senior Contributor II

OK, I followed up on my hunch and found a solution. I had to remove all of the usb paths from the Source Location list, and then I was able to remove the exclusion from the usb folder.

I have no idea how it got like this, but I saved an archive of the project before the fix if anyone cares.

Scott

0 Kudos
Reply

693 Views
ErichStyger
Specialist I

Hi @scottm,

Not sure what is going wrong here, and don't see this on my side with a quick test on 11.6.1.

But does it work if you do it with the Properties on the file?

Erich

0 Kudos
Reply

682 Views
scottm
Senior Contributor II

'Properties' is where I'd normally do it, and that's where it's grayed out for the debug configuration:

scottm_0-1669225730120.png

scottm_1-1669225751724.png

Now, I don't know if this is related but I can't remember seeing the IDE do this before: I've got folders showing up with paths, and then showing up elsewhere in the project tree as nested folders:

scottm_2-1669225834347.png

I'm assuming it's because those are configured under Source Location in Paths and Symbols. I didn't set them up there so presumably the project was created that way.

I can't find anything in the .cproject file that looks like an exclusion.

Scott

 

0 Kudos
Reply