Skip to content

Add support for LPC55S59 #9910

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 21 commits into from
Mar 8, 2019

Conversation

mmahadevan108
Copy link
Contributor

Description

Cortex-M33 based platform. I will submit my test results.

Pull request type

[ ] Fix
[ ] Refactor
[X] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

Release Notes

@mmahadevan108
Copy link
Contributor Author

mmahadevan108 commented Mar 2, 2019

@mmahadevan108
Copy link
Contributor Author

cc @AndreyButokNXP @nxp49431

@mmahadevan108
Copy link
Contributor Author

@mmahadevan108
Copy link
Contributor Author

The mbed-os-tests-mbed_platform-wait_ns test is failing.


[1551529466.18][CONN][RXD] >>> Running case #1: 'Test: wait_ns - compare with us_timer 1s'...
[1551529466.24][CONN][INF] found KV pair in stream: {{__testcase_start;Test: wait_ns - compare with us_timer 1s}}, queued...
mbedgt: :75::FAIL: Expected 1.200000 Was 0.602970
[1551529466.87][CONN][RXD] :75::FAIL: Expected 1.200000 Was 0.602970


I see the below comment in the wait_ns code inside mbed_wait_api_no_rtos.c file


// TODO - check M33


Can someone from ARM team take a look at the test failure and see if the mbed code needs to be updated?

@mmahadevan108
Copy link
Contributor Author

The mbed-os-tests-mbedmicro-rtos-mbed-heap_and_stack test fails only under GCC_ARM. I had spoken with @deepikabhavnani about updating the test case to increase the check range.

@mmahadevan108
Copy link
Contributor Author

I am working with @orenc17 @mikisch81 @maclobdell on the below failures:
mbed-os-features-storage-tests-blockdevice-general_block_device
mbed-os-features-storage-tests-kvstore-direct_access_devicekey_test
mbed-os-tests-mbed-crypto-sanity
mbed-os-tests-mbed_hal-spm
mbed-os-tests-psa-attestation
mbed-os-tests-psa-crypto_access_control
mbed-os-tests-psa-entropy_inject
mbed-os-tests-psa-its_ps

@mikisch81
Copy link
Contributor

The mbed-os-tests-mbed_platform-wait_ns test is failing.

[1551529466.18][CONN][RXD] >>> Running case #1: 'Test: wait_ns - compare with us_timer 1s'...
[1551529466.24][CONN][INF] found KV pair in stream: {{__testcase_start;Test: wait_ns - compare with us_timer 1s}}, queued...
mbedgt: :75::FAIL: Expected 1.200000 Was 0.602970
[1551529466.87][CONN][RXD] :75::FAIL: Expected 1.200000 Was 0.602970

I see the below comment in the wait_ns code inside mbed_wait_api_no_rtos.c file

// TODO - check M33

Can someone from ARM team take a look at the test failure and see if the mbed code needs to be updated?

@kjbracey-arm @deepikabhavnani

@deepikabhavnani
Copy link

deepikabhavnani commented Mar 2, 2019

The mbed-os-tests-mbedmicro-rtos-mbed-heap_and_stack test fails only under GCC_ARM.

Please update the test in this PR itself to check the stack pointer in entire stack range (0x400) instead 128 bytes

https://github.com/ARMmbed/mbed-os/blob/master/TESTS/mbedmicro-rtos-mbed/heap_and_stack/main.cpp#L207

@ciarmcom
Copy link
Member

ciarmcom commented Mar 2, 2019

@mmahadevan108, thank you for your changes.
@maclobdell @MarceloSalazar @ARMmbed/mbed-os-storage @ARMmbed/mbed-os-maintainers @ARMmbed/mbed-os-tools please review.

@mikisch81
Copy link
Contributor

@mmahadevan108
In order to simplify the building process, mainly for tests, we opened a PR to find the secure image during post-build of the non-secure target: #9894.

The usage of this can be seen here.

@mikisch81
Copy link
Contributor

@mmahadevan108 #9823 was merged so you can rebase.
You still need #9915, #9916 and #9894, hopefully they will be merged soon.

@mikisch81
Copy link
Contributor

@ARMmbed/mbed-os-maintainers this needs a 5.12.0-rc1 label

@NirSonnenschein
Copy link
Contributor

@mmahadevan108 , please take a look at the travis failures : https://travis-ci.org/ARMmbed/mbed-os/jobs/500777066

@mikisch81
Copy link
Contributor

@mmahadevan108 Also you need to rebase as a lot of fixes are already upstream.

@ghost ghost added the PM_ACCEPTED label Mar 4, 2019
mmahadevan108 and others added 17 commits March 8, 2019 07:28
Move the clock setup and peripheral reset to the init function

Signed-off-by: Mahesh Mahadevan <[email protected]>
Signed-off-by: Mahesh Mahadevan <[email protected]>
The flash driver for the LPC55S69 is different from
prior LPC family. Move the Flash HAL driver to SoC
specific folder

Signed-off-by: Mahesh Mahadevan <[email protected]>
Signed-off-by: Mahesh Mahadevan <[email protected]>
These are defined by mbed during compile

Signed-off-by: Mahesh Mahadevan <[email protected]>
Signed-off-by: Mahesh Mahadevan <[email protected]>
CTIMER 0 is used for the secure domain and CTIMER 1 is used for
the non-secure domain

Signed-off-by: Mahesh Mahadevan <[email protected]>
Signed-off-by: Mahesh Mahadevan <[email protected]>
Signed-off-by: Mahesh Mahadevan <[email protected]>
@mikisch81
Copy link
Contributor

A rebase is needed as there is conflict in the tdbstore mbed_lib.json

@mmahadevan108 mmahadevan108 force-pushed the Add_LPC55S69_TFM_mbed_master branch from 0e20f18 to 862961c Compare March 8, 2019 14:01
@adbridge
Copy link
Contributor

adbridge commented Mar 8, 2019

ci started

@mbed-ci
Copy link

mbed-ci commented Mar 8, 2019

Test run: SUCCESS

Summary: 13 of 13 test jobs passed
Build number : 2
Build artifacts

Copy link
Contributor

@0xc0170 0xc0170 left a comment

Choose a reason for hiding this comment

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

Can be fixed in new PR (next patch release) - new files should contain SPDX identifier - I've noticed some hal files missing in this PR.

@0xc0170 0xc0170 merged commit 0e532ba into ARMmbed:master Mar 8, 2019
@mmahadevan108
Copy link
Contributor Author

LPC55S69_GCC_ARM.txt
LPC55S69_IAR.txt
LPC55S69_ARM.txt

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.