Example using the UBLOX_C030_U201 board to communicate over a cellular link with Mbed Cloud.

Committer:
MarceloSalazar
Date:
Sun Oct 14 17:06:16 2018 +0100
Revision:
2:a34e80e223c2
Parent:
1:eabbeaa37715
Add support for FW Update

Who changed what in which revision?

UserRevisionLine numberNew contents of line
RobMeades 0:b6d427c3defa 1 {
RobMeades 0:b6d427c3defa 2 "macros": [
RobMeades 0:b6d427c3defa 3 "MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\"",
RobMeades 0:b6d427c3defa 4 "PAL_USER_DEFINED_CONFIGURATION=\"sotp_fs_config_MbedOS.h\"",
RobMeades 0:b6d427c3defa 5 "MBED_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\"",
RobMeades 0:b6d427c3defa 6 "MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\"",
RobMeades 0:b6d427c3defa 7 "PAL_DTLS_PEER_MIN_TIMEOUT=5000",
MarceloSalazar 1:eabbeaa37715 8 "MBED_CONF_APP_MAIN_STACK_SIZE=7000",
RobMeades 0:b6d427c3defa 9 "ARM_UC_USE_PAL_BLOCKDEVICE=1",
MarceloSalazar 1:eabbeaa37715 10 "MBED_CLOUD_CLIENT_UPDATE_STORAGE=ARM_UCP_FLASHIAP_BLOCKDEVICE",
MarceloSalazar 1:eabbeaa37715 11 "ONBOARD_CELLULAR_INTERFACE_AVAILABLE=1"
RobMeades 0:b6d427c3defa 12 ],
RobMeades 0:b6d427c3defa 13 "target_overrides": {
RobMeades 0:b6d427c3defa 14 "*": {
MarceloSalazar 2:a34e80e223c2 15 "target.features_add" : ["COMMON_PAL"],
MarceloSalazar 2:a34e80e223c2 16 "platform.stdio-baud-rate" : 115200,
MarceloSalazar 2:a34e80e223c2 17 "platform.stdio-flush-at-exit": false,
MarceloSalazar 1:eabbeaa37715 18 "update-client.storage-address" : "(1024*1024*64)",
MarceloSalazar 1:eabbeaa37715 19 "update-client.storage-size" : "(1024*1024*2)",
MarceloSalazar 2:a34e80e223c2 20 "update-client.storage-locations": 1,
MarceloSalazar 2:a34e80e223c2 21 "update-client.firmware-header-version": "2"
MarceloSalazar 2:a34e80e223c2 22 },
MarceloSalazar 1:eabbeaa37715 23 "UBLOX_C030_U201": {
MarceloSalazar 1:eabbeaa37715 24 "target.network-default-interface-type" : "CELLULAR",
MarceloSalazar 2:a34e80e223c2 25 "target.features_add" : ["STORAGE","BOOTLOADER"],
MarceloSalazar 1:eabbeaa37715 26 "target.components_add" : ["SD"],
MarceloSalazar 2:a34e80e223c2 27 "target.app_offset" : "0x10400",
MarceloSalazar 2:a34e80e223c2 28 "target.header_offset" : "0x10000",
MarceloSalazar 2:a34e80e223c2 29 "target.bootloader_img" : "bootloader/mbed-bootloader-C030_U201.bin",
MarceloSalazar 2:a34e80e223c2 30 "target.header_format": [
MarceloSalazar 2:a34e80e223c2 31 ["magic", "const", "32be", "0x5a51b3d4"],
MarceloSalazar 2:a34e80e223c2 32 ["version", "const", "32be", "2"],
MarceloSalazar 2:a34e80e223c2 33 ["firmwareVersion", "timestamp", "64be", null],
MarceloSalazar 2:a34e80e223c2 34 ["firmwareSize", "size", "64be", ["application"]],
MarceloSalazar 2:a34e80e223c2 35 ["firmwareHash", "digest", "SHA256", "application"],
MarceloSalazar 2:a34e80e223c2 36 ["hashpad", "const", "64be", "0"],
MarceloSalazar 2:a34e80e223c2 37 ["hashpad", "const", "64be", "0"],
MarceloSalazar 2:a34e80e223c2 38 ["hashpad", "const", "64be", "0"],
MarceloSalazar 2:a34e80e223c2 39 ["hashpad", "const", "64be", "0"],
MarceloSalazar 2:a34e80e223c2 40 ["campaign", "const", "64be", "0"],
MarceloSalazar 2:a34e80e223c2 41 ["campaign", "const", "64be", "0"],
MarceloSalazar 2:a34e80e223c2 42 ["firmwareSignatureSize", "const", "32be", "0"],
MarceloSalazar 2:a34e80e223c2 43 ["headerCRC", "digest", "CRCITT32be", "header"]],
MarceloSalazar 2:a34e80e223c2 44 "sotp-section-1-address" : "(0x080C0000)",
MarceloSalazar 2:a34e80e223c2 45 "sotp-section-1-size" : "(128*1024)",
MarceloSalazar 2:a34e80e223c2 46 "sotp-section-2-address" : "(0x080E0000)",
MarceloSalazar 2:a34e80e223c2 47 "sotp-section-2-size" : "(128*1024)",
MarceloSalazar 2:a34e80e223c2 48 "sotp-num-sections" : 2,
MarceloSalazar 2:a34e80e223c2 49 "update-client.bootloader-details" : "0x08007300",
MarceloSalazar 2:a34e80e223c2 50 "update-client.application-details" : "(0x08000000+64*1024)",
MarceloSalazar 1:eabbeaa37715 51 "target.features_add" : ["LWIP"],
MarceloSalazar 1:eabbeaa37715 52 "lwip.ipv4-enabled" : true,
MarceloSalazar 1:eabbeaa37715 53 "lwip.ethernet-enabled" : false,
MarceloSalazar 1:eabbeaa37715 54 "lwip.ppp-enabled" : true,
MarceloSalazar 1:eabbeaa37715 55 "lwip.tcp-enabled" : true,
MarceloSalazar 1:eabbeaa37715 56 "sotp-num-sections" : 2,
MarceloSalazar 1:eabbeaa37715 57 "mbed-trace.enable" : false
RobMeades 0:b6d427c3defa 58 }
RobMeades 0:b6d427c3defa 59 },
RobMeades 0:b6d427c3defa 60 "config": {
RobMeades 0:b6d427c3defa 61 "sotp-num-sections": {
RobMeades 0:b6d427c3defa 62 "help": "Number of SOTP sections",
RobMeades 0:b6d427c3defa 63 "macro_name": "PAL_INT_FLASH_NUM_SECTIONS",
RobMeades 0:b6d427c3defa 64 "value": 2
RobMeades 0:b6d427c3defa 65 },
RobMeades 0:b6d427c3defa 66 "format-storage-layer-on-error": {
RobMeades 0:b6d427c3defa 67 "help": "Whether to format the storage layer when it cannot be read - always disable for production devices!",
RobMeades 0:b6d427c3defa 68 "value": 1
RobMeades 0:b6d427c3defa 69 },
RobMeades 0:b6d427c3defa 70 "developer-mode": {
RobMeades 0:b6d427c3defa 71 "help": "Enable Developer mode to skip Factory enrollment",
RobMeades 0:b6d427c3defa 72 "value": 1
RobMeades 0:b6d427c3defa 73 },
RobMeades 0:b6d427c3defa 74 "sotp-section-1-address": {
RobMeades 0:b6d427c3defa 75 "help": "Flash sector address for SOTP sector 1",
RobMeades 0:b6d427c3defa 76 "macro_name": "PAL_INTERNAL_FLASH_SECTION_1_ADDRESS",
RobMeades 0:b6d427c3defa 77 "value": 135004160
RobMeades 0:b6d427c3defa 78 },
RobMeades 0:b6d427c3defa 79 "sotp-section-1-size": {
RobMeades 0:b6d427c3defa 80 "help": "Flash sector size for SOTP sector 1",
RobMeades 0:b6d427c3defa 81 "macro_name": "PAL_INTERNAL_FLASH_SECTION_1_SIZE",
RobMeades 0:b6d427c3defa 82 "value": 131072
RobMeades 0:b6d427c3defa 83 },
RobMeades 0:b6d427c3defa 84 "sotp-section-2-address": {
RobMeades 0:b6d427c3defa 85 "help": "Flash sector address for SOTP sector 2",
RobMeades 0:b6d427c3defa 86 "macro_name": "PAL_INTERNAL_FLASH_SECTION_2_ADDRESS",
RobMeades 0:b6d427c3defa 87 "value": 135135232
RobMeades 0:b6d427c3defa 88 },
RobMeades 0:b6d427c3defa 89 "sotp-section-2-size": {
RobMeades 0:b6d427c3defa 90 "help": "Flash sector size for SOTP sector 2",
RobMeades 0:b6d427c3defa 91 "macro_name": "PAL_INTERNAL_FLASH_SECTION_2_SIZE",
RobMeades 0:b6d427c3defa 92 "value": 131072
RobMeades 0:b6d427c3defa 93 }
RobMeades 0:b6d427c3defa 94 }
RobMeades 0:b6d427c3defa 95 }