Skip to content

[Bug]: cbridge must strip pName from device when generating project.script file as CubeMX can only deal with devices #226

@jkrech

Description

@jkrech

Is there an existing issue for this?

  • No, I have searched the existing issues

Current Behavior

When specifying a multi-core device from STMicroelectronics (not a board) and launching the generator (STCube) for the first time, this dialog from STM32CubeMX pops up:
Image

cbridge generates project.script file specifying the device name and the processor name (e.g. STM32H7...:CM4) in case of multi-core devices. In this case STM32CubeMX fails to load when invoked as generator with an error message unknown device.
CubeMX configures and generates code for all cores on a device and only uses a single project file (*.ioc). Within the tool the user configures details for individual cores.

Expected Behavior

cbridge writes only the device name into project.script if no *.ioc file is present when a multi-core device is specified in the *.csolution.yml file.

Steps To Reproduce

Create a new CMSIS Solution in VSCode selecting an STM32H7 multi-core device, e.g. STM32H747XIHx (not a board!) and select e.g. CubeMX Dual Core solution. The CubeMX generator component is already selected by the template and you must launch the generator. STM32CubeMX will start and initialize but then display an error dialog shown at the top.

Affected operating systems

  • all

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions