Skip to content

Evaluate ARMv6M type names used in ARMv7-M (CM7/H7) context #25

@terrillmoore

Description

@terrillmoore

In platform/board/st/stm32h7b3i_dk/src/mccibootloaderboard_stm32h7b3i_dk_vectors.c, the SVC handler uses types with ARMv6M in the name:

  • McciBootloaderPlatform_ARMv6M_SvcHandlerFn_t
  • McciBootloaderPlatform_ARMv6M_SvcRq_t
  • McciBootloaderPlatform_ARMv6M_SvcError_t

These are being used in an ARMv7-M (Cortex-M7) context. This may be intentional (shared types across architectures), but the naming is confusing.

Options:

  1. Rename to architecture-neutral names (e.g., drop the ARMv6M qualifier)
  2. Create ARMv7M aliases/typedefs
  3. Document that these are shared types and the ARMv6M prefix is historical

Found during code review of the STM32H7 port.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions