ARMmbed / ARMmbed/mbed-cli

Exporter for SW4STM32: Inline assembler error, wrong dialect

Open
#897 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
339
Forks
187
PR merge metrics
No merged PRs in 30d

Description

In the current release of the mbed CLI and mbed OS 5.12.4 i found an error regarding the export to the AC6 System Workbench for STM32:

Export command:
mbed export -i SW4STM32 -m NUCLEO_L4R5ZI

Error:
mbed-os/platform/mbed_critical.h: In function 'core_util_atomic_flag_clear':
mbed-os/platform/mbed_toolchain.h:190:33: error: 'asm' undeclared (first use in this function)

Problem:
Dialect flag of System Workbench was set to -std=c99 but need to set to -std=gnu99 or no dialect.

Related:
https://stackoverflow.com/questions/35131350/error-asm-undeclared-first-use-in-this-function

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.