MDK-Packs / CB_Lab4Layer

CMSIS-Build Lab with Layers
4 stars 9 forks source link

cbuildgen : files in groups are not compiled #6

Open jeromecoutant opened 3 years ago

jeromecoutant commented 3 years ago

Hi

cprj file is attached: I2C_MasterTransmit_IT-NUCLEO-F429ZI.zip

Only 2 files are compiled!

Command:

cbuildgen make I2C_MasterTransmit_IT-NUCLEO-F429ZI.cprj --toolchain=AC6 --outdir=BUILD --intdir=BUILD
...
M652: Generated makefile for project build: 'xxx/I2C_MasterTransmit_IT/BUILD/I2C_MasterTransmit_IT-NUCLEO-F429ZI.mak'
[1/3] Compiling C:/cube/infra/Firmware/Samples/HAL/I2C/I2C_MasterTransmit_IT/main.c
[2/3] Compiling C:/cube/infra/Firmware/Samples/HAL/I2C/I2C_MasterTransmit_IT/sample.c
[3/3] Linking to C:/cube/infra/Firmware/Samples/HAL/I2C/I2C_MasterTransmit_IT/BUILD/image.axf
...
jeromecoutant commented 3 years ago

@tarek-bochkati @fred-r

jeromecoutant commented 3 years ago

Found a workaround => need to remove double group definition.

Changed:

    <group name="Drivers">
      <group name="STM32F4xx_HAL_Driver">
      </group>
    </group>

and

    <group name="Sample">
      <group name="NUCLEO-F429ZI">
      </group>
    </group>

into

     <group name="STM32F4xx_HAL_Driver">
    </group>

     <group name="NUCLEO-F429ZI">
    </group>
brondani commented 3 years ago

Hi Jerome, Thanks for reporting this! As you have figured out yourself, nested groups are not yet supported. For the time being please use the normal structure also used in the examples:

<files>
  <group ... >
    <file ... >
    </file>
  </group>
</files>

Thanks Daniel