Skip to content

[cbridge] *cgen.yml Not Generated When All Peripherals Use LL Drivers #142

@DavidLesnjak

Description

@DavidLesnjak

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When all enabled peripherals in STM32CubeMX are configured to use LL (Low-Layer) drivers only (i.e., no HAL drivers), cbridge fails to generate the MX_Device.h and *cgen.yml files.

Root Cause
STM32CubeMX does not generate the *_hal_msp.c file when no peripheral uses the HAL driver. Since cbridge relies on this file to extract pin configuration data, the generation of related output files fails.

Expected Behavior

Even when only LL drivers are used, cbridge should still be able to generate the required files.

Steps To Reproduce

  1. From VSCode project lanch STM32CubeMx
  2. In Project Manage -> Advanced Settings -> Driver Selector set RCC to LL
  3. Click GENERATE CODE
  4. Notice that expected MX_Device.h and *cgen.yml are not generated

Affected operating systems

  • Windows amd64
  • Windows arm64
  • Linux amd64
  • Linux arm64
  • MacOS amd64
  • MacOS arm64

Environment

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions