Mbed OS Device Management example for various ST boards.

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/

This example is known to work great on the following platforms:

  • DISCO_L475E_IOT01A - onboard WiFI and onboard QSPI flash. Board specific example using onboard sensors is available here.
  • DISCO_F413H - onboard WiFI and onboard QSPI flash.
  • DISCO_F469NI - WizFi310 WiFI shield and onboard QSPI flash (see WiFi shield instructions).
  • DISCO_F746NG - onboard Ethernet and using onboard QSPI flash.
  • DISCO_F769NI - onboard Ethernet and using onboard QSPI flash.
  • DISCO_L496AG - WizFi310 WiFI shield and onboard QSPI flash (see WiFi shield instructions).
  • NUCLEO_F207ZG - onboard Ethernet and wired SD card (SD card wiring instructions).
  • NUCLEO_F412ZG - WizFi310 WiFI shield and SD card shield (see WiFi shield instructions).
  • NUCLEO_F429ZI - onboard Ethernet and wired SD card (SD card wiring instructions).
  • NUCLEO_F746ZG - onboard Ethernet and wired SD card (SD card wiring instructions).
  • NUCLEO_F767ZI - onboard Ethernet and wired SD card (SD card wiring instructions).
  • NUCLEO_L476RG - WizFi310 WiFI shield and SD card shield (see WiFi shield instructions).
  • NUCLEO_L496ZG - WizFi310 WiFI shield and SD card shield (see WiFi shield instructions).
  • NUCLEO_L4R5ZI - WizFi310 WiFI shield and SD card shield (see WiFi shield instructions).

Follow the Quick-Start instructions: https://cloud.mbed.com/quick-start

DISCO_L475E_IOT01A DISCO_F413H DISCO_F746NG NUCLEO_F429ZI, NUCLEO_F767ZI, NUCLEO_F746ZG,NUCLEO_F207ZG

Example functionality

This example showcases the following device functionality:

  • Read ADC temperature and ADC vref, and report them as Pelion LWM2M resources (see image below).
  • On user button click, increment Pelion LWM2M button resource.
  • Allow the user to change the state of the board LED from Pelion LWM2M led_state resource and PUT request.

/media/uploads/screamer/pelion_st_adc_reading.png

SD card wiring

The ST Nucleo family of boards don't have storage onboard and therefore you will need an SD card. A limitation on ST Nucleo 144 boards is that there's a conflict between Ethernet and SPI pins on Arduino D11. Due to this, the SD card must be wired to different SPI bus that doesn't conflict with other functionality. The image below provide instructions on how to wire an SD card to a non-conflicting SPI instance.

/media/uploads/screamer/st_nucleo_144_sd.jpeg?v=4

If you are not a first-time Pelion Device Management user your device's SD card may already have connect and update certificates on it. If this is the case, remove and manually format your micro SD card, flash the binary to the device and then re-insert your micro SD card.

WiFi shield setup/wiring

Some ST Nucleo and Discovery boards don't have IP connectivity option, but bundled with a WiFi shield, they can take benefit of full device management capabilities. See links to reference images below on how to wire WizFI310 WiFi shield and/or SD card shield:

Use this example with Mbed CLI

1. Import the application into your desktop:

mbed import /teams/ST/code/pelion-example-common

cd pelion-example-common

2. Install the CLOUD_SDK_API_KEY

mbed config -G CLOUD_SDK_API_KEY <PELION_DM_API_KEY>

For instructions on how to generate your API key, please see the documentation.

3. Initialize firmware credentials (done once per repository). You can use the following command:

mbed dm init -d "<your company name in Pelion DM>" --model-name "<product model identifier>" -q --force

If above command do not work for your Mbed CLI, please consider upgrading Mbed CLI to version 1.8.x or above.

4. Compile and program:

mbed compile -t <toolchain> -m <TARGET_BOARD>

(supported toolchains : GCC_ARM / ARM / IAR)

Committer:
screamer
Date:
Wed Mar 27 18:17:34 2019 +0000
Revision:
25:d8a84856bd96
Parent:
24:0c17e53f5b01
Improve inline documentation

Who changed what in which revision?

UserRevisionLine numberNew contents of line
screamer 0:ea30ba97a865 1 {
screamer 0:ea30ba97a865 2 "target_overrides": {
screamer 0:ea30ba97a865 3 "*": {
screamer 19:7e760f65ed78 4 "target.components_remove" : ["FLASHIAP"],
screamer 19:7e760f65ed78 5 "platform.stdio-baud-rate" : 115200,
screamer 19:7e760f65ed78 6 "platform.stdio-convert-newlines" : true,
screamer 19:7e760f65ed78 7 "mbed-trace.enable" : null,
screamer 19:7e760f65ed78 8 "nsapi.default-wifi-security" : "WPA_WPA2",
screamer 20:bbf4220108b8 9 "nsapi.default-wifi-ssid" : "\"SSID\"",
screamer 20:bbf4220108b8 10 "nsapi.default-wifi-password" : "\"Password\""
screamer 19:7e760f65ed78 11 },
screamer 19:7e760f65ed78 12 "NUCLEO_F412ZG": {
screamer 19:7e760f65ed78 13 "target.components_add" : ["SD"],
screamer 19:7e760f65ed78 14 "sd.SPI_MOSI" : "D11",
screamer 19:7e760f65ed78 15 "sd.SPI_MISO" : "D12",
screamer 19:7e760f65ed78 16 "sd.SPI_CLK" : "D13",
screamer 19:7e760f65ed78 17 "sd.SPI_CS" : "D10",
screamer 21:aacc193bdd64 18 "target.components_add" : ["WIFI_WIZFI310"],
screamer 19:7e760f65ed78 19 "target.network-default-interface-type" : "WIFI",
screamer 21:aacc193bdd64 20 "wizfi310.tx" : "PD_5",
screamer 21:aacc193bdd64 21 "wizfi310.rx" : "PD_6",
screamer 21:aacc193bdd64 22 "wizfi310.rts" : "PD_4",
screamer 21:aacc193bdd64 23 "wizfi310.cts" : "PD_3",
screamer 21:aacc193bdd64 24 "wizfi310.rx-buffer-size" : 512,
screamer 21:aacc193bdd64 25 "wizfi310.stacksize" : 1536,
screamer 21:aacc193bdd64 26 "wizfi310.event-queue-size" : 1024,
screamer 21:aacc193bdd64 27 "wizfi310.provide-default" : true,
screamer 19:7e760f65ed78 28 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 29 "device-management.flash-size" : "(1024*1024)",
screamer 19:7e760f65ed78 30 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(128*1024))",
screamer 19:7e760f65ed78 31 "device-management.sotp-section-1-size" : "(128*1024)",
screamer 19:7e760f65ed78 32 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(128*1024))",
screamer 19:7e760f65ed78 33 "device-management.sotp-section-2-size" : "(128*1024)",
screamer 19:7e760f65ed78 34 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 35 "update-client.storage-address" : "(64*1024*1024)",
screamer 19:7e760f65ed78 36 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 37 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 38 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 39 "target.bootloader_img" : "bootloader/mbed-bootloader-NUCLEO_F412ZG.bin",
screamer 19:7e760f65ed78 40 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 41 "target.app_offset" : "0x10400"
screamer 0:ea30ba97a865 42 },
screamer 0:ea30ba97a865 43 "NUCLEO_F429ZI": {
screamer 19:7e760f65ed78 44 "target.components_add" : ["SD"],
screamer 19:7e760f65ed78 45 "sd.SPI_MOSI" : "PC_12",
screamer 19:7e760f65ed78 46 "sd.SPI_MISO" : "PC_11",
screamer 19:7e760f65ed78 47 "sd.SPI_CLK" : "PC_10",
screamer 19:7e760f65ed78 48 "sd.SPI_CS" : "PC_9",
screamer 19:7e760f65ed78 49 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 50 "device-management.flash-size" : "(2048*1024)",
screamer 19:7e760f65ed78 51 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(128*1024))",
screamer 19:7e760f65ed78 52 "device-management.sotp-section-1-size" : "(128*1024)",
screamer 19:7e760f65ed78 53 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(128*1024))",
screamer 19:7e760f65ed78 54 "device-management.sotp-section-2-size" : "(128*1024)",
screamer 19:7e760f65ed78 55 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 56 "update-client.storage-address" : "(64*1024*1024)",
screamer 19:7e760f65ed78 57 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 58 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 59 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 60 "target.bootloader_img" : "bootloader/mbed-bootloader-NUCLEO_F429ZI.bin",
screamer 19:7e760f65ed78 61 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 62 "target.app_offset" : "0x10400"
screamer 0:ea30ba97a865 63 },
screamer 0:ea30ba97a865 64 "NUCLEO_F767ZI": {
screamer 19:7e760f65ed78 65 "target.components_add" : ["SD"],
screamer 19:7e760f65ed78 66 "sd.SPI_MOSI" : "PC_12",
screamer 19:7e760f65ed78 67 "sd.SPI_MISO" : "PC_11",
screamer 19:7e760f65ed78 68 "sd.SPI_CLK" : "PC_10",
screamer 19:7e760f65ed78 69 "sd.SPI_CS" : "PC_9",
screamer 19:7e760f65ed78 70 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 71 "device-management.flash-size" : "(2048*1024)",
screamer 19:7e760f65ed78 72 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(256*1024))",
screamer 19:7e760f65ed78 73 "device-management.sotp-section-1-size" : "(256*1024)",
screamer 19:7e760f65ed78 74 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(256*1024))",
screamer 19:7e760f65ed78 75 "device-management.sotp-section-2-size" : "(256*1024)",
screamer 19:7e760f65ed78 76 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 77 "update-client.storage-address" : "(64*1024*1024)",
screamer 19:7e760f65ed78 78 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 79 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 80 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 81 "target.bootloader_img" : "bootloader/mbed-bootloader-NUCLEO_F767ZI.bin",
screamer 19:7e760f65ed78 82 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 83 "target.app_offset" : "0x10400"
screamer 0:ea30ba97a865 84 },
screamer 0:ea30ba97a865 85 "NUCLEO_F746ZG": {
screamer 19:7e760f65ed78 86 "target.components_add" : ["SD"],
screamer 19:7e760f65ed78 87 "sd.SPI_MOSI" : "PC_12",
screamer 19:7e760f65ed78 88 "sd.SPI_MISO" : "PC_11",
screamer 19:7e760f65ed78 89 "sd.SPI_CLK" : "PC_10",
screamer 19:7e760f65ed78 90 "sd.SPI_CS" : "PC_9",
screamer 19:7e760f65ed78 91 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 92 "device-management.flash-size" : "(1024*1024)",
screamer 19:7e760f65ed78 93 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(256*1024))",
screamer 19:7e760f65ed78 94 "device-management.sotp-section-1-size" : "(256*1024)",
screamer 19:7e760f65ed78 95 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(256*1024))",
screamer 19:7e760f65ed78 96 "device-management.sotp-section-2-size" : "(256*1024)",
screamer 19:7e760f65ed78 97 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 98 "update-client.storage-address" : "(64*1024*1024)",
screamer 19:7e760f65ed78 99 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 100 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 101 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 102 "target.bootloader_img" : "bootloader/mbed-bootloader-NUCLEO_F746ZG.bin",
screamer 19:7e760f65ed78 103 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 104 "target.app_offset" : "0x10400"
screamer 0:ea30ba97a865 105 },
screamer 17:c154f7ed6649 106 "NUCLEO_F207ZG": {
screamer 19:7e760f65ed78 107 "target.components_add" : ["SD"],
screamer 19:7e760f65ed78 108 "sd.SPI_MOSI" : "PC_12",
screamer 19:7e760f65ed78 109 "sd.SPI_MISO" : "PC_11",
screamer 19:7e760f65ed78 110 "sd.SPI_CLK" : "PC_10",
screamer 19:7e760f65ed78 111 "sd.SPI_CS" : "PC_9",
screamer 19:7e760f65ed78 112 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 113 "device-management.flash-size" : "(1024*1024)",
screamer 19:7e760f65ed78 114 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(128*1024))",
screamer 19:7e760f65ed78 115 "device-management.sotp-section-1-size" : "(128*1024)",
screamer 19:7e760f65ed78 116 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(128*1024))",
screamer 19:7e760f65ed78 117 "device-management.sotp-section-2-size" : "(128*1024)",
screamer 19:7e760f65ed78 118 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 119 "update-client.storage-address" : "(64*1024*1024)",
screamer 19:7e760f65ed78 120 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 121 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 122 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 123 "target.bootloader_img" : "bootloader/mbed-bootloader-NUCLEO_F207ZG.bin",
screamer 19:7e760f65ed78 124 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 125 "target.app_offset" : "0x10400"
screamer 19:7e760f65ed78 126 },
screamer 19:7e760f65ed78 127 "NUCLEO_L476RG": {
screamer 19:7e760f65ed78 128 "target.macros_remove" : ["MBED_TICKLESS"],
screamer 19:7e760f65ed78 129 "target.components_add" : ["SD"],
screamer 19:7e760f65ed78 130 "sd.SPI_MOSI" : "D11",
screamer 19:7e760f65ed78 131 "sd.SPI_MISO" : "D12",
screamer 19:7e760f65ed78 132 "sd.SPI_CLK" : "D13",
screamer 19:7e760f65ed78 133 "sd.SPI_CS" : "D10",
screamer 21:aacc193bdd64 134 "target.components_add" : ["WIFI_WIZFI310"],
screamer 19:7e760f65ed78 135 "target.network-default-interface-type" : "WIFI",
screamer 21:aacc193bdd64 136 "wizfi310.tx" : "D8",
screamer 21:aacc193bdd64 137 "wizfi310.rx" : "D2",
screamer 21:aacc193bdd64 138 "wizfi310.rts" : "D3",
screamer 21:aacc193bdd64 139 "wizfi310.cts" : "D5",
screamer 21:aacc193bdd64 140 "wizfi310.rx-buffer-size" : 64,
screamer 21:aacc193bdd64 141 "wizfi310.stacksize" : 1536,
screamer 21:aacc193bdd64 142 "wizfi310.event-queue-size" : 256,
screamer 21:aacc193bdd64 143 "wizfi310.provide-default" : true,
screamer 19:7e760f65ed78 144 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 145 "device-management.flash-size" : "(1024*1024)",
screamer 19:7e760f65ed78 146 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(128*1024))",
screamer 19:7e760f65ed78 147 "device-management.sotp-section-1-size" : "(128*1024)",
screamer 19:7e760f65ed78 148 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(128*1024))",
screamer 19:7e760f65ed78 149 "device-management.sotp-section-2-size" : "(128*1024)",
screamer 19:7e760f65ed78 150 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 151 "update-client.storage-address" : "(64*1024*1024)",
screamer 19:7e760f65ed78 152 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 153 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 154 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 155 "target.bootloader_img" : "bootloader/mbed-bootloader-NUCLEO_L476RG.bin",
screamer 19:7e760f65ed78 156 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 157 "target.app_offset" : "0x10400",
screamer 19:7e760f65ed78 158 "no_led" : "1"
screamer 19:7e760f65ed78 159 },
screamer 19:7e760f65ed78 160 "NUCLEO_L4R5ZI": {
screamer 19:7e760f65ed78 161 "target.macros_remove" : ["MBED_TICKLESS"],
screamer 19:7e760f65ed78 162 "target.components_add" : ["SD"],
screamer 19:7e760f65ed78 163 "sd.SPI_MOSI" : "D11",
screamer 19:7e760f65ed78 164 "sd.SPI_MISO" : "D12",
screamer 19:7e760f65ed78 165 "sd.SPI_CLK" : "D13",
screamer 19:7e760f65ed78 166 "sd.SPI_CS" : "D10",
screamer 19:7e760f65ed78 167 "target.network-default-interface-type" : "WIFI",
screamer 21:aacc193bdd64 168 "target.components_add" : ["WIFI_WIZFI310"],
screamer 21:aacc193bdd64 169 "wizfi310.tx" : "D1",
screamer 21:aacc193bdd64 170 "wizfi310.rx" : "D0",
screamer 21:aacc193bdd64 171 "wizfi310.rts" : "PB_1",
screamer 21:aacc193bdd64 172 "wizfi310.cts" : "PB_13",
screamer 21:aacc193bdd64 173 "wizfi310.rx-buffer-size" : 512,
screamer 21:aacc193bdd64 174 "wizfi310.stacksize" : 1536,
screamer 21:aacc193bdd64 175 "wizfi310.event-queue-size" : 1024,
screamer 21:aacc193bdd64 176 "wizfi310.provide-default" : true,
screamer 19:7e760f65ed78 177 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 178 "device-management.flash-size" : "(2048*1024)",
screamer 19:7e760f65ed78 179 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(128*1024))",
screamer 19:7e760f65ed78 180 "device-management.sotp-section-1-size" : "(128*1024)",
screamer 19:7e760f65ed78 181 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(128*1024))",
screamer 19:7e760f65ed78 182 "device-management.sotp-section-2-size" : "(128*1024)",
screamer 19:7e760f65ed78 183 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 184 "update-client.storage-address" : "(64*1024*1024)",
screamer 19:7e760f65ed78 185 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 186 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 187 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 188 "target.bootloader_img" : "bootloader/mbed-bootloader-NUCLEO_L4R5ZI.bin",
screamer 19:7e760f65ed78 189 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 190 "target.app_offset" : "0x10400"
screamer 17:c154f7ed6649 191 },
screamer 24:0c17e53f5b01 192 "NUCLEO_L496ZG": {
screamer 24:0c17e53f5b01 193 "target.macros_remove" : ["MBED_TICKLESS"],
screamer 24:0c17e53f5b01 194 "target.components_add" : ["SD"],
screamer 24:0c17e53f5b01 195 "sd.SPI_MOSI" : "D11",
screamer 24:0c17e53f5b01 196 "sd.SPI_MISO" : "D12",
screamer 24:0c17e53f5b01 197 "sd.SPI_CLK" : "D13",
screamer 24:0c17e53f5b01 198 "sd.SPI_CS" : "D10",
screamer 24:0c17e53f5b01 199 "target.components_add" : ["WIFI_WIZFI310"],
screamer 24:0c17e53f5b01 200 "target.network-default-interface-type" : "WIFI",
screamer 24:0c17e53f5b01 201 "wizfi310.tx" : "D1",
screamer 24:0c17e53f5b01 202 "wizfi310.rx" : "D0",
screamer 24:0c17e53f5b01 203 "wizfi310.rts" : "PB_1",
screamer 24:0c17e53f5b01 204 "wizfi310.cts" : "PB_13",
screamer 24:0c17e53f5b01 205 "wizfi310.rx-buffer-size" : 512,
screamer 24:0c17e53f5b01 206 "wizfi310.stacksize" : 1536,
screamer 24:0c17e53f5b01 207 "wizfi310.event-queue-size" : 1024,
screamer 24:0c17e53f5b01 208 "wizfi310.provide-default" : true,
screamer 24:0c17e53f5b01 209 "device-management.flash-start-address" : "0x08000000",
screamer 24:0c17e53f5b01 210 "device-management.flash-size" : "(1024*1024)",
screamer 24:0c17e53f5b01 211 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(2*1024))",
screamer 24:0c17e53f5b01 212 "device-management.sotp-section-1-size" : "(2*1024)",
screamer 24:0c17e53f5b01 213 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(2*1024))",
screamer 24:0c17e53f5b01 214 "device-management.sotp-section-2-size" : "(2*1024)",
screamer 24:0c17e53f5b01 215 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 24:0c17e53f5b01 216 "update-client.storage-address" : "(2*1024*1024)",
screamer 24:0c17e53f5b01 217 "update-client.storage-size" : "(2*1024*1024)",
screamer 24:0c17e53f5b01 218 "update-client.storage-locations" : "1",
screamer 24:0c17e53f5b01 219 "target.features_add" : ["BOOTLOADER"],
screamer 24:0c17e53f5b01 220 "target.bootloader_img" : "bootloader/mbed-bootloader-NUCLEO_L496ZG.bin",
screamer 24:0c17e53f5b01 221 "target.header_offset" : "0x10000",
screamer 24:0c17e53f5b01 222 "target.app_offset" : "0x10400",
screamer 24:0c17e53f5b01 223 "button-pressed-state" : 0
screamer 24:0c17e53f5b01 224 },
screamer 0:ea30ba97a865 225 "DISCO_L475VG_IOT01A": {
screamer 19:7e760f65ed78 226 "target.macros_remove" : ["MBED_TICKLESS"],
screamer 23:64f3f756acf6 227 "target.extra_labels_remove" : ["STM32L475xG"],
screamer 23:64f3f756acf6 228 "target.extra_labels_add" : ["STM32L475xG_SRAM2"],
screamer 19:7e760f65ed78 229 "target.components_add" : ["QSPIF"],
screamer 19:7e760f65ed78 230 "target.components_add" : ["WIFI_ISM43362"],
screamer 19:7e760f65ed78 231 "target.network-default-interface-type" : "WIFI",
screamer 19:7e760f65ed78 232 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 233 "device-management.flash-size" : "(1024*1024)",
screamer 19:7e760f65ed78 234 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(2*1024))",
screamer 19:7e760f65ed78 235 "device-management.sotp-section-1-size" : "(2*1024)",
screamer 19:7e760f65ed78 236 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(2*1024))",
screamer 19:7e760f65ed78 237 "device-management.sotp-section-2-size" : "(2*1024)",
screamer 19:7e760f65ed78 238 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 239 "update-client.storage-address" : "(2*1024*1024)",
screamer 19:7e760f65ed78 240 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 241 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 242 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 243 "target.bootloader_img" : "bootloader/mbed-bootloader-DISCO_L475VG_IOT01A.bin",
screamer 19:7e760f65ed78 244 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 245 "target.app_offset" : "0x10400",
screamer 19:7e760f65ed78 246 "button-pressed-state" : 0
screamer 0:ea30ba97a865 247 },
screamer 21:aacc193bdd64 248 "DISCO_L496AG": {
screamer 21:aacc193bdd64 249 "target.macros_remove" : ["MBED_TICKLESS"],
screamer 21:aacc193bdd64 250 "target.components_add" : ["QSPIF"],
screamer 21:aacc193bdd64 251 "target.components_add" : ["WIFI_WIZFI310"],
screamer 21:aacc193bdd64 252 "target.network-default-interface-type" : "WIFI",
screamer 21:aacc193bdd64 253 "wizfi310.tx" : "PB_6",
screamer 21:aacc193bdd64 254 "wizfi310.rx" : "PG_10",
screamer 21:aacc193bdd64 255 "wizfi310.rts" : "PG_12",
screamer 21:aacc193bdd64 256 "wizfi310.cts" : "PG_11",
screamer 21:aacc193bdd64 257 "wizfi310.rx-buffer-size" : 512,
screamer 21:aacc193bdd64 258 "wizfi310.stacksize" : 1536,
screamer 21:aacc193bdd64 259 "wizfi310.event-queue-size" : 1024,
screamer 21:aacc193bdd64 260 "wizfi310.provide-default" : true,
screamer 21:aacc193bdd64 261 "device-management.flash-start-address" : "0x08000000",
screamer 22:1f0ed3381798 262 "device-management.flash-size" : "(1024*1024)",
screamer 22:1f0ed3381798 263 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(2*1024))",
screamer 22:1f0ed3381798 264 "device-management.sotp-section-1-size" : "(2*1024)",
screamer 22:1f0ed3381798 265 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(2*1024))",
screamer 22:1f0ed3381798 266 "device-management.sotp-section-2-size" : "(2*1024)",
screamer 21:aacc193bdd64 267 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 21:aacc193bdd64 268 "update-client.storage-address" : "(2*1024*1024)",
screamer 21:aacc193bdd64 269 "update-client.storage-size" : "(2*1024*1024)",
screamer 21:aacc193bdd64 270 "update-client.storage-locations" : "1",
screamer 21:aacc193bdd64 271 "target.features_add" : ["BOOTLOADER"],
screamer 21:aacc193bdd64 272 "target.bootloader_img" : "bootloader/mbed-bootloader-DISCO_L496AG.bin",
screamer 21:aacc193bdd64 273 "target.header_offset" : "0x10000",
screamer 24:0c17e53f5b01 274 "target.app_offset" : "0x10400",
screamer 24:0c17e53f5b01 275 "button-pressed-state" : 0
screamer 21:aacc193bdd64 276 },
screamer 0:ea30ba97a865 277 "DISCO_F413ZH": {
screamer 19:7e760f65ed78 278 "target.components_add" : ["QSPIF"],
screamer 19:7e760f65ed78 279 "target.components_add" : ["WIFI_ISM43362"],
screamer 19:7e760f65ed78 280 "target.network-default-interface-type" : "WIFI",
screamer 19:7e760f65ed78 281 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 282 "device-management.flash-size" : "(1536*1024)",
screamer 19:7e760f65ed78 283 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(128*1024))",
screamer 19:7e760f65ed78 284 "device-management.sotp-section-1-size" : "(128*1024)",
screamer 19:7e760f65ed78 285 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(128*1024))",
screamer 19:7e760f65ed78 286 "device-management.sotp-section-2-size" : "(128*1024)",
screamer 19:7e760f65ed78 287 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 288 "update-client.storage-address" : "(2*1024*1024)",
screamer 19:7e760f65ed78 289 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 290 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 291 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 292 "target.bootloader_img" : "bootloader/mbed-bootloader-DISCO_F413ZH.bin",
screamer 19:7e760f65ed78 293 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 294 "target.app_offset" : "0x10400"
screamer 19:7e760f65ed78 295 },
screamer 19:7e760f65ed78 296 "DISCO_F469NI": {
screamer 19:7e760f65ed78 297 "target.components_add" : ["QSPIF"],
screamer 21:aacc193bdd64 298 "target.components_add" : ["WIFI_WIZFI310"],
screamer 19:7e760f65ed78 299 "target.network-default-interface-type" : "WIFI",
screamer 21:aacc193bdd64 300 "wizfi310.tx" : "D1",
screamer 21:aacc193bdd64 301 "wizfi310.rx" : "D0",
screamer 21:aacc193bdd64 302 "wizfi310.rts" : "D4",
screamer 21:aacc193bdd64 303 "wizfi310.cts" : "D2",
screamer 21:aacc193bdd64 304 "wizfi310.rx-buffer-size" : 512,
screamer 21:aacc193bdd64 305 "wizfi310.stacksize" : 1536,
screamer 21:aacc193bdd64 306 "wizfi310.event-queue-size" : 1024,
screamer 21:aacc193bdd64 307 "wizfi310.provide-default" : true,
screamer 19:7e760f65ed78 308 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 309 "device-management.flash-size" : "(2048*1024)",
screamer 19:7e760f65ed78 310 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(128*1024))",
screamer 19:7e760f65ed78 311 "device-management.sotp-section-1-size" : "(128*1024)",
screamer 19:7e760f65ed78 312 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(128*1024))",
screamer 19:7e760f65ed78 313 "device-management.sotp-section-2-size" : "(128*1024)",
screamer 19:7e760f65ed78 314 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 315 "update-client.storage-address" : "(2*1024*1024)",
screamer 19:7e760f65ed78 316 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 317 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 318 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 319 "target.bootloader_img" : "bootloader/mbed-bootloader-DISCO_F469NI.bin",
screamer 19:7e760f65ed78 320 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 321 "target.app_offset" : "0x10400"
screamer 9:734c08f4e486 322 },
screamer 9:734c08f4e486 323 "DISCO_F746NG": {
screamer 19:7e760f65ed78 324 "target.components_add" : ["QSPIF"],
screamer 19:7e760f65ed78 325 "target.components_remove" : ["SD"],
screamer 19:7e760f65ed78 326 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 327 "device-management.flash-size" : "(1024*1024)",
screamer 19:7e760f65ed78 328 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(256*1024))",
screamer 19:7e760f65ed78 329 "device-management.sotp-section-1-size" : "(256*1024)",
screamer 19:7e760f65ed78 330 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(256*1024))",
screamer 19:7e760f65ed78 331 "device-management.sotp-section-2-size" : "(256*1024)",
screamer 19:7e760f65ed78 332 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 333 "update-client.storage-address" : "(2*1024*1024)",
screamer 19:7e760f65ed78 334 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 335 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 336 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 337 "target.bootloader_img" : "bootloader/mbed-bootloader-DISCO_F746NG.bin",
screamer 19:7e760f65ed78 338 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 339 "target.app_offset" : "0x10400"
screamer 19:7e760f65ed78 340 },
screamer 19:7e760f65ed78 341 "DISCO_F769NI": {
screamer 19:7e760f65ed78 342 "target.components_add" : ["QSPIF"],
screamer 19:7e760f65ed78 343 "target.components_remove" : ["SD"],
screamer 19:7e760f65ed78 344 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 345 "device-management.flash-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 346 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(256*1024))",
screamer 19:7e760f65ed78 347 "device-management.sotp-section-1-size" : "(256*1024)",
screamer 19:7e760f65ed78 348 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(256*1024))",
screamer 19:7e760f65ed78 349 "device-management.sotp-section-2-size" : "(256*1024)",
screamer 19:7e760f65ed78 350 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 351 "update-client.storage-address" : "(2*1024*1024)",
screamer 19:7e760f65ed78 352 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 353 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 354 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 355 "target.bootloader_img" : "bootloader/mbed-bootloader-DISCO_F769NI.bin",
screamer 19:7e760f65ed78 356 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 357 "target.app_offset" : "0x10400"
screamer 0:ea30ba97a865 358 }
screamer 0:ea30ba97a865 359 },
screamer 0:ea30ba97a865 360 "config": {
screamer 0:ea30ba97a865 361 "format-storage-layer-on-error": {
screamer 0:ea30ba97a865 362 "help": "Whether to format the storage layer when it cannot be read - always disable for production devices!",
screamer 0:ea30ba97a865 363 "value": 1
screamer 0:ea30ba97a865 364 },
screamer 0:ea30ba97a865 365 "main-stack-size": {
screamer 0:ea30ba97a865 366 "value": 6000
screamer 0:ea30ba97a865 367 },
screamer 19:7e760f65ed78 368 "use-button": {
screamer 19:7e760f65ed78 369 "help": "Whether the target has a button",
screamer 19:7e760f65ed78 370 "macro_name": "USE_BUTTON",
screamer 19:7e760f65ed78 371 "value": true
screamer 0:ea30ba97a865 372 },
screamer 19:7e760f65ed78 373 "button-pressed-state": {
screamer 19:7e760f65ed78 374 "help": "Value of the button when pressed",
screamer 19:7e760f65ed78 375 "value": 1
screamer 0:ea30ba97a865 376 },
screamer 19:7e760f65ed78 377 "no_led": {
screamer 19:7e760f65ed78 378 "help": "This flag disables the heartbeat thread in tests. This is useful for platforms that don't have an LED or the LED is used for other functionality like LED on the SPI clockline etc",
screamer 0:ea30ba97a865 379 "value": null
screamer 24:0c17e53f5b01 380 },
screamer 24:0c17e53f5b01 381 "tests-fs-size": {
screamer 24:0c17e53f5b01 382 "help": "Maximum size of the file system used for tests",
screamer 24:0c17e53f5b01 383 "value": null
screamer 0:ea30ba97a865 384 }
screamer 0:ea30ba97a865 385 }
screamer 19:7e760f65ed78 386 }