Skip to content

Nuvoton: Fix NVSTORE test failed #6437

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 1 commit into from
Mar 23, 2018
Merged

Conversation

ccli8
Copy link
Contributor

@ccli8 ccli8 commented Mar 23, 2018

Description

This PR includes a bugfix for NVSTORE test (mbed-os-features-nvstore-tests-nvstore-functionality) failed.

Pull request type

[X] Fix
[ ] Refactor
[ ] New target
[ ] Feature
[ ] Breaking change

In Mbed OS, page size is program unit, which is different than FMC definition.
After fixing page size, we can pass NVSTORE test (mbed-os-features-nvstore-tests-nvstore-functionality).
@ccli8
Copy link
Contributor Author

ccli8 commented Mar 23, 2018

NUC472/ARM

mbedgt: test suite report:
+------------------------+--------------------+------------------------------------------------------+--------+--------------------+-------------+
| target                 | platform_name      | test suite                                           | result | elapsed_time (sec) | copy_method |
+------------------------+--------------------+------------------------------------------------------+--------+--------------------+-------------+
| NUMAKER_PFM_NUC472-ARM | NUMAKER_PFM_NUC472 | mbed-os-features-nvstore-tests-nvstore-functionality | OK     | 25.05              | default     |
| NUMAKER_PFM_NUC472-ARM | NUMAKER_PFM_NUC472 | mbed-os-tests-mbed_drivers-flashiap                  | OK     | 18.19              | default     |
| NUMAKER_PFM_NUC472-ARM | NUMAKER_PFM_NUC472 | mbed-os-tests-mbed_hal-flash                         | OK     | 18.83              | default     |
+------------------------+--------------------+------------------------------------------------------+--------+--------------------+-------------+
mbedgt: test suite results: 3 OK

NUC472/GCC_ARM

mbedgt: test suite report:
+----------------------------+--------------------+------------------------------------------------------+--------+--------------------+-------------+
| target                     | platform_name      | test suite                                           | result | elapsed_time (sec) | copy_method |
+----------------------------+--------------------+------------------------------------------------------+--------+--------------------+-------------+
| NUMAKER_PFM_NUC472-GCC_ARM | NUMAKER_PFM_NUC472 | mbed-os-features-nvstore-tests-nvstore-functionality | OK     | 25.47              | default     |
| NUMAKER_PFM_NUC472-GCC_ARM | NUMAKER_PFM_NUC472 | mbed-os-tests-mbed_drivers-flashiap                  | OK     | 18.25              | default     |
| NUMAKER_PFM_NUC472-GCC_ARM | NUMAKER_PFM_NUC472 | mbed-os-tests-mbed_hal-flash                         | OK     | 19.16              | default     |
+----------------------------+--------------------+------------------------------------------------------+--------+--------------------+-------------+
mbedgt: test suite results: 3 OK

NUC472/IAR

mbedgt: test suite report:
+------------------------+--------------------+------------------------------------------------------+--------+--------------------+-------------+
| target                 | platform_name      | test suite                                           | result | elapsed_time (sec) | copy_method |
+------------------------+--------------------+------------------------------------------------------+--------+--------------------+-------------+
| NUMAKER_PFM_NUC472-IAR | NUMAKER_PFM_NUC472 | mbed-os-features-nvstore-tests-nvstore-functionality | OK     | 24.84              | default     |
| NUMAKER_PFM_NUC472-IAR | NUMAKER_PFM_NUC472 | mbed-os-tests-mbed_drivers-flashiap                  | OK     | 17.8               | default     |
| NUMAKER_PFM_NUC472-IAR | NUMAKER_PFM_NUC472 | mbed-os-tests-mbed_hal-flash                         | OK     | 18.7               | default     |
+------------------------+--------------------+------------------------------------------------------+--------+--------------------+-------------+
mbedgt: test suite results: 3 OK

@ccli8
Copy link
Contributor Author

ccli8 commented Mar 23, 2018

M453/ARM

mbedgt: test suite report:
+----------------------+------------------+------------------------------------------------------+--------+--------------------+-------------+
| target               | platform_name    | test suite                                           | result | elapsed_time (sec) | copy_method |
+----------------------+------------------+------------------------------------------------------+--------+--------------------+-------------+
| NUMAKER_PFM_M453-ARM | NUMAKER_PFM_M453 | mbed-os-features-nvstore-tests-nvstore-functionality | OK     | 23.45              | default     |
| NUMAKER_PFM_M453-ARM | NUMAKER_PFM_M453 | mbed-os-tests-mbed_drivers-flashiap                  | OK     | 15.91              | default     |
| NUMAKER_PFM_M453-ARM | NUMAKER_PFM_M453 | mbed-os-tests-mbed_hal-flash                         | OK     | 16.66              | default     |
+----------------------+------------------+------------------------------------------------------+--------+--------------------+-------------+
mbedgt: test suite results: 3 OK

M453/GCC_ARM

mbedgt: test suite report:
+--------------------------+------------------+------------------------------------------------------+--------+--------------------+-------------+
| target                   | platform_name    | test suite                                           | result | elapsed_time (sec) | copy_method |
+--------------------------+------------------+------------------------------------------------------+--------+--------------------+-------------+
| NUMAKER_PFM_M453-GCC_ARM | NUMAKER_PFM_M453 | mbed-os-features-nvstore-tests-nvstore-functionality | OK     | 23.77              | default     |
| NUMAKER_PFM_M453-GCC_ARM | NUMAKER_PFM_M453 | mbed-os-tests-mbed_drivers-flashiap                  | OK     | 15.6               | default     |
| NUMAKER_PFM_M453-GCC_ARM | NUMAKER_PFM_M453 | mbed-os-tests-mbed_hal-flash                         | OK     | 16.82              | default     |
+--------------------------+------------------+------------------------------------------------------+--------+--------------------+-------------+
mbedgt: test suite results: 3 OK

M453/IAR

mbedgt: test suite report:
+----------------------+------------------+------------------------------------------------------+--------+--------------------+-------------+
| target               | platform_name    | test suite                                           | result | elapsed_time (sec) | copy_method |
+----------------------+------------------+------------------------------------------------------+--------+--------------------+-------------+
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | mbed-os-features-nvstore-tests-nvstore-functionality | OK     | 23.23              | default     |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | mbed-os-tests-mbed_drivers-flashiap                  | OK     | 15.1               | default     |
| NUMAKER_PFM_M453-IAR | NUMAKER_PFM_M453 | mbed-os-tests-mbed_hal-flash                         | OK     | 16.41              | default     |
+----------------------+------------------+------------------------------------------------------+--------+--------------------+-------------+
mbedgt: test suite results: 3 OK

@ccli8
Copy link
Contributor Author

ccli8 commented Mar 23, 2018

M487/ARM

mbedgt: test suite report:
+----------------------+------------------+------------------------------------------------------+--------+--------------------+-------------+
| target               | platform_name    | test suite                                           | result | elapsed_time (sec) | copy_method |
+----------------------+------------------+------------------------------------------------------+--------+--------------------+-------------+
| NUMAKER_PFM_M487-ARM | NUMAKER_PFM_M487 | mbed-os-features-nvstore-tests-nvstore-functionality | OK     | 35.29              | default     |
| NUMAKER_PFM_M487-ARM | NUMAKER_PFM_M487 | mbed-os-tests-mbed_drivers-flashiap                  | OK     | 24.45              | default     |
| NUMAKER_PFM_M487-ARM | NUMAKER_PFM_M487 | mbed-os-tests-mbed_hal-flash                         | OK     | 26.96              | default     |
+----------------------+------------------+------------------------------------------------------+--------+--------------------+-------------+
mbedgt: test suite results: 3 OK

M487/GCC_ARM

mbedgt: test suite report:
+--------------------------+------------------+------------------------------------------------------+--------+--------------------+-------------+
| target                   | platform_name    | test suite                                           | result | elapsed_time (sec) | copy_method |
+--------------------------+------------------+------------------------------------------------------+--------+--------------------+-------------+
| NUMAKER_PFM_M487-GCC_ARM | NUMAKER_PFM_M487 | mbed-os-features-nvstore-tests-nvstore-functionality | OK     | 35.6               | default     |
| NUMAKER_PFM_M487-GCC_ARM | NUMAKER_PFM_M487 | mbed-os-tests-mbed_drivers-flashiap                  | OK     | 25.02              | default     |
| NUMAKER_PFM_M487-GCC_ARM | NUMAKER_PFM_M487 | mbed-os-tests-mbed_hal-flash                         | OK     | 27.27              | default     |
+--------------------------+------------------+------------------------------------------------------+--------+--------------------+-------------+
mbedgt: test suite results: 3 OK

M487/IAR

mbedgt: test suite report:
+----------------------+------------------+------------------------------------------------------+--------+--------------------+-------------+
| target               | platform_name    | test suite                                           | result | elapsed_time (sec) | copy_method |
+----------------------+------------------+------------------------------------------------------+--------+--------------------+-------------+
| NUMAKER_PFM_M487-IAR | NUMAKER_PFM_M487 | mbed-os-features-nvstore-tests-nvstore-functionality | OK     | 34.88              | default     |
| NUMAKER_PFM_M487-IAR | NUMAKER_PFM_M487 | mbed-os-tests-mbed_drivers-flashiap                  | OK     | 24.88              | default     |
| NUMAKER_PFM_M487-IAR | NUMAKER_PFM_M487 | mbed-os-tests-mbed_hal-flash                         | OK     | 26.85              | default     |
+----------------------+------------------+------------------------------------------------------+--------+--------------------+-------------+
mbedgt: test suite results: 3 OK

@cmonr cmonr requested a review from davidsaada March 23, 2018 02:56
Copy link
Contributor

@cmonr cmonr left a comment

Choose a reason for hiding this comment

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

Not sure about this change. Does this mean that in the test, the page_size variable isn't being used to describe the page size of the flash, but sometrhing else?

What's a program unit?

@cmonr
Copy link
Contributor

cmonr commented Mar 23, 2018

@toyowata, I'm curious. Would you be able to test if this PR fixes the export issue in your PR (#6413) with the ARCH_PRO board and IAR?

@ccli8
Copy link
Contributor Author

ccli8 commented Mar 23, 2018

@cmonr @toyowata Per my understanding, page_size means program unit. Take NUMAKER_PFM_M487 as an example, its page_size is set to 4 in this fix, meaning program address/size must be 4byte-aligned.

@davidsaada
Copy link
Contributor

I'm not familiar with this hardware, but from the changes, it seems that page size is programmatically reduced from a large size (512B/2KB) to 4 bytes, which is great for any application trying to store anything on the flash like NVStore. This both allows a much larger granularity and reduces memory consumption when allocating a page buffer. Good work.

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 23, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Mar 23, 2018

Build : SUCCESS

Build number : 1539
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/6437/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Mar 23, 2018

@mbed-ci
Copy link

mbed-ci commented Mar 23, 2018

@cmonr cmonr merged commit cffa1c0 into ARMmbed:master Mar 23, 2018
@ccli8 ccli8 deleted the nuvoton_fix_flash branch March 26, 2018 01:05
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