Skip to content

Add bare metal support to Renesas targets #14301

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

Merged
merged 2 commits into from
Mar 9, 2021

Conversation

harmut01
Copy link
Contributor

@harmut01 harmut01 commented Feb 18, 2021

Summary of changes

Modify RZ_A1XX and RZ_A2XX target configurations to include
bare metal as a supported profile,and add list of supported standard libraries.
Changes affect the following targets: RZ_A1H, GR_LYCHEE, GR_MANGO.

Issue raised in #13099.

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)
[x] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Reviewers


Modify RZ_A1XX and RZ_A2XX target configurations to include
bare metal as a supported profile,and add list of supported standard libraries.
Changes affect the following targets: RZ_A1H, GR_LYCHEE, GR_MANGO.
@harmut01 harmut01 requested review from a team and hugueskamba February 18, 2021 10:31
@ciarmcom ciarmcom added the release-type: patch Indentifies a PR as containing just a patch label Feb 18, 2021
@ciarmcom ciarmcom requested a review from a team February 18, 2021 11:00
@ciarmcom
Copy link
Member

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

@mergify mergify bot added needs: CI and removed needs: review labels Feb 18, 2021
0xc0170
0xc0170 previously approved these changes Feb 18, 2021
@ciarmcom ciarmcom added the stale Stale Pull Request label Feb 20, 2021
@ciarmcom
Copy link
Member

This pull request has automatically been marked as stale because it has had no recent activity. @ARMmbed/mbed-os-maintainers, please start CI to get the PR merged.

@0xc0170
Copy link
Contributor

0xc0170 commented Feb 22, 2021

CI started

@0xc0170
Copy link
Contributor

0xc0170 commented Feb 22, 2021

@harmut01 CI errored early


[2021-02-22T12:34:58.040Z] multiprocessing.pool.RemoteTraceback: 

[2021-02-22T12:34:58.040Z] """

[2021-02-22T12:34:58.040Z] Traceback (most recent call last):

[2021-02-22T12:34:58.040Z]   File "/usr/lib/python3.6/multiprocessing/pool.py", line 119, in worker

[2021-02-22T12:34:58.040Z]     result = (True, func(*args, **kwds))

[2021-02-22T12:34:58.040Z]   File "/usr/lib/python3.6/multiprocessing/pool.py", line 44, in mapstar

[2021-02-22T12:34:58.040Z]     return list(map(*args))

[2021-02-22T12:34:58.040Z]   File "smart-tester/target_toolchain_selector.py", line 92, in get_resources_filenames_target_toolchains

[2021-02-22T12:34:58.040Z]     resources_filenames_target_toolchains[target][toolchain] = get_resources_filenames(".", target, toolchain)

[2021-02-22T12:34:58.040Z]   File "smart-tester/target_toolchain_selector.py", line 32, in get_resources_filenames

[2021-02-22T12:34:58.040Z]     notify=MockNotifier())

[2021-02-22T12:34:58.040Z]   File "./tools/build_api.py", line 514, in prepare_toolchain

[2021-02-22T12:34:58.040Z]     target, notify, macros, build_dir=build_dir, build_profile=profile, coverage_patterns=coverage_patterns)

[2021-02-22T12:34:58.040Z]   File "./tools/toolchains/iar.py", line 64, in __init__

[2021-02-22T12:34:58.040Z]     self.check_c_lib_supported(target, "iar")

[2021-02-22T12:34:58.040Z]   File "./tools/toolchains/mbed_toolchain.py", line 1113, in check_c_lib_supported

[2021-02-22T12:34:58.040Z]     UNSUPPORTED_C_LIB_EXCEPTION_STRING.format(target.c_lib)

[2021-02-22T12:34:58.040Z] tools.utils.NotSupportedException: std C library option not supported for this target.

Please review. I cant find in the logs what "this target" is it

@harmut01
Copy link
Contributor Author

harmut01 commented Feb 24, 2021

The issue seems to be unrelated to the changes in this PR, @LDong-Arm has seen the same issue on his PR and raised this commit to fix it.

@LDong-Arm
Copy link
Contributor

The CI might have been fixed by #14350, rerunning might work

@@ -4841,6 +4841,17 @@
"program_cycle_s": 2,
"overrides": {
"network-default-interface-type": "ETHERNET"
},
"supported_application_profiles" : ["full", "bare-metal"],
"supported_c_libs": {
Copy link
Contributor

@LDong-Arm LDong-Arm Feb 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove IAR from line 4812, to avoid check failure again in CI

@mergify mergify bot dismissed 0xc0170’s stale review February 25, 2021 14:12

Pull request has been modified.

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 1, 2021

CI restarted

@mbed-ci
Copy link

mbed-ci commented Mar 1, 2021

Jenkins CI Test : ✔️ SUCCESS

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

CLICK for Detailed Summary

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

@ciarmcom ciarmcom added stale Stale Pull Request and removed stale Stale Pull Request labels Mar 1, 2021
@0xc0170
Copy link
Contributor

0xc0170 commented Mar 5, 2021

Seems like one of the recent PRs broke master


[2021-03-04T17:45:48.158Z] Previous HEAD position was 76b2902f48 Merge pull request #14354 from ARMmbed/feature-tf-m-1.2-integration

[2021-03-04T17:45:48.158Z] Switched to branch 'mbed-os-ci-test-unique-id'

[2021-03-04T17:45:48.414Z] multiprocessing.pool.RemoteTraceback: 

[2021-03-04T17:45:48.414Z] """

[2021-03-04T17:45:48.414Z] Traceback (most recent call last):

[2021-03-04T17:45:48.414Z]   File "/usr/lib/python3.6/multiprocessing/pool.py", line 119, in worker

[2021-03-04T17:45:48.414Z]     result = (True, func(*args, **kwds))

[2021-03-04T17:45:48.414Z]   File "/usr/lib/python3.6/multiprocessing/pool.py", line 44, in mapstar

[2021-03-04T17:45:48.414Z]     return list(map(*args))

[2021-03-04T17:45:48.414Z]   File "smart-tester/target_toolchain_selector.py", line 92, in get_resources_filenames_target_toolchains

[2021-03-04T17:45:48.414Z]     resources_filenames_target_toolchains[target][toolchain] = get_resources_filenames(".", target, toolchain)

[2021-03-04T17:45:48.414Z]   File "smart-tester/target_toolchain_selector.py", line 32, in get_resources_filenames

[2021-03-04T17:45:48.414Z]     notify=MockNotifier())

[2021-03-04T17:45:48.414Z]   File "./tools/build_api.py", line 514, in prepare_toolchain

[2021-03-04T17:45:48.414Z]     target, notify, macros, build_dir=build_dir, build_profile=profile, coverage_patterns=coverage_patterns)

[2021-03-04T17:45:48.414Z]   File "./tools/toolchains/iar.py", line 64, in __init__

[2021-03-04T17:45:48.414Z]     self.check_c_lib_supported(target, "iar")

[2021-03-04T17:45:48.414Z]   File "./tools/toolchains/mbed_toolchain.py", line 1113, in check_c_lib_supported

[2021-03-04T17:45:48.414Z]     UNSUPPORTED_C_LIB_EXCEPTION_STRING.format(target.c_lib)

[2021-03-04T17:45:48.414Z] tools.utils.NotSupportedException: std C library option not supported for this target.

This is in the latest CI run here but I am seeing this in another PRs now

@LDong-Arm
Copy link
Contributor

@0xc0170 I had a quick look at the latest targets.json as of now, KL25Z, KL46Z, MCU_K22F512, KL43Z, K82F all have IAR in supported_toolchains but no iar in supported_c_libs.

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 5, 2021

Thank you, @harmut01 is looking at it

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 8, 2021

CI started

@mbed-ci
Copy link

mbed-ci commented Mar 8, 2021

Jenkins CI Test : ❌ FAILED

Build Number: 4 | 🔒 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-greentea-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_build-cloud-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_build-example-GCC_ARM
jenkins-ci/mbed-os-ci_build-example-ARM

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 9, 2021

CI restarted

@mbed-ci
Copy link

mbed-ci commented Mar 9, 2021

Jenkins CI Test : ✔️ SUCCESS

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

CLICK for Detailed Summary

jobs Status
jenkins-ci/mbed-os-ci_cmake-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_cmake-example-ARM ✔️
jenkins-ci/mbed-os-ci_unittests ✔️
jenkins-ci/mbed-os-ci_build-greentea-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_greentea-test ✔️
jenkins-ci/mbed-os-ci_cmake-example-test ✔️

@0xc0170 0xc0170 merged commit 5f9fbfe into ARMmbed:master Mar 9, 2021
@mergify mergify bot removed ready for merge stale Stale Pull Request labels Mar 9, 2021
@mbedmain mbedmain added release-version: 6.9.0 Release-pending and removed release-type: patch Indentifies a PR as containing just a patch Release-pending labels Mar 15, 2021
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.

8 participants