The Arm Pelion Device Management code to be used for https://cloud.mbed.com/quick-start

DEPRECATED

This example application is not maintained and not recommended. It uses an old version of Mbed OS, Pelion DM, and Arm toolchain. It doesn't work with Mbed Studio.

Please use: https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-pelion/

Committer:
Andrew Chong
Date:
Fri Dec 14 18:04:23 2018 +0900
Revision:
0:fdc18ffe96a4
Child:
1:e0ba512426a7
The first version to enable Pelion with SDT.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Andrew Chong 0:fdc18ffe96a4 1 {
Andrew Chong 0:fdc18ffe96a4 2 "macros": [
Andrew Chong 0:fdc18ffe96a4 3 "ARM_UC_USE_PAL_BLOCKDEVICE=1",
Andrew Chong 0:fdc18ffe96a4 4 "MBED_CLOUD_CLIENT_UPDATE_STORAGE=ARM_UCP_FLASHIAP_BLOCKDEVICE",
Andrew Chong 0:fdc18ffe96a4 5 "MBED_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\"",
Andrew Chong 0:fdc18ffe96a4 6 "MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\"",
Andrew Chong 0:fdc18ffe96a4 7 "PAL_USER_DEFINED_CONFIGURATION=\"sotp_fs_config_MbedOS.h\"",
Andrew Chong 0:fdc18ffe96a4 8 "PAL_FS_MOUNT_POINT_PRIMARY=\"/fs\"",
Andrew Chong 0:fdc18ffe96a4 9 "MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\"",
Andrew Chong 0:fdc18ffe96a4 10 "PAL_DTLS_PEER_MIN_TIMEOUT=5000"
Andrew Chong 0:fdc18ffe96a4 11 ],
Andrew Chong 0:fdc18ffe96a4 12 "target_overrides": {
Andrew Chong 0:fdc18ffe96a4 13 "*": {
Andrew Chong 0:fdc18ffe96a4 14 "platform.stdio-baud-rate" : 115200,
Andrew Chong 0:fdc18ffe96a4 15 "platform.stdio-convert-newlines" : true,
Andrew Chong 0:fdc18ffe96a4 16 "update-client.storage-address" : "(1024*1024*64)",
Andrew Chong 0:fdc18ffe96a4 17 "update-client.storage-size" : "(1024*1024*2)",
Andrew Chong 0:fdc18ffe96a4 18 "update-client.storage-locations" : "1",
Andrew Chong 0:fdc18ffe96a4 19 "mbed-trace.enable" : null,
Andrew Chong 0:fdc18ffe96a4 20 "nsapi.default-wifi-security" : "WPA_WPA2",
Andrew Chong 0:fdc18ffe96a4 21 "nsapi.default-wifi-ssid" : "\"SSID\"",
Andrew Chong 0:fdc18ffe96a4 22 "nsapi.default-wifi-password" : "\"PASSWORD\""
Andrew Chong 0:fdc18ffe96a4 23 },
Andrew Chong 0:fdc18ffe96a4 24 "SDT64B": {
Andrew Chong 0:fdc18ffe96a4 25 "target.features_add" : ["BOOTLOADER"],
Andrew Chong 0:fdc18ffe96a4 26 "target.components_add" : ["SD"],
Andrew Chong 0:fdc18ffe96a4 27 "flash-start-address" : "0x0",
Andrew Chong 0:fdc18ffe96a4 28 "flash-size" : "(2048*1024)",
Andrew Chong 0:fdc18ffe96a4 29 "sotp-section-1-address" : "(32*1024)",
Andrew Chong 0:fdc18ffe96a4 30 "sotp-section-1-size" : "(4*1024)",
Andrew Chong 0:fdc18ffe96a4 31 "sotp-section-2-address" : "(36*1024)",
Andrew Chong 0:fdc18ffe96a4 32 "sotp-section-2-size" : "(4*1024)",
Andrew Chong 0:fdc18ffe96a4 33 "sotp-num-sections" : 2,
Andrew Chong 0:fdc18ffe96a4 34 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 40*1024)",
Andrew Chong 0:fdc18ffe96a4 35 "sd.SPI_MOSI" : "PTB16",
Andrew Chong 0:fdc18ffe96a4 36 "sd.SPI_MISO" : "PTB17",
Andrew Chong 0:fdc18ffe96a4 37 "sd.SPI_CLK" : "PTB11",
Andrew Chong 0:fdc18ffe96a4 38 "sd.SPI_CS" : "PTB10"
Andrew Chong 0:fdc18ffe96a4 39 }
Andrew Chong 0:fdc18ffe96a4 40 },
Andrew Chong 0:fdc18ffe96a4 41 "config": {
Andrew Chong 0:fdc18ffe96a4 42 "format-storage-layer-on-error": {
Andrew Chong 0:fdc18ffe96a4 43 "help": "Whether to format the storage layer when it cannot be read - always disable for production devices!",
Andrew Chong 0:fdc18ffe96a4 44 "value": 1
Andrew Chong 0:fdc18ffe96a4 45 },
Andrew Chong 0:fdc18ffe96a4 46 "developer-mode": {
Andrew Chong 0:fdc18ffe96a4 47 "help": "Enable Developer mode to skip Factory enrollment",
Andrew Chong 0:fdc18ffe96a4 48 "value": 1
Andrew Chong 0:fdc18ffe96a4 49 },
Andrew Chong 0:fdc18ffe96a4 50 "main-stack-size": {
Andrew Chong 0:fdc18ffe96a4 51 "value": 6000
Andrew Chong 0:fdc18ffe96a4 52 },
Andrew Chong 0:fdc18ffe96a4 53 "flash-start-address": {
Andrew Chong 0:fdc18ffe96a4 54 "help": "Start address of internal flash. Only used in this config to help the definition of other macros.",
Andrew Chong 0:fdc18ffe96a4 55 "value": null
Andrew Chong 0:fdc18ffe96a4 56 },
Andrew Chong 0:fdc18ffe96a4 57 "flash-size": {
Andrew Chong 0:fdc18ffe96a4 58 "help": "Total size of internal flash. Only used in this config to help the definition of other macros.",
Andrew Chong 0:fdc18ffe96a4 59 "value": null
Andrew Chong 0:fdc18ffe96a4 60 },
Andrew Chong 0:fdc18ffe96a4 61 "sotp-section-1-address": {
Andrew Chong 0:fdc18ffe96a4 62 "help": "Flash sector address for SOTP sector 1",
Andrew Chong 0:fdc18ffe96a4 63 "macro_name": "PAL_INTERNAL_FLASH_SECTION_1_ADDRESS",
Andrew Chong 0:fdc18ffe96a4 64 "value": null
Andrew Chong 0:fdc18ffe96a4 65 },
Andrew Chong 0:fdc18ffe96a4 66 "sotp-section-1-size": {
Andrew Chong 0:fdc18ffe96a4 67 "help": "Flash sector size for SOTP sector 1",
Andrew Chong 0:fdc18ffe96a4 68 "macro_name": "PAL_INTERNAL_FLASH_SECTION_1_SIZE",
Andrew Chong 0:fdc18ffe96a4 69 "value": null
Andrew Chong 0:fdc18ffe96a4 70 },
Andrew Chong 0:fdc18ffe96a4 71 "sotp-section-2-address": {
Andrew Chong 0:fdc18ffe96a4 72 "help": "Flash sector address for SOTP sector 2",
Andrew Chong 0:fdc18ffe96a4 73 "macro_name": "PAL_INTERNAL_FLASH_SECTION_2_ADDRESS",
Andrew Chong 0:fdc18ffe96a4 74 "value": null
Andrew Chong 0:fdc18ffe96a4 75 },
Andrew Chong 0:fdc18ffe96a4 76 "sotp-section-2-size": {
Andrew Chong 0:fdc18ffe96a4 77 "help": "Flash sector size for SOTP sector 2",
Andrew Chong 0:fdc18ffe96a4 78 "macro_name": "PAL_INTERNAL_FLASH_SECTION_2_SIZE",
Andrew Chong 0:fdc18ffe96a4 79 "value": null
Andrew Chong 0:fdc18ffe96a4 80 },
Andrew Chong 0:fdc18ffe96a4 81 "sotp-num-sections": {
Andrew Chong 0:fdc18ffe96a4 82 "help": "Number of SOTP sections",
Andrew Chong 0:fdc18ffe96a4 83 "macro_name": "PAL_INT_FLASH_NUM_SECTIONS",
Andrew Chong 0:fdc18ffe96a4 84 "value": null
Andrew Chong 0:fdc18ffe96a4 85 }
Andrew Chong 0:fdc18ffe96a4 86 }
Andrew Chong 0:fdc18ffe96a4 87 }