-
Notifications
You must be signed in to change notification settings - Fork 3k
Add ARM_MUSCA_S1 as a new target platform #13196
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
Conversation
@gbrtth, thank you for your changes. |
7f5b85e
to
4b61bb6
Compare
Hi, Is it possible that the checks do not see this pack? |
@ARMmbed/mbed-os-maintainers please review |
targets/targets.json
Outdated
"GNUARM" | ||
], | ||
"tfm_delivery_dir": "TARGET_ARM_SSG/TARGET_MUSCA_S1", | ||
"device_name": "Musca-S1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we get this PR without device_name
? Just asking as I dont see it used , or ?
If we need, we shall also update index.json file. This is why it fails, cached object can't find the target. See https://os.mbed.com/docs/mbed-os/v6.0/program-setup/adding-and-configuring-targets.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added device_name
on @MarceloSalazar 's request. If it is not necessary for the moment, I can remove it and add it later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove it for now so we can get the PR in while we investigate and fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is removed now.
@gbrtth Could I please request also a PR to https://github.com/ARMmbed/mbed-os-tf-m-regression-tests to add the S1? This should make testing (once we integrate those tests with Mbed CI) and updating TF-M within Mbed OS much easier. Thanks. |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
@gbrtth This is just a new target so comes in as a patch. Also looks like you need a rebase . |
4b61bb6
to
bbd9dad
Compare
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
@gbrtth Please comment once rebased, to notify reviewers about the update. The rebase is needed again. @MarceloSalazar this was already reviewed and approved by you (asking if this is now ready for CI and integration) ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change in bbd9dad should be sent via separate pull request. As this is changing the boot up sequence, please send via a new pull request and describe the changes. It should not be part of "adding new target".
This pull request will depend on it.
Approval subject to tests results. Note we need to see Greentea tests results for both AC6 and GCC ARM. @gbrtth can you please upload new test logs once you see all tests passing? Thanks! |
There are a few active pull requests to TF-M that needs to be merged to have passing test logs. I can update the PR with the logs, once it is done. |
bbd9dad
to
361b400
Compare
Let us know once it is done and this pull request is ready to proceed |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
3574a10
to
21f09a1
Compare
Changes to cc @Patater I'll run CI meanwhile |
If I understand correctly |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/TOOLCHAIN_ARMC6/musca_ns.sct
Outdated
Show resolved
Hide resolved
Test logs: |
@@ -0,0 +1,117 @@ | |||
/* mbed Microcontroller Library | |||
* Copyright (c) 2020 Arm Limited | |||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add SPDX identifiers to new files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we have CI to catch SPDX missing? What happened with CI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it runs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found files with missing license details, please review and fix
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/i2c_api.c reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/lp_ticker.c reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/mbed_serial_platform.c reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/pinmap.c reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/serial_api.c reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/cmsis.h reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/device_definition.c reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/device_definition.h reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/platform_base_address.h reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/platform_description.h reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/platform_irq.h reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/platform_pins.h reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/platform_regs.h reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/system_core_init.c reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/system_core_init.h reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/drivers/cache_drv.c reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/drivers/cache_drv.h reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/drivers/gpio_cmsdk_drv.c reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/drivers/gpio_cmsdk_drv.h reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/drivers/i2c_ip6510_drv.c reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/drivers/i2c_ip6510_drv.h reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/drivers/musca_s1_scc_drv.c reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/drivers/musca_s1_scc_drv.h reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/drivers/qspi_ip6514e_drv.c reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/drivers/qspi_ip6514e_drv.h reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/drivers/timer_cmsdk_drv.c reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/drivers/timer_cmsdk_drv.h reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/drivers/timer_gp_drv.c reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/drivers/timer_gp_drv.h reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/drivers/uart_pl011_drv.c reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/drivers/uart_pl011_drv.h reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/Libraries/mt25ql_flash_lib.c reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/Libraries/mt25ql_flash_lib.h reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/partition/flash_layout.h reason: Missing SPDX license identifier
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/partition/image_macros_preprocessed_ns.c reason: Missing license header
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/partition/image_macros_preprocessed_s.c reason: Missing license header
File: /targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/partition/region_defs.h reason: Missing SPDX license identifier
Offenders
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll improve Travis reports (new files without a proper license will report error to Travis), I'll create a new PR later today
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added the SPDX license identifiers to all the files on the list.
@@ -0,0 +1,215 @@ | |||
/* mbed Microcontroller Library | |||
* Copyright (c) 2017-2019 Arm Limited |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't comment above, s_veneers.o
is needed? I cant find it used anywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is needed. It contains the definitions of the tfm veneer functions, which are used to call the tfm services from the non-secure code.
@@ -0,0 +1,76 @@ | |||
/* mbed Microcontroller Library |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also mcu_boot.bin (in the target folder), is part of this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is also needed, mcuboot.bin is used in tools\targets\ARM_MUSCA_S1.py
@@ -0,0 +1,137 @@ | |||
/* mbed Microcontroller Library | |||
* Copyright (c) 2017-2019 Arm Limited | |||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SPDX here , in all hal implementation files
@gbrtth Only small changes requested. If they are fixed, we can restart CI as soon as possible to have this ready by later today. |
Change-Id: Iebdd4bc402446caba6b7bd894eddb0a85ed884d8 Signed-off-by: Mark Horvath <mark.horvath@arm.com> Signed-off-by: Gabor Toth <gabor.toth@arm.com>
Change-Id: Ib0d207d4ca22ae239f6b40b95618b66eb329a29c Signed-off-by: Mark Horvath <mark.horvath@arm.com>
21f09a1
to
37f2669
Compare
Pull request has been modified.
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Travis will start soon |
Summary of changes
pre-built binary.
signs it and then concatenates the bootloader with the signed binary.
Impact of changes
Migration actions required
Documentation
None
Pull request type
Test results
ARM_MUSCA_S1-GCC_ARM_greentea.txt
Reviewers