NuMaker Pelion Device Management example

Fork of mbed-os-example-pelion by cc li

Committer:
ccli8
Date:
Mon May 11 17:46:34 2020 +0800
Revision:
8:b679612300f8
Update to mbed-os 5.15.1 and related moifications

1. Update to mbed-os 5.15.1. No update to further version due to incorrect check with non-default configuration of FLASHIAP.
https://github.com/ARMmbed/mbed-os/pull/12808
2. M2351 is not supported on Mbed Online Compiler. Use Mbed CLI instead. Besides, its support is limited to specific version (7bfbb8e70559), not the latest version.
3. Add README.md

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ccli8 8:b679612300f8 1 # Pelion Device Management Client example for Mbed OS
ccli8 8:b679612300f8 2
ccli8 8:b679612300f8 3 This is clone of https://github.com/ARMmbed/mbed-os-example-pelion and focuses on Nuvoton targets.
ccli8 8:b679612300f8 4
ccli8 8:b679612300f8 5 ## Support targets
ccli8 8:b679612300f8 6
ccli8 8:b679612300f8 7 Platform | Connectivity | Storage for credentials and FW candidate | Notes
ccli8 8:b679612300f8 8 --------------------------------|-------------------|-------------------------------------------|---------------
ccli8 8:b679612300f8 9 Nuvoton NUMAKER_PFM_NUC472 | Ethernet | NU SD card |
ccli8 8:b679612300f8 10 Nuvoton NUMAKER_PFM_M487 | Ethernet | NU SD card |
ccli8 8:b679612300f8 11 Nuvoton NUMAKER_IOT_M487 | Wi-Fi ESP8266 | NU SD card | |
ccli8 8:b679612300f8 12 Nuvoton NUMAKER_IOT_M263A | Wi-Fi ESP8266 | NU SD card |
ccli8 8:b679612300f8 13 Nuvoton NU_PFM_M2351_NPSA_NS | Wi-Fi ESP8266 | NU SD card |
ccli8 8:b679612300f8 14
ccli8 8:b679612300f8 15 **Note1**: M2351 is not supported on Mbed Online Compiler. Use Mbed CLI instead. Besides, its support is limited to specific version (7bfbb8e70559), not the latest version.
ccli8 8:b679612300f8 16 This is because Mbed OS [doesn't support Armv8M secure code build since 6.0.0-beta-1](https://github.com/ARMmbed/mbed-os/pull/12737).
ccli8 8:b679612300f8 17
ccli8 8:b679612300f8 18 ## Known issues
ccli8 8:b679612300f8 19
ccli8 8:b679612300f8 20 - Meet error with `fcc_init() failed with 1`
ccli8 8:b679612300f8 21
ccli8 8:b679612300f8 22 ```
ccli8 8:b679612300f8 23 The device has not provisioned yet. Try to provision it...
ccli8 8:b679612300f8 24 Provision for development...
ccli8 8:b679612300f8 25 Reset kvstore...
ccli8 8:b679612300f8 26 Reset kvstore...OK
ccli8 8:b679612300f8 27 Provision for development...OK
ccli8 8:b679612300f8 28 Application ready
ccli8 8:b679612300f8 29 Connect to network
ccli8 8:b679612300f8 30 Network initialized, connected with IP 192.168.8.101
ccli8 8:b679612300f8 31
ccli8 8:b679612300f8 32 Start developer flow
ccli8 8:b679612300f8 33 fcc_init() failed with 1
ccli8 8:b679612300f8 34 ```
ccli8 8:b679612300f8 35
ccli8 8:b679612300f8 36 When the error happens, it is possibly caused by [incorrect check with non-default configuration of FLASHIAP](https://github.com/ARMmbed/mbed-os/pull/12808).
ccli8 8:b679612300f8 37 Mbed OS 5.15.2, 5.15.3, 6.0.0 alpha, and 6.0.0 beta all suffer from this.
ccli8 8:b679612300f8 38 Use Mbed OS 5.15.1 instead to avoid this error.