Skip to content

Support NUMAKER_IOT_M263A #43

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

Closed
wants to merge 1 commit into from
Closed

Support NUMAKER_IOT_M263A #43

wants to merge 1 commit into from

Conversation

ccli8
Copy link
Contributor

@ccli8 ccli8 commented Oct 4, 2019

This PR is split of #25 and to support NUMAKER_IOT_M263A.

@MarceloSalazar

@anttiylitokola
Copy link
Contributor

Can one of the admins verify this patch?

1 similar comment
@anttiylitokola
Copy link
Contributor

Can one of the admins verify this patch?

@MarceloSalazar
Copy link

@ccli8 thanks for the PR.
Please upload logs of integration tests as commented.

@MarceloSalazar MarceloSalazar added new platform WIP Work in progress labels Oct 4, 2019
@ccli8
Copy link
Contributor Author

ccli8 commented Oct 4, 2019

Integration Test (ARMC6)

mbedgt: test suite report:
| target                  | platform_name     | test suite                              | result | elapsed_time (sec) | copy_method |
|-------------------------|-------------------|-----------------------------------------|--------|--------------------|-------------|
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | OK     | 58.72              | default     |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-threaded   | OK     | 41.27              | default     |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-single    | OK     | 120.08             | default     |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-threaded  | OK     | 84.01              | default     |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | OK     | 124.2              | default     |
mbedgt: test suite results: 5 OK
mbedgt: test case report:
| target                  | platform_name     | test suite                              | test case                                  | passed | failed | result | elapsed_time (sec) |
|-------------------------|-------------------|-----------------------------------------|--------------------------------------------|--------|--------|--------|--------------------|
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff     1            | 1      | 0      | OK     | 8.14               |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff     4            | 1      | 0      | OK     | 5.53               |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff    16            | 1      | 0      | OK     | 4.79               |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff    64            | 1      | 0      | OK     | 4.42               |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff   256            | 1      | 0      | OK     | 4.03               |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff  1024            | 1      | 0      | OK     | 4.49               |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff  4096            | 1      | 0      | OK     | 4.37               |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff 16384            | 1      | 0      | OK     | 4.61               |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS format                        | 1      | 0      | OK     | 0.03               |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-threaded   | FLASHIAP+LFS 2 files, buff 4b/256b         | 1      | 0      | OK     | 9.32               |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-threaded   | FLASHIAP+LFS 3 files, buff 256b/1kb/4kb    | 1      | 0      | OK     | 13.58              |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-threaded   | FLASHIAP+LFS format                        | 1      | 0      | OK     | 0.21               |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-single    | WiFi   128 buffer                          | 1      | 0      | OK     | 32.0               |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-single    | WiFi   256 buffer                          | 1      | 0      | OK     | 24.93              |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-single    | WiFi  1024 buffer                          | 1      | 0      | OK     | 18.11              |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-single    | WiFi  4096 buffer                          | 1      | 0      | OK     | 16.83              |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-single    | WiFi network setup                         | 1      | 0      | OK     | 10.01              |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-threaded  | WiFi 1 thread                              | 1      | 0      | OK     | 17.39              |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-threaded  | WiFi 2 threads                             | 1      | 0      | OK     | 37.43              |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-threaded  | WiFi network setup                         | 1      | 0      | OK     | 10.02              |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | FLASHIAP+LFS format                        | 1      | 0      | OK     | 0.03               |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | FLASHIAP+LFS+WiFi 1 thread, dl, file seq.  | 1      | 0      | OK     | 24.93              |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | FLASHIAP+LFS+WiFi 2 threads, dl, 1kb       | 1      | 0      | OK     | 37.6               |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | FLASHIAP+LFS+WiFi 3 threads, dl, 256b, 1kb | 1      | 0      | OK     | 29.45              |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | Test memory allocation of 10 K bytes       | 1      | 0      | OK     | 0.01               |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | Test memory allocation of 20 K bytes       | 1      | 0      | OK     | 0.0                |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | Test memory allocation of 40 K bytes       | 1      | 0      | OK     | 0.02               |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | Test memory allocation of 60 K bytes       | 1      | 0      | OK     | 0.0                |
| NUMAKER_IOT_M263A-ARMC6 | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | WiFi network setup                         | 1      | 0      | OK     | 14.02              |
mbedgt: test case results: 29 OK
mbedgt: completed in 431.68 sec

@ccli8
Copy link
Contributor Author

ccli8 commented Oct 4, 2019

Integration Test (GCC_ARM)

Note: integration-stress-net-fs/Test memory allocation of 40/60 K bytes are skipped due to OOM.

mbedgt: test suite report:
| target                    | platform_name     | test suite                              | result | elapsed_time (sec) | copy_method |
|---------------------------|-------------------|-----------------------------------------|--------|--------------------|-------------|
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | OK     | 56.06              | default     |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-threaded   | OK     | 40.47              | default     |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-single    | OK     | 122.82             | default     |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-threaded  | OK     | 92.0               | default     |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | OK     | 145.58             | default     |
mbedgt: test suite results: 5 OK
mbedgt: test case report:
| target                    | platform_name     | test suite                              | test case                                  | passed | failed | result | elapsed_time (sec) |
|---------------------------|-------------------|-----------------------------------------|--------------------------------------------|--------|--------|--------|--------------------|
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff     1            | 1      | 0      | OK     | 6.29               |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff     4            | 1      | 0      | OK     | 5.06               |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff    16            | 1      | 0      | OK     | 4.64               |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff    64            | 1      | 0      | OK     | 4.42               |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff   256            | 1      | 0      | OK     | 4.05               |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff  1024            | 1      | 0      | OK     | 4.58               |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff  4096            | 1      | 0      | OK     | 4.41               |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff 16384            | 1      | 0      | OK     | 4.59               |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS format                        | 1      | 0      | OK     | 0.05               |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-threaded   | FLASHIAP+LFS 2 files, buff 4b/256b         | 1      | 0      | OK     | 9.16               |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-threaded   | FLASHIAP+LFS 3 files, buff 256b/1kb/4kb    | 1      | 0      | OK     | 13.56              |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-threaded   | FLASHIAP+LFS format                        | 1      | 0      | OK     | 0.02               |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-single    | WiFi   128 buffer                          | 1      | 0      | OK     | 32.73              |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-single    | WiFi   256 buffer                          | 1      | 0      | OK     | 23.52              |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-single    | WiFi  1024 buffer                          | 1      | 0      | OK     | 17.22              |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-single    | WiFi  4096 buffer                          | 1      | 0      | OK     | 16.45              |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-single    | WiFi network setup                         | 1      | 0      | OK     | 14.01              |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-threaded  | WiFi 1 thread                              | 1      | 0      | OK     | 27.84              |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-threaded  | WiFi 2 threads                             | 1      | 0      | OK     | 34.2               |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-threaded  | WiFi network setup                         | 1      | 0      | OK     | 12.03              |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | FLASHIAP+LFS format                        | 1      | 0      | OK     | 0.03               |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | FLASHIAP+LFS+WiFi 1 thread, dl, file seq.  | 1      | 0      | OK     | 33.98              |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | FLASHIAP+LFS+WiFi 2 threads, dl, 1kb       | 1      | 0      | OK     | 39.16              |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | FLASHIAP+LFS+WiFi 3 threads, dl, 256b, 1kb | 1      | 0      | OK     | 26.52              |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | Test memory allocation of 10 K bytes       | 1      | 0      | OK     | 0.0                |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | Test memory allocation of 20 K bytes       | 1      | 0      | OK     | 0.02               |
| NUMAKER_IOT_M263A-GCC_ARM | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | WiFi network setup                         | 1      | 0      | OK     | 27.03              |
mbedgt: test case results: 27 OK
mbedgt: completed in 459.53 sec

@ccli8
Copy link
Contributor Author

ccli8 commented Oct 4, 2019

Integration Test (IAR)

Note: integration-stress-net-fs/Test memory allocation of 40/60 K bytes are skipped due to OOM.

mbedgt: test suite report:
| target                | platform_name     | test suite                              | result | elapsed_time (sec) | copy_method |
|-----------------------|-------------------|-----------------------------------------|--------|--------------------|-------------|
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | OK     | 58.39              | default     |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-threaded   | OK     | 41.96              | default     |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-single    | OK     | 127.06             | default     |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-threaded  | OK     | 87.33              | default     |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | OK     | 110.14             | default     |
mbedgt: test suite results: 5 OK
mbedgt: test case report:
| target                | platform_name     | test suite                              | test case                                  | passed | failed | result | elapsed_time (sec) |
|-----------------------|-------------------|-----------------------------------------|--------------------------------------------|--------|--------|--------|--------------------|
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff     1            | 1      | 0      | OK     | 8.43               |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff     4            | 1      | 0      | OK     | 5.64               |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff    16            | 1      | 0      | OK     | 4.86               |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff    64            | 1      | 0      | OK     | 4.48               |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff   256            | 1      | 0      | OK     | 4.06               |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff  1024            | 1      | 0      | OK     | 4.62               |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff  4096            | 1      | 0      | OK     | 4.51               |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS 1 file, buff 16384            | 1      | 0      | OK     | 4.65               |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-single     | FLASHIAP+LFS format                        | 1      | 0      | OK     | 0.05               |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-threaded   | FLASHIAP+LFS 2 files, buff 4b/256b         | 1      | 0      | OK     | 9.75               |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-threaded   | FLASHIAP+LFS 3 files, buff 256b/1kb/4kb    | 1      | 0      | OK     | 14.32              |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-fs-threaded   | FLASHIAP+LFS format                        | 1      | 0      | OK     | 0.03               |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-single    | WiFi   128 buffer                          | 1      | 0      | OK     | 34.56              |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-single    | WiFi   256 buffer                          | 1      | 0      | OK     | 24.73              |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-single    | WiFi  1024 buffer                          | 1      | 0      | OK     | 18.77              |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-single    | WiFi  4096 buffer                          | 1      | 0      | OK     | 17.84              |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-single    | WiFi network setup                         | 1      | 0      | OK     | 14.02              |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-threaded  | WiFi 1 thread                              | 1      | 0      | OK     | 20.25              |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-threaded  | WiFi 2 threads                             | 1      | 0      | OK     | 35.47              |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-net-threaded  | WiFi network setup                         | 1      | 0      | OK     | 14.03              |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | FLASHIAP+LFS format                        | 1      | 0      | OK     | 0.03               |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | FLASHIAP+LFS+WiFi 1 thread, dl, file seq.  | 1      | 0      | OK     | 25.03              |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | FLASHIAP+LFS+WiFi 2 threads, dl, 1kb       | 1      | 0      | OK     | 26.7               |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | FLASHIAP+LFS+WiFi 3 threads, dl, 256b, 1kb | 1      | 0      | OK     | 26.81              |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | Test memory allocation of 10 K bytes       | 1      | 0      | OK     | 0.0                |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | Test memory allocation of 20 K bytes       | 1      | 0      | OK     | 0.02               |
| NUMAKER_IOT_M263A-IAR | NUMAKER_IOT_M263A | mbed-os-tests-integration-stress-net-fs | WiFi network setup                         | 1      | 0      | OK     | 14.01              |
mbedgt: test case results: 27 OK
mbedgt: completed in 427.35 sec

@ccli8 ccli8 mentioned this pull request Oct 4, 2019
@MarceloSalazar MarceloSalazar removed the WIP Work in progress label Oct 4, 2019
@MarceloSalazar MarceloSalazar self-requested a review October 4, 2019 15:54
Copy link

@MarceloSalazar MarceloSalazar left a comment

Choose a reason for hiding this comment

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

@ccli8 thanks for the uploading the logs.
I confirm this platform works well and connects to Pelion when using WiFi and SD card.

@teetak01 can you please review?
(I'll ship a few platforms during the upcoming weeks).

"NUMAKER_IOT_M263A": {
"target.network-default-interface-type" : "WIFI",
"target.bootloader_img" : "bootloader/mbed-bootloader-m263_iot-block_device-kvstore-v4.1.0.bin",
"bootloader-size" : "(64*1024)",
Copy link
Contributor

@teetak01 teetak01 Oct 7, 2019

Choose a reason for hiding this comment

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

Any reason the bootloader is this large? I presume this has to align to quite large sector sizes?

Copy link
Contributor Author

@ccli8 ccli8 Oct 7, 2019

Choose a reason for hiding this comment

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

Not related to sector size. 32KiB is too just fit. Reserve space for normal build or even debug build.

Copy link
Contributor

@teetak01 teetak01 left a comment

Choose a reason for hiding this comment

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

Looks ok. The KV external size is much larger than it ever needs to be. 128 KiB should be more than enough for certificates.

@ccli8
Copy link
Contributor Author

ccli8 commented Oct 7, 2019

The KV external size is much larger than it ever needs to be. 128 KiB should be more than enough for certificates.

Follow other target like NUCLEO_F411RE for configuring external storage size. Besides, it could be used for user application.

@anttiylitokola
Copy link
Contributor

build-only

@anttiylitokola
Copy link
Contributor

@ccli8
Copy link
Contributor Author

ccli8 commented Oct 28, 2019

Make modifications:

  1. Do rebase
  2. Update COMPONENT_NUSD.lib to support change of M2351 base target name to match platform name enrolled in mbed-os-tools platform database.

Based on mbed-os-pelion-example master/mbed-bootloader 4.1.0/mbed-cloud-client 4.0.0,
support Nuvoton targets:
1.  Support Nuvoton targets:
    -   NUMAKER_IOT_M263A
2.  Change storage to NUSD (SD card in SDIO bus mode) from SD (SD card SPI bus mode)
    (1) Add COMPONENT_NUSD.lib.
    (2) Add component NUSD (target.components_add).
    (3) Change default BlockDevice to NUSD:
        Override BlockDevice::get_default_instance (nusd.provide-default-blockdevice).
        Required since mbed-cloud-client 2.1.0 (arm_uc_blockdevice_ext) or in:
        mbed-bootloader/modules/storage/pal-blockdevice/source/arm_uc_pal_blockdevice_mbed.cpp
    (4) Enable kvstore with blockdevice type being "other".
        i)  Override get_other_blockdevice() (nusd.provide-kvstore-other-blockdevice).
        ii) Configure storage type to "FILESYSTEM".
        iii)Configure file system type to "LITTLE".
        vi) Configure block device type to "other".
        v)  Configure external size to 64MiB, which cannot overlap with update-client.
            storage-address/update-client.storage-size.
3.  Change back UARTSerial tx/rx buffer size from 1024/1024 to 256/256. This can reduce
    memory footprint by (1024 - 256) * 2 = 1.5KiB. Because this configuration influences
    both ESP8266 and default console (platfrom/mbed_retarget.cpp), memory reduction can
    achieve 1.5KiB x 2 = 3KiB.
4.  Enlarge ESP8266 'send tcp data' timeout on Nuvoton targets
    Pelion connection has some failure rate with this. Enlarging ESP8266_SEND_TIMEOUT
    can just relieve the issue. A ticket has raised to address it:
    ARMmbed/mbed-os#11544
5.  Requirements for mbed-os version:
    -   mbed-os 5.13.0 (or afterwards) to support kvstore with block device type being "other"
    -   mbed-os 5.13.1 (or afterwards) to fix 'undefined pal_plat_osEntropyInject(...)' error
    -   mbed-os 5.14.0 (or afterwards) to support NUMAKER_IOT_M263A
Copy link
Contributor

@teetak01 teetak01 left a comment

Choose a reason for hiding this comment

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

Could be rebased and added to README

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.

4 participants