Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Trying to add GCC support breaks the Keil microvision compatibility #8

Description

@fred-r

Hi,

I am currently trying to add the GCC support in my target clayer:

but when I do this and open the generated cprj file with Keil microvision 5.32 I get these elements in the uvprojx:

      <Cads>
        <interw>1</interw>
        <Optim>2</Optim>
        <oTime>0</oTime>
        <SplitLS>0</SplitLS>
        <OneElfS>1</OneElfS>
        <Strict>0</Strict>
        <EnumInt>0</EnumInt>
        <PlainCh>0</PlainCh>
        <Ropi>0</Ropi>
        <Rwpi>0</Rwpi>
        <wLevel>3</wLevel>
        <uThumb>0</uThumb>
        <uSurpInc>0</uSurpInc>
        <uC99>0</uC99>
        <uGnu>0</uGnu>
        <useXO>0</useXO>
        <v6Lang>3</v6Lang>
        <v6LangP>3</v6LangP>
        <vShortEn>1</vShortEn>
        <vShortWch>1</vShortWch>
        <v6Lto>0</v6Lto>
        <v6WtE>0</v6WtE>
        <v6Rtti>0</v6Rtti>
        <VariousControls>
          <MiscControls>-g3 -Wall -fstack-usage --specs=nano.specs -mfloat-abi=hard</MiscControls>
          <Define>USE_HAL_DRIVER STM32L562xx</Define>
          <Undefine></Undefine>
          <IncludePath>../../../../Drivers/BSP/STM32L562E-DK/;../../../../Drivers/STM32L5xx_HAL_Driver/Inc/;../../../../Drivers/STM32L5xx_HAL_Driver/Inc/Legacy/;../../../../Drivers/CMSIS/Device/ST/STM32L5xx/Include/;../../../../Drivers/CMSIS/Include/;./Targets/STM32L562E-DK/;.</IncludePath>
        </VariousControls>
      </Cads>

This leads to compilation errors because it seems that the tool tries to use the GCC definitions:

compiling sample_status.c...
ArmClang: error: unknown argument: '-fstack-usage'
compiling main.c...
ArmClang: error: unknown argument: '-fstack-usage'

Thanks & Regards,
Fred

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