Updated version to work with K64 and FW Update

Fork of mbed-cloud-connect-example-ethernet by NXP

Committer:
MarceloSalazar
Date:
Thu Sep 06 14:22:28 2018 +0100
Revision:
22:ca861d3f7a6c
Parent:
18:86e812c7e048
Restore update_default_resources.c

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MarceloSalazar 18:86e812c7e048 1 {
MarceloSalazar 18:86e812c7e048 2 "macros": [
MarceloSalazar 18:86e812c7e048 3 "MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\"",
MarceloSalazar 18:86e812c7e048 4 "PAL_USER_DEFINED_CONFIGURATION=\"sotp_fs_config_MbedOS.h\"",
MarceloSalazar 18:86e812c7e048 5 "MBED_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\"",
MarceloSalazar 18:86e812c7e048 6 "MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\"",
MarceloSalazar 18:86e812c7e048 7 "PAL_DTLS_PEER_MIN_TIMEOUT=5000",
MarceloSalazar 18:86e812c7e048 8 "MBED_CONF_APP_MAIN_STACK_SIZE=6000",
MarceloSalazar 18:86e812c7e048 9 "ARM_UC_USE_PAL_BLOCKDEVICE=1",
MarceloSalazar 18:86e812c7e048 10 "MBED_CLOUD_CLIENT_UPDATE_STORAGE=ARM_UCP_FLASHIAP_BLOCKDEVICE"
MarceloSalazar 18:86e812c7e048 11 ],
MarceloSalazar 18:86e812c7e048 12 "target_overrides": {
MarceloSalazar 18:86e812c7e048 13 "*": {
MarceloSalazar 18:86e812c7e048 14 "platform.stdio-baud-rate": 115200,
MarceloSalazar 18:86e812c7e048 15 "platform.stdio-convert-newlines": true,
MarceloSalazar 18:86e812c7e048 16 "update-client.storage-address" : "(1024*1024*64)",
MarceloSalazar 18:86e812c7e048 17 "update-client.storage-size" : "(1024*1024*2)",
MarceloSalazar 18:86e812c7e048 18 "update-client.storage-locations": "1",
MarceloSalazar 18:86e812c7e048 19 "mbed-trace.enable": null
MarceloSalazar 18:86e812c7e048 20 },
MarceloSalazar 18:86e812c7e048 21 "K64F": {
MarceloSalazar 18:86e812c7e048 22 "target.features_add" : ["BOOTLOADER"],
MarceloSalazar 18:86e812c7e048 23 "sotp-section-1-address" : "0xFE000",
MarceloSalazar 18:86e812c7e048 24 "sotp-section-1-size" : "0x1000",
MarceloSalazar 18:86e812c7e048 25 "sotp-section-2-address" : "0xFF000",
MarceloSalazar 18:86e812c7e048 26 "sotp-section-2-size" : "0x1000",
MarceloSalazar 18:86e812c7e048 27 "sotp-num-sections" : 2,
MarceloSalazar 18:86e812c7e048 28 "test-block-device-object" : "SDBlockDevice bd(PTE3, PTE1, PTE2, PTE4);"
MarceloSalazar 18:86e812c7e048 29 },
MarceloSalazar 18:86e812c7e048 30 "K66F": {
MarceloSalazar 18:86e812c7e048 31 "target.features_add" : ["BOOTLOADER"],
MarceloSalazar 18:86e812c7e048 32 "sotp-section-1-address" : "0x1FE000",
MarceloSalazar 18:86e812c7e048 33 "sotp-section-1-size" : "0x1000",
MarceloSalazar 18:86e812c7e048 34 "sotp-section-2-address" : "0x1FF000",
MarceloSalazar 18:86e812c7e048 35 "sotp-section-2-size" : "0x1000",
MarceloSalazar 18:86e812c7e048 36 "sotp-num-sections" : 2,
MarceloSalazar 18:86e812c7e048 37 "test-block-device-object" : "SDBlockDevice bd(PTE3, PTE1, PTE2, PTE4);"
MarceloSalazar 18:86e812c7e048 38 }
MarceloSalazar 18:86e812c7e048 39 },
MarceloSalazar 18:86e812c7e048 40 "config": {
MarceloSalazar 18:86e812c7e048 41 "format-storage-layer-on-error": {
MarceloSalazar 18:86e812c7e048 42 "help": "Whether to format the storage layer when it cannot be read - always disable for production devices!",
MarceloSalazar 18:86e812c7e048 43 "value": 1
MarceloSalazar 18:86e812c7e048 44 },
MarceloSalazar 18:86e812c7e048 45 "developer-mode": {
MarceloSalazar 18:86e812c7e048 46 "help": "Enable Developer mode to skip Factory enrollment",
MarceloSalazar 18:86e812c7e048 47 "value": 1
MarceloSalazar 18:86e812c7e048 48 },
MarceloSalazar 18:86e812c7e048 49 "sotp-section-1-address": {
MarceloSalazar 18:86e812c7e048 50 "help": "Flash sector address for SOTP sector 1",
MarceloSalazar 18:86e812c7e048 51 "macro_name": "PAL_INTERNAL_FLASH_SECTION_1_ADDRESS",
MarceloSalazar 18:86e812c7e048 52 "value": null
MarceloSalazar 18:86e812c7e048 53 },
MarceloSalazar 18:86e812c7e048 54 "sotp-section-1-size": {
MarceloSalazar 18:86e812c7e048 55 "help": "Flash sector size for SOTP sector 1",
MarceloSalazar 18:86e812c7e048 56 "macro_name": "PAL_INTERNAL_FLASH_SECTION_1_SIZE",
MarceloSalazar 18:86e812c7e048 57 "value": null
MarceloSalazar 18:86e812c7e048 58 },
MarceloSalazar 18:86e812c7e048 59 "sotp-section-2-address": {
MarceloSalazar 18:86e812c7e048 60 "help": "Flash sector address for SOTP sector 2",
MarceloSalazar 18:86e812c7e048 61 "macro_name": "PAL_INTERNAL_FLASH_SECTION_2_ADDRESS",
MarceloSalazar 18:86e812c7e048 62 "value": null
MarceloSalazar 18:86e812c7e048 63 },
MarceloSalazar 18:86e812c7e048 64 "sotp-section-2-size": {
MarceloSalazar 18:86e812c7e048 65 "help": "Flash sector size for SOTP sector 2",
MarceloSalazar 18:86e812c7e048 66 "macro_name": "PAL_INTERNAL_FLASH_SECTION_2_SIZE",
MarceloSalazar 18:86e812c7e048 67 "value": null
MarceloSalazar 18:86e812c7e048 68 },
MarceloSalazar 18:86e812c7e048 69 "sotp-num-sections": {
MarceloSalazar 18:86e812c7e048 70 "help": "Number of SOTP sections",
MarceloSalazar 18:86e812c7e048 71 "macro_name": "PAL_INT_FLASH_NUM_SECTIONS",
MarceloSalazar 18:86e812c7e048 72 "value": null
MarceloSalazar 18:86e812c7e048 73 },
MarceloSalazar 18:86e812c7e048 74 "test-connect-header-file": {
MarceloSalazar 18:86e812c7e048 75 "help": "Name of socket interface for SMCC tests.",
MarceloSalazar 18:86e812c7e048 76 "value": "\"EthernetInterface.h\""
MarceloSalazar 18:86e812c7e048 77 },
MarceloSalazar 18:86e812c7e048 78 "test-socket-object": {
MarceloSalazar 18:86e812c7e048 79 "help": "Instantiation of network interface statement for SMCC tests. (variable name must be net)",
MarceloSalazar 18:86e812c7e048 80 "value": "EthernetInterface net;"
MarceloSalazar 18:86e812c7e048 81 },
MarceloSalazar 18:86e812c7e048 82 "test-socket-connect": {
MarceloSalazar 18:86e812c7e048 83 "help": "Network socket connect statement for SMCC tests.",
MarceloSalazar 18:86e812c7e048 84 "value": "net.connect();"
MarceloSalazar 18:86e812c7e048 85 },
MarceloSalazar 18:86e812c7e048 86 "test-block-device-header-file": {
MarceloSalazar 18:86e812c7e048 87 "help": "Name of block device for SMCC tests.",
MarceloSalazar 18:86e812c7e048 88 "value": "\"SDBlockDevice.h\""
MarceloSalazar 18:86e812c7e048 89 },
MarceloSalazar 18:86e812c7e048 90 "test-block-device-object": {
MarceloSalazar 18:86e812c7e048 91 "help": "Block device instantiation for SMCC tests. (variable name must be bd)",
MarceloSalazar 18:86e812c7e048 92 "value": "SDBlockDevice bd(MBED_CONF_APP_SPI_MOSI, MBED_CONF_APP_SPI_MISO, MBED_CONF_APP_SPI_CLK, MBED_CONF_APP_SPI_CS);"
MarceloSalazar 18:86e812c7e048 93 }
MarceloSalazar 18:86e812c7e048 94 }
MarceloSalazar 18:86e812c7e048 95 }