ARM-software / cmsis-pack-eclipse

CMSIS-Pack Eclipse Plug-ins
Other
66 stars 32 forks source link

Problems with Generator support in Eclipse CMSIS pack manager plugin #110

Closed edriouk closed 4 months ago

edriouk commented 11 months ago

NXP has reported problems in the Eclipse CMSIS pack manager plugin used in the MCUXPresso IDE and also IAR. After importing the pack into the MCUXpresso IDE in CMSIS plugin perspective, there is possible to “enable” the generator component and there is the green arrow button that can be pressed:

The generator batch file launches, but it seems that parameters are passed in incorrect way. It seems that the parameters are “interleaved” with empty strings (every odd parameter is “”).

Also the files referenced in the GPDSC are not added into the project. Maybe there are some issue with the path as we are not sure, what should be the reference root for the files mentioned in the .gpdsc

edriouk commented 11 months ago

There are several problems with the issue:

  1. Wrong processing of generator arguments: an empty argument always added regardless if "switch" attribute exists.
  2. Working directory is not prepended to the gpdsc file name.
  3. There is an NPE caused by 2. : parent directory is null and needs special processing
  4. gpdsc file is not fully processed : only components get added, not project files (because they outside of the project directory).
edriouk commented 11 months ago

CmsisPackPlugIn2.9.0_patch.zip The issue is fixed and needs to be verified.

edriouk commented 4 months ago

Fixed in 2.10.0