Skip to content

HASH redefined (STM32) #3491

Description

@mjw6i

Hello,

I wrote initial ZMK support for this little guy WeActStudio.STM32H5_64Pin_CoreBoard.
It's a board that is present in zephyr 4.1.

I'm pretty sure this will surface for different STM32 versions.
The issue, while tiny, will be annoying to workaround:

/tmp/zmk-config/zmk/app/include/dt-bindings/zmk/keys.h:128: warning: "HASH" redefined
In file included from /tmp/zmk-config/modules/hal/stm32/stm32cube/stm32h5xx/soc/stm32h5xx.h:107

You can currently see the full build log here (one with warnings)
https://github.com/mjw6i/zmk-caveman-config/actions/runs/33351292851/job/99365091466

It builds cleanly when the define is renamed
https://github.com/mjw6i/zmk-caveman-config/actions/runs/33350548778

I renamed it terribly just for demonstration
main...mjw6i:zmk:caveman

I don't have any suggestions as far as solutions go, but I'm pretty sure you've had this problem before.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions