Open-CMSIS-Pack / cmsis-toolbox

CMSIS-Toolbox
https://github.com/Open-CMSIS-Pack/cmsis-toolbox/blob/main/docs/README.md#cmsis-toolbox
Apache License 2.0
69 stars 20 forks source link

[Bug]: Access sequence $Bname$ contains also vendor prefix before 'Bname' #205

Open RobertRostohar opened 1 week ago

RobertRostohar commented 1 week ago

Is there an existing issue for this?

Current Behavior

Access sequence $Bname$ contains the board name but also the vendor (when defined). Access sequence $Dname$ only contains the device name and not the vendor (expected).

Expected Behavior

$Bname$ should contain only the board name as specified in the documentation.

Access Sequences

Steps To Reproduce

csolution.yml

  target-types:
    - type: STM32H745I-DISCO
      board: STMicroelectronics::STM32H745I-DISCO
      device: STMicroelectronics::STM32H745XIHx

cproject.yml

      files:
        - file: test_$Bname$.c
        - file: test_$Dname$.c

cbuild generates cbuild.yml

      files:
        - file: test_STMicroelectronics::STM32H745I-DISCO.c
          category: other
        - file: test_STM32H745XIHx.c
          category: sourceC

Affected tools

Affected operating systems

Environment

cmsis-toolbox 2.6.1 Windows 11

ReinhardKeil commented 1 week ago

Most likely duplicate of https://github.com/Open-CMSIS-Pack/devtools/issues/1846

jkrech commented 1 week ago

This just proofs that this expansion with vendor is not limited to the regions: node but probably to all nodes that support the expansion.