Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Generator not being called from CMSIS-Build #13

@LMESTM

Description

@LMESTM

Hi,

Using CMSIS-Buil 0.10.0, with a SW component that relies on a Generator.
The Generator command seems not to be called even though the Generator section is well found because the cbuildgen reports an error when not finding the expected gpdsc file.

(build-cli) cleaning files
(cbuildgen): Build Process Manager 0.10.0 (C) 2020 ARM
M650: Command completed successfully.
(cbuildgen): Build Process Manager 0.10.0 (C) 2020 ARM

*** ERROR M204:
  Path not found: 'C:\[...]....Gen.gpdsc'!

The Generator is defined like below

  <generators>
    <!-- This generator is launched if any component referencing this generator by 'id' is selected and the specified <gpdsc> file does not exist -->
    <generator id="MyTestGen">
      <description>Test</description>
      <exe>
        <command host = "win">myscript.bat</command>
        <!-- $S = Device Family Pack base folder -->
        <argument>$S</argument>
        <!-- D = Device (Dname/Dvariant as configured by environment) -->
        <argument>$D</argument>
        <!-- Project path and project name (as configured by environment) -->
        <argument>$P</argument>
        <argument>#P</argument>
      </exe>
      <!-- workingDir></workingDir --> <!-- path is specified either absolute or relative to PDSC or GPDSC file. If not specified it is the project directory configured by the environment -->
      <gpdsc name="$P\Gen.gpdsc"/>
    </generator>
  </generators>

and the .bat file is not called.

When using the same pack from Keil µVision 5.33, the generator script is being called as expected.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions