You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a project with 4 configurations. Two MCU cores with each their own program, in both DEBUG and RELEASE.
When I add new files to my project I want EWPtool to scan the existing folders, to add new source and header files to the Embedded Workbench Project.
While the source (.c) files are added to all configurations, the include paths are only updated for the currently active configuration.
That means I have to tediously switch through my configurations (with associated project-reload and wait) and select "re-scan ..." and wait for the project to reload again.
To remove the hassle of this, I wanted to setup a PowerShell script that calls EWPtool.exe once for each configuration. Like so:
My problem:
When I call EWPTool.exe it returns almost immediately, but I can see that it takes "a lot longer" before the actual file operations are done.
So I get 4 quick calls, but only one configuration is actually updated.
Is there a way for EWPtool to not return until it's done? Alternatively, is there a way to "know" when the actual project update has finished.
// Thanks
// Kasper
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. It is indeed a good suggestion for ewptool: offer a way to propagate options across multiple build configurations. I will start working on that as a new feature though this might take a little while.
For now, please consider the following workaround, if it suits your script:
A slightly improved version of the previous PowerShell snippet, which does not hardcode a delay between the processes. It also uses introspection for retrieving the actual project's build configuration XML tags:
I have a project with 4 configurations. Two MCU cores with each their own program, in both DEBUG and RELEASE.
When I add new files to my project I want EWPtool to scan the existing folders, to add new source and header files to the Embedded Workbench Project.
While the source (.c) files are added to all configurations, the include paths are only updated for the currently active configuration.
That means I have to tediously switch through my configurations (with associated project-reload and wait) and select "re-scan ..." and wait for the project to reload again.
To remove the hassle of this, I wanted to setup a PowerShell script that calls EWPtool.exe once for each configuration. Like so:
My problem:
When I call
EWPTool.exe
it returns almost immediately, but I can see that it takes "a lot longer" before the actual file operations are done.So I get 4 quick calls, but only one configuration is actually updated.
Is there a way for EWPtool to not return until it's done? Alternatively, is there a way to "know" when the actual project update has finished.
// Thanks
// Kasper
The text was updated successfully, but these errors were encountered: