Add support for Connect and FW Update

Fork of example-Ethernet-mbed-Cloud-connect by ST

Committer:
MarceloSalazar
Date:
Mon Oct 15 01:13:24 2018 +0100
Revision:
14:13ea72e8475c
Parent:
13:28cc8f31f05b
Add support for FW Update

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MarceloSalazar 14:13ea72e8475c 1 {
MarceloSalazar 14:13ea72e8475c 2 "macros": [
MarceloSalazar 14:13ea72e8475c 3 "MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\"",
MarceloSalazar 14:13ea72e8475c 4 "PAL_USER_DEFINED_CONFIGURATION=\"sotp_fs_config_MbedOS.h\"",
MarceloSalazar 14:13ea72e8475c 5 "MBED_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\"",
MarceloSalazar 14:13ea72e8475c 6 "MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\"",
MarceloSalazar 14:13ea72e8475c 7 "PAL_DTLS_PEER_MIN_TIMEOUT=5000",
MarceloSalazar 14:13ea72e8475c 8 "MBED_CONF_APP_MAIN_STACK_SIZE=7000",
MarceloSalazar 14:13ea72e8475c 9 "ARM_UC_USE_PAL_BLOCKDEVICE=1",
MarceloSalazar 14:13ea72e8475c 10 "MBED_CLOUD_CLIENT_UPDATE_STORAGE=ARM_UCP_FLASHIAP_BLOCKDEVICE"
MarceloSalazar 14:13ea72e8475c 11 ],
MarceloSalazar 14:13ea72e8475c 12 "target_overrides": {
MarceloSalazar 14:13ea72e8475c 13 "*": {
MarceloSalazar 14:13ea72e8475c 14 "platform.stdio-baud-rate" : 115200,
MarceloSalazar 14:13ea72e8475c 15 "platform.stdio-convert-newlines" : true,
MarceloSalazar 14:13ea72e8475c 16 "update-client.storage-address" : "(1024*1024*64)",
MarceloSalazar 14:13ea72e8475c 17 "update-client.storage-size" : "(1024*1024*2)",
MarceloSalazar 14:13ea72e8475c 18 "update-client.storage-locations" : "1",
MarceloSalazar 14:13ea72e8475c 19 "mbed-trace.enable": null,
MarceloSalazar 14:13ea72e8475c 20 "nsapi.default-wifi-security" : "WPA_WPA2",
MarceloSalazar 14:13ea72e8475c 21 "nsapi.default-wifi-ssid" : "\"SSID\"",
MarceloSalazar 14:13ea72e8475c 22 "nsapi.default-wifi-password" : "\"Password\""
MarceloSalazar 14:13ea72e8475c 23 },
MarceloSalazar 14:13ea72e8475c 24 "NUCLEO_F429ZI": {
MarceloSalazar 14:13ea72e8475c 25 "target.features_add" : ["BOOTLOADER"],
MarceloSalazar 14:13ea72e8475c 26 "target.components_add" : ["SD"],
MarceloSalazar 14:13ea72e8475c 27 "target.bootloader_img" : "bootloader/mbed-bootloader-F429ZI.bin",
MarceloSalazar 14:13ea72e8475c 28 "sd.SPI_MOSI" : "PE_6",
MarceloSalazar 14:13ea72e8475c 29 "sd.SPI_MISO" : "PE_5",
MarceloSalazar 14:13ea72e8475c 30 "sd.SPI_CLK" : "PE_2",
MarceloSalazar 14:13ea72e8475c 31 "sd.SPI_CS" : "PE_4",
MarceloSalazar 14:13ea72e8475c 32 "target.app_offset" : "0x10400",
MarceloSalazar 14:13ea72e8475c 33 "target.header_offset" : "0x10000",
MarceloSalazar 14:13ea72e8475c 34 "sotp-section-1-address" : "(0x081C0000)",
MarceloSalazar 14:13ea72e8475c 35 "sotp-section-1-size" : "(128*1024)",
MarceloSalazar 14:13ea72e8475c 36 "sotp-section-2-address" : "(0x081E0000)",
MarceloSalazar 14:13ea72e8475c 37 "sotp-section-2-size" : "(128*1024)",
MarceloSalazar 14:13ea72e8475c 38 "sotp-num-sections" : 2,
MarceloSalazar 14:13ea72e8475c 39 "update-client.application-details": "(0x08000000+64*1024)",
MarceloSalazar 14:13ea72e8475c 40 "update-client.bootloader-details" : "0x080077C8"
MarceloSalazar 14:13ea72e8475c 41 },
MarceloSalazar 14:13ea72e8475c 42 "NUCLEO_F767ZI": {
MarceloSalazar 14:13ea72e8475c 43 "target.features_add" : ["BOOTLOADER"],
MarceloSalazar 14:13ea72e8475c 44 "target.components_add" : ["SD"],
MarceloSalazar 14:13ea72e8475c 45 "target.bootloader_img" : "bootloader/mbed-bootloader-F767ZI.bin",
MarceloSalazar 14:13ea72e8475c 46 "sd.SPI_MOSI" : "PE_6",
MarceloSalazar 14:13ea72e8475c 47 "sd.SPI_MISO" : "PE_5",
MarceloSalazar 14:13ea72e8475c 48 "sd.SPI_CLK" : "PE_2",
MarceloSalazar 14:13ea72e8475c 49 "sd.SPI_CS" : "PE_4",
MarceloSalazar 14:13ea72e8475c 50 "target.app_offset" : "0x10400",
MarceloSalazar 14:13ea72e8475c 51 "target.header_offset" : "0x10000",
MarceloSalazar 14:13ea72e8475c 52 "sotp-section-1-address" : "(0x08180000)",
MarceloSalazar 14:13ea72e8475c 53 "sotp-section-1-size" : "(256*1024)",
MarceloSalazar 14:13ea72e8475c 54 "sotp-section-2-address" : "(0x081C0000)",
MarceloSalazar 14:13ea72e8475c 55 "sotp-section-2-size" : "(256*1024)",
MarceloSalazar 14:13ea72e8475c 56 "sotp-num-sections" : 2,
MarceloSalazar 14:13ea72e8475c 57 "update-client.application-details": "(0x08000000+64*1024)",
MarceloSalazar 14:13ea72e8475c 58 "update-client.bootloader-details" : "0x08008198"
MarceloSalazar 14:13ea72e8475c 59 },
MarceloSalazar 14:13ea72e8475c 60 "NUCLEO_F746ZG": {
MarceloSalazar 14:13ea72e8475c 61 "target.features_add" : ["BOOTLOADER"],
MarceloSalazar 14:13ea72e8475c 62 "target.components_add" : ["SD"],
MarceloSalazar 14:13ea72e8475c 63 "target.bootloader_img" : "bootloader/mbed-bootloader-F746ZG.bin",
MarceloSalazar 14:13ea72e8475c 64 "sd.SPI_MOSI" : "PE_6",
MarceloSalazar 14:13ea72e8475c 65 "sd.SPI_MISO" : "PE_5",
MarceloSalazar 14:13ea72e8475c 66 "sd.SPI_CLK" : "PE_2",
MarceloSalazar 14:13ea72e8475c 67 "sd.SPI_CS" : "PE_4",
MarceloSalazar 14:13ea72e8475c 68 "target.app_offset" : "0x10400",
MarceloSalazar 14:13ea72e8475c 69 "target.header_offset" : "0x10000",
MarceloSalazar 14:13ea72e8475c 70 "sotp-section-1-address" : "(0x08080000)",
MarceloSalazar 14:13ea72e8475c 71 "sotp-section-1-size" : "(256*1024)",
MarceloSalazar 14:13ea72e8475c 72 "sotp-section-2-address" : "(0x080C0000)",
MarceloSalazar 14:13ea72e8475c 73 "sotp-section-2-size" : "(256*1024)",
MarceloSalazar 14:13ea72e8475c 74 "sotp-num-sections" : 2,
MarceloSalazar 14:13ea72e8475c 75 "update-client.application-details": "(0x08000000+64*1024)",
MarceloSalazar 14:13ea72e8475c 76 "update-client.bootloader-details" : "0x080077C8"
MarceloSalazar 14:13ea72e8475c 77 }
MarceloSalazar 14:13ea72e8475c 78 },
MarceloSalazar 14:13ea72e8475c 79 "config": {
MarceloSalazar 14:13ea72e8475c 80 "format-storage-layer-on-error": {
MarceloSalazar 14:13ea72e8475c 81 "help": "Whether to format the storage layer when it cannot be read - always disable for production devices!",
MarceloSalazar 14:13ea72e8475c 82 "value": 1
MarceloSalazar 14:13ea72e8475c 83 },
MarceloSalazar 14:13ea72e8475c 84 "developer-mode": {
MarceloSalazar 14:13ea72e8475c 85 "help": "Enable Developer mode to skip Factory enrollment",
MarceloSalazar 14:13ea72e8475c 86 "value": 1
MarceloSalazar 14:13ea72e8475c 87 },
MarceloSalazar 14:13ea72e8475c 88 "sotp-section-1-address": {
MarceloSalazar 14:13ea72e8475c 89 "help": "Flash sector address for SOTP sector 1",
MarceloSalazar 14:13ea72e8475c 90 "macro_name": "PAL_INTERNAL_FLASH_SECTION_1_ADDRESS",
MarceloSalazar 14:13ea72e8475c 91 "value": null
MarceloSalazar 14:13ea72e8475c 92 },
MarceloSalazar 14:13ea72e8475c 93 "sotp-section-1-size": {
MarceloSalazar 14:13ea72e8475c 94 "help": "Flash sector size for SOTP sector 1",
MarceloSalazar 14:13ea72e8475c 95 "macro_name": "PAL_INTERNAL_FLASH_SECTION_1_SIZE",
MarceloSalazar 14:13ea72e8475c 96 "value": null
MarceloSalazar 14:13ea72e8475c 97 },
MarceloSalazar 14:13ea72e8475c 98 "sotp-section-2-address": {
MarceloSalazar 14:13ea72e8475c 99 "help": "Flash sector address for SOTP sector 2",
MarceloSalazar 14:13ea72e8475c 100 "macro_name": "PAL_INTERNAL_FLASH_SECTION_2_ADDRESS",
MarceloSalazar 14:13ea72e8475c 101 "value": null
MarceloSalazar 14:13ea72e8475c 102 },
MarceloSalazar 14:13ea72e8475c 103 "sotp-section-2-size": {
MarceloSalazar 14:13ea72e8475c 104 "help": "Flash sector size for SOTP sector 2",
MarceloSalazar 14:13ea72e8475c 105 "macro_name": "PAL_INTERNAL_FLASH_SECTION_2_SIZE",
MarceloSalazar 14:13ea72e8475c 106 "value": null
MarceloSalazar 14:13ea72e8475c 107 },
MarceloSalazar 14:13ea72e8475c 108 "sotp-num-sections": {
MarceloSalazar 14:13ea72e8475c 109 "help": "Number of SOTP sections",
MarceloSalazar 14:13ea72e8475c 110 "macro_name": "PAL_INT_FLASH_NUM_SECTIONS",
MarceloSalazar 14:13ea72e8475c 111 "value": null
MarceloSalazar 14:13ea72e8475c 112 }
MarceloSalazar 14:13ea72e8475c 113 }
MarceloSalazar 14:13ea72e8475c 114 }