Mbed OS Device Management example for various ST boards.

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:
Tue Feb 19 22:34:59 2019 +0000
Revision:
19:7e760f65ed78
Parent:
17:c154f7ed6649
Child:
20:bbf4220108b8
Updated to Mbed OS 5.11.4 and SMCC 2.1.1.2. Added support for DISCO_F769NI, NUCLEO_F412ZG and NUCLEO_L4R5ZI

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 19:7e760f65ed78 9 "nsapi.default-wifi-ssid" : "\"mbedEnabled\"",
screamer 19:7e760f65ed78 10 "nsapi.default-wifi-password" : "\"validation\""
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 19:7e760f65ed78 18 "target.components_add" : ["WIFI_IDW04A1"],
screamer 19:7e760f65ed78 19 "target.network-default-interface-type" : "WIFI",
screamer 19:7e760f65ed78 20 "target.macros_add" : [
screamer 19:7e760f65ed78 21 "IDW04A1_WIFI_HW_BUG_WA",
screamer 19:7e760f65ed78 22 "SPWDFSAXX_RESET_PIN=D7",
screamer 19:7e760f65ed78 23 "SPWDFSAXX_WAKEUP_PIN=A3"
screamer 19:7e760f65ed78 24 ],
screamer 19:7e760f65ed78 25 "idw0xx1.provide-default" : true,
screamer 19:7e760f65ed78 26 "idw0xx1.expansion-board" : "IDW04A1",
screamer 19:7e760f65ed78 27 "drivers.uart-serial-txbuf-size" : 512,
screamer 19:7e760f65ed78 28 "drivers.uart-serial-rxbuf-size" : 512,
screamer 19:7e760f65ed78 29 "idw0xx1.tx" : "D1",
screamer 19:7e760f65ed78 30 "idw0xx1.rx" : "D0",
screamer 19:7e760f65ed78 31 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 32 "device-management.flash-size" : "(1024*1024)",
screamer 19:7e760f65ed78 33 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(128*1024))",
screamer 19:7e760f65ed78 34 "device-management.sotp-section-1-size" : "(128*1024)",
screamer 19:7e760f65ed78 35 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(128*1024))",
screamer 19:7e760f65ed78 36 "device-management.sotp-section-2-size" : "(128*1024)",
screamer 19:7e760f65ed78 37 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 38 "update-client.storage-address" : "(64*1024*1024)",
screamer 19:7e760f65ed78 39 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 40 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 41 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 42 "target.bootloader_img" : "bootloader/mbed-bootloader-NUCLEO_F412ZG.bin",
screamer 19:7e760f65ed78 43 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 44 "target.app_offset" : "0x10400"
screamer 0:ea30ba97a865 45 },
screamer 0:ea30ba97a865 46 "NUCLEO_F429ZI": {
screamer 19:7e760f65ed78 47 "target.components_add" : ["SD"],
screamer 19:7e760f65ed78 48 "sd.SPI_MOSI" : "PC_12",
screamer 19:7e760f65ed78 49 "sd.SPI_MISO" : "PC_11",
screamer 19:7e760f65ed78 50 "sd.SPI_CLK" : "PC_10",
screamer 19:7e760f65ed78 51 "sd.SPI_CS" : "PC_9",
screamer 19:7e760f65ed78 52 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 53 "device-management.flash-size" : "(2048*1024)",
screamer 19:7e760f65ed78 54 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(128*1024))",
screamer 19:7e760f65ed78 55 "device-management.sotp-section-1-size" : "(128*1024)",
screamer 19:7e760f65ed78 56 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(128*1024))",
screamer 19:7e760f65ed78 57 "device-management.sotp-section-2-size" : "(128*1024)",
screamer 19:7e760f65ed78 58 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 59 "update-client.storage-address" : "(64*1024*1024)",
screamer 19:7e760f65ed78 60 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 61 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 62 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 63 "target.bootloader_img" : "bootloader/mbed-bootloader-NUCLEO_F429ZI.bin",
screamer 19:7e760f65ed78 64 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 65 "target.app_offset" : "0x10400"
screamer 0:ea30ba97a865 66 },
screamer 0:ea30ba97a865 67 "NUCLEO_F767ZI": {
screamer 19:7e760f65ed78 68 "target.components_add" : ["SD"],
screamer 19:7e760f65ed78 69 "sd.SPI_MOSI" : "PC_12",
screamer 19:7e760f65ed78 70 "sd.SPI_MISO" : "PC_11",
screamer 19:7e760f65ed78 71 "sd.SPI_CLK" : "PC_10",
screamer 19:7e760f65ed78 72 "sd.SPI_CS" : "PC_9",
screamer 19:7e760f65ed78 73 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 74 "device-management.flash-size" : "(2048*1024)",
screamer 19:7e760f65ed78 75 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(256*1024))",
screamer 19:7e760f65ed78 76 "device-management.sotp-section-1-size" : "(256*1024)",
screamer 19:7e760f65ed78 77 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(256*1024))",
screamer 19:7e760f65ed78 78 "device-management.sotp-section-2-size" : "(256*1024)",
screamer 19:7e760f65ed78 79 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 80 "update-client.storage-address" : "(64*1024*1024)",
screamer 19:7e760f65ed78 81 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 82 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 83 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 84 "target.bootloader_img" : "bootloader/mbed-bootloader-NUCLEO_F767ZI.bin",
screamer 19:7e760f65ed78 85 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 86 "target.app_offset" : "0x10400"
screamer 0:ea30ba97a865 87 },
screamer 0:ea30ba97a865 88 "NUCLEO_F746ZG": {
screamer 19:7e760f65ed78 89 "target.components_add" : ["SD"],
screamer 19:7e760f65ed78 90 "sd.SPI_MOSI" : "PC_12",
screamer 19:7e760f65ed78 91 "sd.SPI_MISO" : "PC_11",
screamer 19:7e760f65ed78 92 "sd.SPI_CLK" : "PC_10",
screamer 19:7e760f65ed78 93 "sd.SPI_CS" : "PC_9",
screamer 19:7e760f65ed78 94 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 95 "device-management.flash-size" : "(1024*1024)",
screamer 19:7e760f65ed78 96 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(256*1024))",
screamer 19:7e760f65ed78 97 "device-management.sotp-section-1-size" : "(256*1024)",
screamer 19:7e760f65ed78 98 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(256*1024))",
screamer 19:7e760f65ed78 99 "device-management.sotp-section-2-size" : "(256*1024)",
screamer 19:7e760f65ed78 100 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 101 "update-client.storage-address" : "(64*1024*1024)",
screamer 19:7e760f65ed78 102 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 103 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 104 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 105 "target.bootloader_img" : "bootloader/mbed-bootloader-NUCLEO_F746ZG.bin",
screamer 19:7e760f65ed78 106 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 107 "target.app_offset" : "0x10400"
screamer 0:ea30ba97a865 108 },
screamer 17:c154f7ed6649 109 "NUCLEO_F207ZG": {
screamer 19:7e760f65ed78 110 "target.components_add" : ["SD"],
screamer 19:7e760f65ed78 111 "sd.SPI_MOSI" : "PC_12",
screamer 19:7e760f65ed78 112 "sd.SPI_MISO" : "PC_11",
screamer 19:7e760f65ed78 113 "sd.SPI_CLK" : "PC_10",
screamer 19:7e760f65ed78 114 "sd.SPI_CS" : "PC_9",
screamer 19:7e760f65ed78 115 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 116 "device-management.flash-size" : "(1024*1024)",
screamer 19:7e760f65ed78 117 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(128*1024))",
screamer 19:7e760f65ed78 118 "device-management.sotp-section-1-size" : "(128*1024)",
screamer 19:7e760f65ed78 119 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(128*1024))",
screamer 19:7e760f65ed78 120 "device-management.sotp-section-2-size" : "(128*1024)",
screamer 19:7e760f65ed78 121 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 122 "update-client.storage-address" : "(64*1024*1024)",
screamer 19:7e760f65ed78 123 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 124 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 125 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 126 "target.bootloader_img" : "bootloader/mbed-bootloader-NUCLEO_F207ZG.bin",
screamer 19:7e760f65ed78 127 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 128 "target.app_offset" : "0x10400"
screamer 19:7e760f65ed78 129 },
screamer 19:7e760f65ed78 130 "NUCLEO_L476RG": {
screamer 19:7e760f65ed78 131 "target.macros_remove" : ["MBED_TICKLESS"],
screamer 19:7e760f65ed78 132 "target.components_add" : ["SD"],
screamer 19:7e760f65ed78 133 "sd.SPI_MOSI" : "D11",
screamer 19:7e760f65ed78 134 "sd.SPI_MISO" : "D12",
screamer 19:7e760f65ed78 135 "sd.SPI_CLK" : "D13",
screamer 19:7e760f65ed78 136 "sd.SPI_CS" : "D10",
screamer 19:7e760f65ed78 137 "target.components_add" : ["WIFI_IDW04A1"],
screamer 19:7e760f65ed78 138 "target.network-default-interface-type" : "WIFI",
screamer 19:7e760f65ed78 139 "target.macros_add" : [
screamer 19:7e760f65ed78 140 "IDW04A1_WIFI_HW_BUG_WA",
screamer 19:7e760f65ed78 141 "SPWDFSAXX_RESET_PIN=D7",
screamer 19:7e760f65ed78 142 "SPWDFSAXX_WAKEUP_PIN=A3"
screamer 19:7e760f65ed78 143 ],
screamer 19:7e760f65ed78 144 "idw0xx1.provide-default" : true,
screamer 19:7e760f65ed78 145 "idw0xx1.expansion-board" : "IDW04A1",
screamer 19:7e760f65ed78 146 "drivers.uart-serial-txbuf-size" : 512,
screamer 19:7e760f65ed78 147 "drivers.uart-serial-rxbuf-size" : 512,
screamer 19:7e760f65ed78 148 "idw0xx1.tx" : "D8",
screamer 19:7e760f65ed78 149 "idw0xx1.rx" : "D2",
screamer 19:7e760f65ed78 150 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 151 "device-management.flash-size" : "(1024*1024)",
screamer 19:7e760f65ed78 152 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(128*1024))",
screamer 19:7e760f65ed78 153 "device-management.sotp-section-1-size" : "(128*1024)",
screamer 19:7e760f65ed78 154 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(128*1024))",
screamer 19:7e760f65ed78 155 "device-management.sotp-section-2-size" : "(128*1024)",
screamer 19:7e760f65ed78 156 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 157 "update-client.storage-address" : "(64*1024*1024)",
screamer 19:7e760f65ed78 158 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 159 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 160 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 161 "target.bootloader_img" : "bootloader/mbed-bootloader-NUCLEO_L476RG.bin",
screamer 19:7e760f65ed78 162 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 163 "target.app_offset" : "0x10400",
screamer 19:7e760f65ed78 164 "no_led" : "1"
screamer 19:7e760f65ed78 165 },
screamer 19:7e760f65ed78 166 "NUCLEO_L4R5ZI": {
screamer 19:7e760f65ed78 167 "target.macros_remove" : ["MBED_TICKLESS"],
screamer 19:7e760f65ed78 168 "target.components_add" : ["SD"],
screamer 19:7e760f65ed78 169 "sd.SPI_MOSI" : "D11",
screamer 19:7e760f65ed78 170 "sd.SPI_MISO" : "D12",
screamer 19:7e760f65ed78 171 "sd.SPI_CLK" : "D13",
screamer 19:7e760f65ed78 172 "sd.SPI_CS" : "D10",
screamer 19:7e760f65ed78 173 "target.network-default-interface-type" : "WIFI",
screamer 19:7e760f65ed78 174 "target.components_add" : ["WIFI_IDW04A1"],
screamer 19:7e760f65ed78 175 "target.macros_add" : [
screamer 19:7e760f65ed78 176 "IDW04A1_WIFI_HW_BUG_WA",
screamer 19:7e760f65ed78 177 "SPWDFSAXX_RESET_PIN=D7",
screamer 19:7e760f65ed78 178 "SPWDFSAXX_WAKEUP_PIN=A3"
screamer 19:7e760f65ed78 179 ],
screamer 19:7e760f65ed78 180 "idw0xx1.provide-default" : true,
screamer 19:7e760f65ed78 181 "idw0xx1.expansion-board" : "IDW04A1",
screamer 19:7e760f65ed78 182 "drivers.uart-serial-txbuf-size" : 512,
screamer 19:7e760f65ed78 183 "drivers.uart-serial-rxbuf-size" : 512,
screamer 19:7e760f65ed78 184 "idw0xx1.tx" : "D1",
screamer 19:7e760f65ed78 185 "idw0xx1.rx" : "D0",
screamer 19:7e760f65ed78 186 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 187 "device-management.flash-size" : "(2048*1024)",
screamer 19:7e760f65ed78 188 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(128*1024))",
screamer 19:7e760f65ed78 189 "device-management.sotp-section-1-size" : "(128*1024)",
screamer 19:7e760f65ed78 190 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(128*1024))",
screamer 19:7e760f65ed78 191 "device-management.sotp-section-2-size" : "(128*1024)",
screamer 19:7e760f65ed78 192 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 193 "update-client.storage-address" : "(64*1024*1024)",
screamer 19:7e760f65ed78 194 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 195 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 196 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 197 "target.bootloader_img" : "bootloader/mbed-bootloader-NUCLEO_L4R5ZI.bin",
screamer 19:7e760f65ed78 198 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 199 "target.app_offset" : "0x10400"
screamer 17:c154f7ed6649 200 },
screamer 0:ea30ba97a865 201 "DISCO_L475VG_IOT01A": {
screamer 19:7e760f65ed78 202 "target.macros_remove" : ["MBED_TICKLESS"],
screamer 19:7e760f65ed78 203 "target.components_add" : ["QSPIF"],
screamer 19:7e760f65ed78 204 "target.components_add" : ["WIFI_ISM43362"],
screamer 19:7e760f65ed78 205 "target.network-default-interface-type" : "WIFI",
screamer 19:7e760f65ed78 206 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 207 "device-management.flash-size" : "(1024*1024)",
screamer 19:7e760f65ed78 208 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(2*1024))",
screamer 19:7e760f65ed78 209 "device-management.sotp-section-1-size" : "(2*1024)",
screamer 19:7e760f65ed78 210 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(2*1024))",
screamer 19:7e760f65ed78 211 "device-management.sotp-section-2-size" : "(2*1024)",
screamer 19:7e760f65ed78 212 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 213 "update-client.storage-address" : "(2*1024*1024)",
screamer 19:7e760f65ed78 214 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 215 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 216 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 217 "target.bootloader_img" : "bootloader/mbed-bootloader-DISCO_L475VG_IOT01A.bin",
screamer 19:7e760f65ed78 218 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 219 "target.app_offset" : "0x10400",
screamer 19:7e760f65ed78 220 "button-pressed-state" : 0
screamer 0:ea30ba97a865 221 },
screamer 0:ea30ba97a865 222 "DISCO_F413ZH": {
screamer 19:7e760f65ed78 223 "target.components_add" : ["QSPIF"],
screamer 19:7e760f65ed78 224 "target.components_add" : ["WIFI_ISM43362"],
screamer 19:7e760f65ed78 225 "target.network-default-interface-type" : "WIFI",
screamer 19:7e760f65ed78 226 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 227 "device-management.flash-size" : "(1536*1024)",
screamer 19:7e760f65ed78 228 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(128*1024))",
screamer 19:7e760f65ed78 229 "device-management.sotp-section-1-size" : "(128*1024)",
screamer 19:7e760f65ed78 230 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(128*1024))",
screamer 19:7e760f65ed78 231 "device-management.sotp-section-2-size" : "(128*1024)",
screamer 19:7e760f65ed78 232 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 233 "update-client.storage-address" : "(2*1024*1024)",
screamer 19:7e760f65ed78 234 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 235 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 236 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 237 "target.bootloader_img" : "bootloader/mbed-bootloader-DISCO_F413ZH.bin",
screamer 19:7e760f65ed78 238 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 239 "target.app_offset" : "0x10400"
screamer 19:7e760f65ed78 240 },
screamer 19:7e760f65ed78 241 "DISCO_F469NI": {
screamer 19:7e760f65ed78 242 "target.components_add" : ["QSPIF"],
screamer 19:7e760f65ed78 243 "target.components_add" : ["WIFI_IDW04A1"],
screamer 19:7e760f65ed78 244 "target.network-default-interface-type" : "WIFI",
screamer 19:7e760f65ed78 245 "target.macros_add" : [
screamer 19:7e760f65ed78 246 "IDW04A1_WIFI_HW_BUG_WA",
screamer 19:7e760f65ed78 247 "SPWDFSAXX_RESET_PIN=D7",
screamer 19:7e760f65ed78 248 "SPWDFSAXX_WAKEUP_PIN=A3"
screamer 19:7e760f65ed78 249 ],
screamer 19:7e760f65ed78 250 "idw0xx1.provide-default" : true,
screamer 19:7e760f65ed78 251 "idw0xx1.expansion-board" : "IDW04A1",
screamer 19:7e760f65ed78 252 "drivers.uart-serial-txbuf-size" : 512,
screamer 19:7e760f65ed78 253 "drivers.uart-serial-rxbuf-size" : 512,
screamer 19:7e760f65ed78 254 "idw0xx1.tx" : "D1",
screamer 19:7e760f65ed78 255 "idw0xx1.rx" : "D0",
screamer 19:7e760f65ed78 256 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 257 "device-management.flash-size" : "(2048*1024)",
screamer 19:7e760f65ed78 258 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(128*1024))",
screamer 19:7e760f65ed78 259 "device-management.sotp-section-1-size" : "(128*1024)",
screamer 19:7e760f65ed78 260 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(128*1024))",
screamer 19:7e760f65ed78 261 "device-management.sotp-section-2-size" : "(128*1024)",
screamer 19:7e760f65ed78 262 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 263 "update-client.storage-address" : "(2*1024*1024)",
screamer 19:7e760f65ed78 264 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 265 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 266 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 267 "target.bootloader_img" : "bootloader/mbed-bootloader-DISCO_F469NI.bin",
screamer 19:7e760f65ed78 268 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 269 "target.app_offset" : "0x10400"
screamer 9:734c08f4e486 270 },
screamer 9:734c08f4e486 271 "DISCO_F746NG": {
screamer 19:7e760f65ed78 272 "target.components_add" : ["QSPIF"],
screamer 19:7e760f65ed78 273 "target.components_remove" : ["SD"],
screamer 19:7e760f65ed78 274 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 275 "device-management.flash-size" : "(1024*1024)",
screamer 19:7e760f65ed78 276 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(256*1024))",
screamer 19:7e760f65ed78 277 "device-management.sotp-section-1-size" : "(256*1024)",
screamer 19:7e760f65ed78 278 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(256*1024))",
screamer 19:7e760f65ed78 279 "device-management.sotp-section-2-size" : "(256*1024)",
screamer 19:7e760f65ed78 280 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 281 "update-client.storage-address" : "(2*1024*1024)",
screamer 19:7e760f65ed78 282 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 283 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 284 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 285 "target.bootloader_img" : "bootloader/mbed-bootloader-DISCO_F746NG.bin",
screamer 19:7e760f65ed78 286 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 287 "target.app_offset" : "0x10400"
screamer 19:7e760f65ed78 288 },
screamer 19:7e760f65ed78 289 "DISCO_F769NI": {
screamer 19:7e760f65ed78 290 "target.components_add" : ["QSPIF"],
screamer 19:7e760f65ed78 291 "target.components_remove" : ["SD"],
screamer 19:7e760f65ed78 292 "device-management.flash-start-address" : "0x08000000",
screamer 19:7e760f65ed78 293 "device-management.flash-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 294 "device-management.sotp-section-1-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(256*1024))",
screamer 19:7e760f65ed78 295 "device-management.sotp-section-1-size" : "(256*1024)",
screamer 19:7e760f65ed78 296 "device-management.sotp-section-2-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(256*1024))",
screamer 19:7e760f65ed78 297 "device-management.sotp-section-2-size" : "(256*1024)",
screamer 19:7e760f65ed78 298 "update-client.application-details" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)",
screamer 19:7e760f65ed78 299 "update-client.storage-address" : "(2*1024*1024)",
screamer 19:7e760f65ed78 300 "update-client.storage-size" : "(2*1024*1024)",
screamer 19:7e760f65ed78 301 "update-client.storage-locations" : "1",
screamer 19:7e760f65ed78 302 "target.features_add" : ["BOOTLOADER"],
screamer 19:7e760f65ed78 303 "target.bootloader_img" : "bootloader/mbed-bootloader-DISCO_F769NI.bin",
screamer 19:7e760f65ed78 304 "target.header_offset" : "0x10000",
screamer 19:7e760f65ed78 305 "target.app_offset" : "0x10400"
screamer 0:ea30ba97a865 306 }
screamer 0:ea30ba97a865 307 },
screamer 0:ea30ba97a865 308 "config": {
screamer 0:ea30ba97a865 309 "format-storage-layer-on-error": {
screamer 0:ea30ba97a865 310 "help": "Whether to format the storage layer when it cannot be read - always disable for production devices!",
screamer 0:ea30ba97a865 311 "value": 1
screamer 0:ea30ba97a865 312 },
screamer 0:ea30ba97a865 313 "main-stack-size": {
screamer 0:ea30ba97a865 314 "value": 6000
screamer 0:ea30ba97a865 315 },
screamer 19:7e760f65ed78 316 "use-button": {
screamer 19:7e760f65ed78 317 "help": "Whether the target has a button",
screamer 19:7e760f65ed78 318 "macro_name": "USE_BUTTON",
screamer 19:7e760f65ed78 319 "value": true
screamer 0:ea30ba97a865 320 },
screamer 19:7e760f65ed78 321 "button-pressed-state": {
screamer 19:7e760f65ed78 322 "help": "Value of the button when pressed",
screamer 19:7e760f65ed78 323 "value": 1
screamer 0:ea30ba97a865 324 },
screamer 19:7e760f65ed78 325 "no_led": {
screamer 19:7e760f65ed78 326 "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 327 "value": null
screamer 0:ea30ba97a865 328 }
screamer 0:ea30ba97a865 329 }
screamer 19:7e760f65ed78 330 }