Skip to content

[NuMaker] Add PFM-M453 and Migrate PFM-NUC472 Crypto #2861

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 37 commits into from
Oct 12, 2016

Conversation

cyliangtw
Copy link
Contributor

Description

  1. To add NuMaker-PFM-M453 board, we rebase the up-to-date master branch and passed green-tea test @armcc, GCC & IAR tool chain.
  2. To migrate NuMaker-PFM-NUC472 crypto HW acceleration.

Please help to review this PR.

About NuMaker-PFM-M453 greetea test report was attached:
mbed-greentea_test_report.txt

@bridadan
Copy link
Contributor

@cyliangtw Thanks for the PR and the test results! Do you have any test result for the IAR toolchain?

@cyliangtw
Copy link
Contributor Author

Both of NUMAKER_PFM_M453 & NUMAKER_PFM_NUC472 don't support current uvisor feature.
Please ignore the failure of uvisor Build & Test.

@cyliangtw
Copy link
Contributor Author

@bridadan , the test result for IAR tool chain as below:


+----------------------+------------------+------------------------------------------------------------------------------+--------+--------------------+-------------+
| target               | platform_name    | test suite                                                                   | result | elapsed_time (sec) | copy_method |
+----------------------+------------------+------------------------------------------------------------------------------+--------+--------------------+-------------+
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | features-frameworks-utest-tests-unit_tests-basic_test                        | OK     | 11.47              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | features-frameworks-utest-tests-unit_tests-basic_test_default                | OK     | 11.47              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | features-frameworks-utest-tests-unit_tests-case_async_validate               | OK     | 13.12              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | features-frameworks-utest-tests-unit_tests-case_control_async                | OK     | 19.05              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | features-frameworks-utest-tests-unit_tests-case_control_repeat               | OK     | 13.43              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | features-frameworks-utest-tests-unit_tests-case_selection                    | OK     | 11.37              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | features-frameworks-utest-tests-unit_tests-case_setup_failure                | OK     | 11.94              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | features-frameworks-utest-tests-unit_tests-case_teardown_failure             | OK     | 12.01              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | features-frameworks-utest-tests-unit_tests-control_type                      | OK     | 12.23              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | features-frameworks-utest-tests-unit_tests-minimal_async_scheduler           | OK     | 12.21              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | features-frameworks-utest-tests-unit_tests-minimal_scheduler                 | OK     | 12.97              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | features-frameworks-utest-tests-unit_tests-test_assertion_failure_test_setup | OK     | 11.15              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | features-frameworks-utest-tests-unit_tests-test_setup_case_selection_failure | OK     | 11.3               | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | features-frameworks-utest-tests-unit_tests-test_setup_failure                | OK     | 11.68              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | rtos-rtx-target_cortex_m-tests-memory-heap_and_stack                         | OK     | 10.61              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-integration-basic                                                      | OK     | 10.46              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbed_drivers-c_strings                                                 | OK     | 13.22              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbed_drivers-dev_null                                                  | OK     | 12.89              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbed_drivers-echo                                                      | OK     | 23.4               | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbed_drivers-generic_tests                                             | OK     | 11.76              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbed_drivers-lp_timeout                                                | OK     | 20.45              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbed_drivers-race_test                                                 | OK     | 12.55              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbed_drivers-rtc                                                       | OK     | 21.51              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbed_drivers-stl_features                                              | OK     | 11.98              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbed_drivers-ticker                                                    | OK     | 44.56              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbed_drivers-timeout                                                   | OK     | 22.09              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbed_drivers-wait_us                                                   | OK     | 22.0               | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbed_functional-callback                                               | OK     | 13.0               | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbed_functional-callback_big                                           | OK     | 13.01              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbed_functional-callback_small                                         | OK     | 12.93              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbed_functional-functionpointer                                        | OK     | 11.53              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbed_hal-lp_ticker                                                     | OK     | 20.19              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbedmicro-mbed-attributes                                              | OK     | 13.18              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbedmicro-mbed-call_before_main                                        | OK     | 10.58              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbedmicro-mbed-cpp                                                     | OK     | 10.77              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbedmicro-mbed-div                                                     | OK     | 10.73              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbedmicro-rtos-mbed-basic                                              | OK     | 21.57              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbedmicro-rtos-mbed-isr                                                | OK     | 15.76              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbedmicro-rtos-mbed-mail                                               | OK     | 12.18              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbedmicro-rtos-mbed-malloc                                             | OK     | 25.55              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbedmicro-rtos-mbed-mutex                                              | OK     | 20.85              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbedmicro-rtos-mbed-queue                                              | OK     | 12.26              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbedmicro-rtos-mbed-semaphore                                          | OK     | 17.97              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbedmicro-rtos-mbed-signals                                            | OK     | 15.81              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbedmicro-rtos-mbed-threads                                            | OK     | 16.83              | shell       |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | tests-mbedmicro-rtos-mbed-timer                                              | OK     | 21.51              | shell       |
+----------------------+------------------+------------------------------------------------------------------------------+--------+--------------------+-------------+
mbedgt: test suite results: 46 OK

@bridadan
Copy link
Contributor

@cyliangtw Thanks a lot for the test results! They look really good! 😄

/morph test

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 1012

All builds and test passed!

@screamerbg
Copy link
Contributor

@cyliangtw This is great! Thanks

@sg-
Copy link
Contributor

sg- commented Oct 7, 2016

@cyliangtw last directory change to make CMSIS updates easier. Can you resolve conflict so we can test?

@cyliangtw
Copy link
Contributor Author

@sg- we are in comparing the restructured folder relative to our hal code . Hopefully, we will rebase again to resolve conflict by next Monday.

ccli8 and others added 21 commits October 11, 2016 10:55
Locate *lwip_* in XRAM to fix IRAM OOM
1. Fix clone SHA context error. Convert SHA H/W context to SHA S/W context due to just one instance of SHA H/W.
2. Fix partial update error.
Error occurs as newly scheduled alarm is behind now due to signed/unsigned comparison pitfall:
-1 < 1u ==> 0 or 1
The original fix cannot handle both wrap-around and scheduled alarm behind now well.
Leave wrap-around as known issue.
ccli8 and others added 16 commits October 11, 2016 10:55
Some application requires GPIO IRQ to be low latency. To complement it, open up GPIO IRQ debounce configuration through mbed_lib.json.
1. Fix pin definition error regarding SD.
2. Fix pin definition error regarding I2C.
3. Fix pin definition error regarding SPI.
4. Add pinmap for SD.
1. Move USBHALHost_M451.cpp and USBHALHost_NUC472.cpp.
2. Move TARGET_M451/mbed_lib.json.
3. Move TARGET_NUC472/crypto.
4. Move TARGET_NUC472/mbed_lib.json.
1. Move M451Series.h to device.
2. Move StdDriver to device.
3. Move TOOLCHAIN_* to device.
4. Move cmsis*, startup_M451Series.c, and system_M451Series.c/h to device.
@cyliangtw
Copy link
Contributor Author

@sg- Finished the rebase to resolve conflict on last directory change.
Eric sent 5 pcs NuMaker_PFM_M453 to UK and US each yesterday.
The difference between NuMaker_PFM_M453 and Numbed_M453 board is the ICE firmware, to reply different device ID NUMAKER_PFM_M453 = 1303, Numbed_M453=1301 in mbed_lstools/lstools_base.py .

@sg- sg- added needs: CI and removed needs: work labels Oct 11, 2016
@sg-
Copy link
Contributor

sg- commented Oct 11, 2016

LGTM 👍

/morph test

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 0

All builds and test passed!

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.

6 participants