Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake: Add mbed-cmsis-cortex-m into Nuvoton target #14376

Merged
merged 1 commit into from
Mar 5, 2021

Conversation

cyliangtw
Copy link
Contributor

Summary of changes

To verify cmake build with mbed-tools v7.2.0 and last Mbed OS master branch on NUMAKER_IOT_M487 target, got error as below:

fatal error: core_cm4.h: No such file or directory
  203 | #include "core_cm4.h

This PR could fix above fata error by adding mbed-cmsis-cortex-m into CMakeList of Nuvoton target.

Impact of changes

None

Migration actions required

None

Documentation

None


Pull request type

[x] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[] Covered by existing mbed-os tests (Greentea or Unittest)
[x] Tests / results supplied as part of this PR

Test mbed-os-example-blinky:

[cygwin~mbed-os-example-blinky-cmake]$ mbed-tools compile -m NUMAKER_IOT_M487 -t GCC_ARM
Configuring project and generating build system...
-- The C compiler identification is GNU 9.3.1
-- The CXX compiler identification is GNU 9.3.1
-- The ASM compiler identification is GNU
...............................................................................................................................................
[190/190] Linking CXX executable mbed-os-example-blinky.elf
-- built: C:/ARM_mbed/examples/mbed-os-example-blinky-cmake/cmake_build/NUMAKER_IOT_M487/develop/GCC_ARM/mbed-os-example-blinky.bin
-- built: C:/ARM_mbed/examples/mbed-os-example-blinky-cmake/cmake_build/NUMAKER_IOT_M487/develop/GCC_ARM/mbed-os-example-blinky.hex
| Module           |         .text |       .data |        .bss |
|------------------|---------------|-------------|-------------|
| [fill]           |       46(+46) |       4(+4) |     27(+27) |
| [lib]\c.a        |   4836(+4836) | 2108(+2108) |     89(+89) |
| [lib]\gcc.a      |     760(+760) |       0(+0) |       0(+0) |
| [lib]\misc       |     188(+188) |       4(+4) |     28(+28) |
| main.cpp.obj     |       84(+84) |       0(+0) |       0(+0) |
| mbed-os\cmsis    |   6546(+6546) |   168(+168) | 5953(+5953) |
| mbed-os\drivers  |       58(+58) |       0(+0) |       0(+0) |
| mbed-os\hal      |   1470(+1470) |       4(+4) |     59(+59) |
| mbed-os\platform |   4386(+4386) |   260(+260) |   348(+348) |
| mbed-os\rtos     |       28(+28) |       0(+0) |       0(+0) |
| mbed-os\targets  |   5374(+5374) |   268(+268) |   164(+164) |
| Subtotals        | 23776(+23776) | 2816(+2816) | 6668(+6668) |
Total Static RAM memory (data + bss): 9484(+9484) bytes
Total Flash memory (text + data): 26592(+26592) bytes



Reviewers


@ciarmcom ciarmcom added the release-type: patch Indentifies a PR as containing just a patch label Mar 4, 2021
@ciarmcom ciarmcom requested a review from a team March 4, 2021 04:00
@ciarmcom
Copy link
Member

ciarmcom commented Mar 4, 2021

@cyliangtw, thank you for your changes.
@ARMmbed/mbed-os-maintainers please review.

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 4, 2021

CI started

@mbed-ci
Copy link

mbed-ci commented Mar 4, 2021

Jenkins CI Test : ✔️ SUCCESS

Build Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & Artifacts

CLICK for Detailed Summary

jobs Status
jenkins-ci/mbed-os-ci_unittests ✔️
jenkins-ci/mbed-os-ci_cmake-example-ARM ✔️
jenkins-ci/mbed-os-ci_cmake-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_build-greentea-ARM ✔️
jenkins-ci/mbed-os-ci_build-cloud-example-ARM ✔️
jenkins-ci/mbed-os-ci_build-example-ARM ✔️
jenkins-ci/mbed-os-ci_build-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_build-cloud-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_build-greentea-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_cmake-example-test ✔️
jenkins-ci/mbed-os-ci_greentea-test ✔️

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

Successfully merging this pull request may close these issues.

5 participants