PelionIoT / pelion-ready-example

Pelion Device Ready example - deprecated
https://github.com/ARMmbed/pelion-ready-example
Apache License 2.0
2 stars 18 forks source link

support production mode #44

Closed micgur01 closed 5 years ago

micgur01 commented 5 years ago
  1. Removed some duplicates definition , same at mbed_lib.json (simple-mbed-cloud-client)
  2. FCC is using partition_mode, we have to use it here in order to support production mode
  3. FCC for NUCLEO_F429ZI is using this range, have to be aligned

        "client_app.sotp-section-1-address"     : "(0x08000000+32*1024)",
        "client_app.sotp-section-1-size"        : "(16*1024)",
        "client_app.sotp-section-2-address"     : "(0x08000000+48*1024)",
        "client_app.sotp-section-2-size"        : "(16*1024)", 
micgur01 commented 5 years ago

have to build bin file, hex file cannot burn to device using copy for NUCLEO_F429ZI sotp-section has to be moved after the application, it also because we don’t use STM tool added new json file mbed_app_test.json
Test compilation and run for STM target ( NUCLEO_F429ZI )should include --app-config mbed_app_test.json.

K64F tests can be run using mbed_app.json

Here is the tests results ----+--------------------+ | NUCLEO_F429ZI-GCC_ARM | NUCLEO_F429ZI | simple-mbed-cloud-client-tests-dev_mgmt-connect | Connect to Network | 1 | 0 | OK | 4.56 | | NUCLEO_F429ZI-GCC_ARM | NUCLEO_F429ZI | simple-mbed-cloud-client-tests-dev_mgmt-connect | Consistent Identity | 1 | 0 | OK | 2.11 | | NUCLEO_F429ZI-GCC_ARM | NUCLEO_F429ZI | simple-mbed-cloud-client-tests-dev_mgmt-connect | Initialize Storage | 1 | 0 | OK | 0.05 | | NUCLEO_F429ZI-GCC_ARM | NUCLEO_F429ZI | simple-mbed-cloud-client-tests-dev_mgmt-connect | LwM2M GET Test | 1 | 0 | OK | 0.99 | | NUCLEO_F429ZI-GCC_ARM | NUCLEO_F429ZI | simple-mbed-cloud-client-tests-dev_mgmt-connect | LwM2M POST Test | 1 | 0 | OK | 0.55 | | NUCLEO_F429ZI-GCC_ARM | NUCLEO_F429ZI | simple-mbed-cloud-client-tests-dev_mgmt-connect | LwM2M PUT Test | 1 | 0 | OK | 0.8 | | NUCLEO_F429ZI-GCC_ARM | NUCLEO_F429ZI | simple-mbed-cloud-client-tests-dev_mgmt-connect | LwM2M SET Test | 1 | 0 | OK | 0.44 | | NUCLEO_F429ZI-GCC_ARM | NUCLEO_F429ZI | simple-mbed-cloud-client-tests-dev_mgmt-connect | Pelion DM Bootstrap & Reg. | 1 | 0 | OK | 13.69 | | NUCLEO_F429ZI-GCC_ARM | NUCLEO_F429ZI | simple-mbed-cloud-client-tests-dev_mgmt-connect | Pelion DM Directory | 1 | 0 | OK | 6.25 | | NUCLEO_F429ZI-GCC_ARM | NUCLEO_F429ZI | simple-mbed-cloud-client-tests-dev_mgmt-connect | Pelion DM Re-register | 1 | 0 | OK | 4.7 | | NUCLEO_F429ZI-GCC_ARM | NUCLEO_F429ZI | simple-mbed-cloud-client-tests-dev_mgmt-connect | Simple PDMC Initialization | 1 | 0 | OK | 17.72 | +-----------------------+---------------+-------------------------------------------------+----------------------------+--------+--------+--------+--------------------+ mbedgt: test case results: 11 OK mbedgt: completed in 161.40 sec

MarceloSalazar commented 5 years ago

@micgur01 I propose we close this and continue the conversation in https://github.com/ARMmbed/simple-mbed-cloud-client-template-restricted/pull/45, which contains key changes you're introducing.