diff --git a/README.md b/README.md index f83d14f..3fc8178 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,19 @@ There is a more advanced example of the client with support for multiple operati This table shows a list of boards that are supported. +Following board support's new update client and bootloader + +FOTA Supported Board's | Connectivity | Storage for credentials and FW candidate | Notes +------------------------------------| ------------------| ------------------------| -------------- +NXP `K64F` | Ethernet | Internal Flash | +NXP `K66F` | Ethernet | Internal Flash | +ST `NUCLEO_F411RE` | Wi-Fi ESP8266 | SD card | Build-only +ST `NUCLEO_F429ZI` | Ethernet | Internal Flash | Build-only +ST `DISCO_L475VG_IOT01A` | Wi-Fi | QSPIF | Build-only + +Migration guide for legacy targets previously supporting UC bootloader and now upgraded to support new update client and bootloaders. +Please check section # Migration Guide for Targets supporting new update client implementation and bootloaders (Temporary placeholder for official documentation) + Board | Connectivity | Storage for credentials and FW candidate | Notes ------------------------------------| ------------------| ------------------------| -------------- Cypress `CYTFM_064B0S2_4343W` | Wi-Fi | Internal flash for credentials + external flash for FW candidate | To use `mbed-os-example-pelion` with the `CYTFM_064B0S2_4343W` board, check out the `cytfm-064b0s2-4343w` branch and see [*Running PDMC example on the CYTFM_064B0S2_4343W*](../cytfm-064b0s2-4343w/TARGET_CYTFM_064B0S2_4343W/README.md). @@ -412,3 +425,9 @@ Note platforms will be tested regularly in the Arm CI system. Please discuss wit # Known-issues Please review existing issues on [GitHub](https://github.com/ARMmbed/mbed-os-example-pelion/issues) and report any problem you may see. + +# Migration Guide for Targets supporting new update client implementation and bootloaders (Temporary placeholder for official documentation) + +1. Official documentation is still work in progress. +2. Current new bootloaders are compiled from https://github.com/PelionIoT/mbed-bootloader/tree/nanoclient feature branch which provide both the application and bootloader kvstore and update configurations. +3. The provided prebuild-bl folder contain several examples for new configuration system and will be expanded in future. diff --git a/TESTS/pelion-e2e-python-test-library.lib b/TESTS/pelion-e2e-python-test-library.lib index bc33097..0eb95ef 100644 --- a/TESTS/pelion-e2e-python-test-library.lib +++ b/TESTS/pelion-e2e-python-test-library.lib @@ -1 +1 @@ -https://github.com/ARMmbed/pelion-e2e-python-test-library/#b1254f39b5d4fe4a5805642f109bd6d6f27adaaa +https://github.com/ARMmbed/pelion-e2e-python-test-library/#3d6e3abf08fc3db63e345f228adb315cca61162c diff --git a/mbed-cloud-client.lib b/mbed-cloud-client.lib index 7663814..7016e5d 100644 --- a/mbed-cloud-client.lib +++ b/mbed-cloud-client.lib @@ -1 +1 @@ -https://github.com/PelionIoT/mbed-cloud-client/#f277bdc5cf8f5dee22063a5d293c03d76a0a8da2 +https://github.com/PelionIoT/mbed-cloud-client/#d7edc529ed3722c811ff401440ef58ea980bf543 diff --git a/mbed-os.lib b/mbed-os.lib index 3accc50..68e51ac 100644 --- a/mbed-os.lib +++ b/mbed-os.lib @@ -1 +1 @@ -https://github.com/ARMmbed/mbed-os/#f2278567d09b9ae9f4843e1d9d393526b9462783 +https://github.com/ARMmbed/mbed-os/#3377f083b3a6bd7a1b45ed2cea5cf083b9007527 diff --git a/mbed_app.json b/mbed_app.json index 381fb10..a4301a6 100644 --- a/mbed_app.json +++ b/mbed_app.json @@ -1,15 +1,10 @@ { "macros": [ - "MBED_TRACE_MAX_LEVEL=TRACE_LEVEL_INFO", - "MBED_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\"", - "MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\"", - "ARM_UC_USE_PAL_BLOCKDEVICE=1", "PAL_PLATFORM_DEFINED_CONFIGURATION=\"mbedOS_SST.h\"", "PAL_USER_DEFINED_CONFIGURATION=\"mbedOS_SST.h\"" ], "target_overrides": { "*": { - "target.features_add" : ["BOOTLOADER", "STORAGE"], "target.c_lib" : "std", "platform.stdio-baud-rate" : 115200, "platform.stdio-convert-newlines" : true, @@ -18,6 +13,15 @@ "rtos.main-thread-stack-size" : 5120, "update-client.storage-locations" : 1, "mbed-trace.enable" : null, + "storage.storage_type" : null, + "storage_filesystem.filesystem" : null, + "storage_filesystem.blockdevice" : null, + "storage_tdb_internal.internal_base_address": null, + "storage_tdb_internal.internal_size" : null, + "storage_filesystem.internal_base_address" : null, + "storage_filesystem.rbp_internal_size" : null, + "storage_filesystem.external_base_address" : null, + "storage_filesystem.external_size" : null, "events.shared-stacksize" : 2048, "nsapi.default-wifi-security" : "WPA_WPA2", "nsapi.default-wifi-ssid" : "\"SSID\"", @@ -31,79 +35,56 @@ "lwip.mem-size" : 12500 }, "K64F": { - "target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\""], + "target.features_add" : ["STORAGE"], + "target.macros_add" : ["MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\"", "MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\""], "target.network-default-interface-type" : "ETHERNET", - "target.bootloader_img" : "bootloader/mbed-bootloader-k64f-internal_flash-no_rot-v4.1.0.bin", + "target.extra_labels_add" : ["BL_INTERNAL_FLASH"], "target.header_offset" : "0x8000", - "target.app_offset" : "0x8400", - "target.restrict_size" : "0x77C00", - "update-client.bootloader-details" : "0x4A6C", - "update-client.application-details" : "(32*1024)", - "update-client.storage-address" : "(MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS+MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", - "update-client.storage-size" : "(512*1024-MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", - "update-client.storage-locations" : 1, - "update-client.storage-page" : 8, - "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP", - "storage_tdb_internal.internal_base_address": "(512*1024)", - "storage_tdb_internal.internal_size" : "(32*1024)", - "storage.storage_type" : "TDB_INTERNAL", + "target.app_offset" : "0x8200", + "target.restrict_size" : "0xF7E00", + "target.components_remove" : ["SD"], + "fota.enable" : true, + "fota.default-app-ifs" : 1, + "fota.app-default-cb-no-print" : false, "run-ci" : 2 }, "K66F": { - "target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\""], + "target.features_add" : ["STORAGE"], + "target.macros_add" : ["MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\"", "MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\""], "target.network-default-interface-type" : "ETHERNET", - "target.bootloader_img" : "bootloader/mbed-bootloader-k66f-internal_flash-no_rot-v4.1.0.bin", + "target.extra_labels_add" : ["BL_INTERNAL_FLASH"], "target.header_offset" : "0x8000", - "target.app_offset" : "0x8400", - "target.restrict_size" : "0xF7C00", - "update-client.bootloader-details" : "0x4D58", - "update-client.application-details" : "(32*1024)", - "update-client.storage-address" : "(MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS+MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", - "update-client.storage-size" : "(1024*1024-MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", - "update-client.storage-page" : 8, - "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP", - "storage_tdb_internal.internal_base_address": "(1024*1024)", - "storage_tdb_internal.internal_size" : "(96*1024)", - "storage.storage_type" : "TDB_INTERNAL", + "target.app_offset" : "0x8200", + "target.restrict_size" : "0xF7E00", + "target.components_remove" : ["SD"], + "fota.enable" : true, + "fota.default-app-ifs" : 1, + "fota.app-default-cb-no-print" : false, "run-ci" : 2 }, "NUCLEO_F429ZI": { - "target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\""], + "target.features_add" : ["STORAGE"], + "target.macros_add" : ["MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\"", "MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\""], "target.network-default-interface-type" : "ETHERNET", - "target.bootloader_img" : "bootloader/mbed-bootloader-nucleo_f429zi-internal_flash-no_rot-v4.1.0.bin", + "target.extra_labels_add" : ["BL_INTERNAL_FLASH"], "target.header_offset" : "0x8000", - "target.app_offset" : "0x8400", - "target.restrict_size" : "0xF7C00", - "update-client.bootloader-details" : "0x080078CC", - "update-client.application-details" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", - "update-client.storage-address" : "(MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS+MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", - "update-client.storage-size" : "(1024*1024-MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", - "update-client.storage-page" : 1, - "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP", - "storage_tdb_internal.internal_base_address": "(MBED_ROM_START+1024*1024)", - "storage_tdb_internal.internal_size" : "(128*1024)", - "storage.storage_type" : "TDB_INTERNAL" + "target.app_offset" : "0x8200", + "target.restrict_size" : "0xF7E00", + "fota.enable" : true, + "fota.default-app-ifs" : 1, + "fota.app-default-cb-no-print" : false }, "NUCLEO_F411RE": { - "target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS_SW_TRNG.h\"", "MBEDTLS_ENTROPY_NV_SEED", "PAL_USE_HW_TRNG=0"], + "target.features_add" : ["STORAGE"], + "target.macros_add" : ["MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\"", "MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS_SW_TRNG.h\"", "MBEDTLS_ENTROPY_NV_SEED", "PAL_USE_HW_TRNG=0"], "target.network-default-interface-type" : "WIFI", - "target.bootloader_img" : "bootloader/mbed-bootloader-nucleo_f411re-block_device-kvstore-v4.1.0.bin", + "target.extra_labels_add" : ["BL_SD"], "target.header_offset" : "0x10000", - "target.app_offset" : "0x10400", + "target.app_offset" : "0x10200", "target.components_add" : ["SD"], - "update-client.bootloader-details" : "(MBED_ROM_START + 30*1024)", - "update-client.application-details" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE + MBED_CONF_STORAGE_FILESYSTEM_RBP_INTERNAL_SIZE)", - "update-client.storage-address" : "(MBED_CONF_STORAGE_FILESYSTEM_EXTERNAL_SIZE)", - "update-client.storage-size" : "((MBED_ROM_START + MBED_ROM_SIZE - APPLICATION_ADDR) * MBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS)", - "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP_BLOCKDEVICE", - "storage_filesystem.internal_base_address" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", - "storage_filesystem.rbp_internal_size" : "(32*1024)", - "storage_filesystem.external_base_address" : "(0x0)", - "storage_filesystem.external_size" : "(1024*1024*64)", - "storage.storage_type" : "FILESYSTEM", - "storage_filesystem.filesystem" : "LITTLE", - "storage_filesystem.blockdevice" : "SD", "target.macros_remove" : ["MBEDTLS_CONFIG_HW_SUPPORT"], + "fota.encryption-support" : true, + "fota.key-encryption" : "FOTA_USE_ENCRYPTED_ONE_TIME_FW_KEY", "sd.SPI_MOSI" : "PC_3", "sd.SPI_MISO" : "PC_2", "sd.SPI_CLK" : "PC_7", @@ -113,471 +94,26 @@ "esp8266.rst" : "PA_7", "esp8266.rts" : "PA_12", "esp8266.cts" : "PA_11", - "esp8266.provide-default" : true - }, - "NUMAKER_PFM_NUC472": { - "target.network-default-interface-type" : "ETHERNET", - "target.bootloader_img" : "bootloader/mbed-bootloader-nuc472-block_device-kvstore-v4.1.0.bin", - "bootloader-size" : "(64*1024)", - "target.header_offset" : "0x12000", - "target.app_offset" : "0x12400", - "target.components_add" : ["NUSD"], - "nusd.provide-default-blockdevice" : true, - "nusd.provide-kvstore-other-blockdevice" : true, - "update-client.bootloader-details" : "0x0", - "update-client.application-details" : "0x12000", - "update-client.storage-address" : "(1024*1024*64)", - "update-client.storage-size" : "((MBED_ROM_START + MBED_ROM_SIZE - APPLICATION_ADDR) * MBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS)", - "update-client.storage-locations" : 1, - "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP_BLOCKDEVICE", - "storage.storage_type" : "FILESYSTEM", - "storage_filesystem.filesystem" : "LITTLE", - "storage_filesystem.blockdevice" : "other", - "storage_filesystem.internal_base_address" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", - "storage_filesystem.rbp_internal_size" : "(2*4*1024)", - "storage_filesystem.external_base_address" : "(0x0)", - "storage_filesystem.external_size" : "(1024*1024*64)", - "target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS_SW_TRNG.h\"", "MBEDTLS_ENTROPY_NV_SEED", "PAL_USE_HW_TRNG=0"] - }, - "NUMAKER_PFM_M487": { - "target.network-default-interface-type" : "ETHERNET", - "target.bootloader_img" : "bootloader/mbed-bootloader-m487-block_device-kvstore-v4.1.0.bin", - "bootloader-size" : "(64*1024)", - "target.header_offset" : "0x12000", - "target.app_offset" : "0x12400", - "target.components_add" : ["NUSD"], - "nusd.provide-default-blockdevice" : true, - "nusd.provide-kvstore-other-blockdevice" : true, - "update-client.bootloader-details" : "0x0", - "update-client.application-details" : "0x12000", - "update-client.storage-address" : "(1024*1024*64)", - "update-client.storage-size" : "((MBED_ROM_START + MBED_ROM_SIZE - APPLICATION_ADDR) * MBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS)", - "update-client.storage-locations" : 1, - "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP_BLOCKDEVICE", - "storage.storage_type" : "FILESYSTEM", - "storage_filesystem.filesystem" : "LITTLE", - "storage_filesystem.blockdevice" : "other", - "storage_filesystem.internal_base_address" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", - "storage_filesystem.rbp_internal_size" : "(2*4*1024)", - "storage_filesystem.external_base_address" : "(0x0)", - "storage_filesystem.external_size" : "(1024*1024*64)", - "target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS_SW_TRNG.h\"", "MBEDTLS_ENTROPY_NV_SEED", "PAL_USE_HW_TRNG=0"] - }, - "NUMAKER_IOT_M487": { - "target.network-default-interface-type" : "WIFI", - "target.bootloader_img" : "bootloader/mbed-bootloader-m487_iot-block_device-kvstore-v4.1.0.bin", - "bootloader-size" : "(64*1024)", - "target.header_offset" : "0x12000", - "target.app_offset" : "0x12400", - "target.components_add" : ["NUSD"], - "nusd.provide-default-blockdevice" : true, - "nusd.provide-kvstore-other-blockdevice" : true, - "update-client.bootloader-details" : "0x0", - "update-client.application-details" : "0x12000", - "update-client.storage-address" : "(1024*1024*64)", - "update-client.storage-size" : "((MBED_ROM_START + MBED_ROM_SIZE - APPLICATION_ADDR) * MBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS)", - "update-client.storage-locations" : 1, - "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP_BLOCKDEVICE", - "storage.storage_type" : "FILESYSTEM", - "storage_filesystem.filesystem" : "LITTLE", - "storage_filesystem.blockdevice" : "other", - "storage_filesystem.internal_base_address" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", - "storage_filesystem.rbp_internal_size" : "(2*4*1024)", - "storage_filesystem.external_base_address" : "(0x0)", - "storage_filesystem.external_size" : "(1024*1024*64)", - "esp8266.tx" : "PH_8", - "esp8266.rx" : "PH_9", - "esp8266.rts" : "A2", - "esp8266.cts" : "A3", - "esp8266.rst" : "PH_3", "esp8266.provide-default" : true, - "target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS_SW_TRNG.h\"", "MBEDTLS_ENTROPY_NV_SEED", "PAL_USE_HW_TRNG=0", "ESP8266_SEND_TIMEOUT=8s"] - }, - "NUMAKER_IOT_M263A": { - "target.network-default-interface-type" : "WIFI", - "target.bootloader_img" : "bootloader/mbed-bootloader-m263_iot-block_device-kvstore-v4.1.0.bin", - "bootloader-size" : "(64*1024)", - "target.header_offset" : "0x12000", - "target.app_offset" : "0x12400", - "target.components_add" : ["NUSD"], - "nusd.provide-default-blockdevice" : true, - "nusd.provide-kvstore-other-blockdevice" : true, - "update-client.bootloader-details" : "0x0", - "update-client.application-details" : "0x12000", - "update-client.storage-address" : "(1024*1024*64)", - "update-client.storage-size" : "((MBED_ROM_START + MBED_ROM_SIZE - APPLICATION_ADDR) * MBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS)", - "update-client.storage-locations" : 1, - "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP_BLOCKDEVICE", - "storage.storage_type" : "FILESYSTEM", - "storage_filesystem.filesystem" : "LITTLE", - "storage_filesystem.blockdevice" : "other", - "storage_filesystem.internal_base_address" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", - "storage_filesystem.rbp_internal_size" : "(2*4*1024)", - "storage_filesystem.external_base_address" : "(0x0)", - "storage_filesystem.external_size" : "(1024*1024*64)", - "esp8266.tx" : "PC_7", - "esp8266.rx" : "PC_6", - "esp8266.rts" : "PE_13", - "esp8266.cts" : "PC_8", - "esp8266.rst" : "PE_12", - "esp8266.provide-default" : true, - "target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS_SW_TRNG.h\"", "MBEDTLS_ENTROPY_NV_SEED", "PAL_USE_HW_TRNG=0", "ESP8266_SEND_TIMEOUT=8s"] + "fota.enable" : true, + "fota.default-app-ifs" : 1, + "fota.app-default-cb-no-print" : false }, "DISCO_L475VG_IOT01A": { - "target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\""], + "target.macros_add" : ["MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\"", "MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\""], "target.network-default-interface-type" : "WIFI", - "target.bootloader_img" : "bootloader/mbed-bootloader-disco_l475vg_iot01a-external_kvstore-qspif-v4.1.1.bin", - "target.header_offset" : "0x11000", - "target.app_offset" : "0x11400", + "target.header_offset" : "0x11800", + "target.app_offset" : "0x11A00", "target.components_add" : ["QSPIF", "WIFI_ISM43362"], - "bootloader-size" : "(36*1024)", - "ism43362.read-thread-stack-size" : 1024, + "target.extra_labels_add" : ["BL_QSPIF"], + "ism43362.read-thread-stack-size" : 2048, "mbed-client-pal.pal-max-frag-len" : 1, "mbed-client.sn-coap-max-blockwise-payload-size": 256, - "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP_BLOCKDEVICE", - "storage.storage_type" : "FILESYSTEM", - "storage_filesystem.filesystem" : "LITTLE", - "storage_filesystem.blockdevice" : "QSPIF", - "storage_filesystem.external_size" : "(1024 * 1024)", - "storage_filesystem.external_base_address" : "(0)", - "storage_filesystem.rbp_internal_size" : "(32 * 1024)", - "storage_filesystem.internal_base_address" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", - "update-client.application-details" : "(MBED_CONF_STORAGE_FILESYSTEM_INTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_FILESYSTEM_RBP_INTERNAL_SIZE)", - "update-client.bootloader-details" : "0x800882c", - "update-client.firmware-header-version" : "2", - "update-client.storage-address" : "(MBED_CONF_STORAGE_FILESYSTEM_EXTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_FILESYSTEM_EXTERNAL_SIZE)", - "update-client.storage-locations" : 1, - "update-client.storage-size" : "((MBED_ROM_START + MBED_ROM_SIZE - APPLICATION_ADDR) * MBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS)" - }, - "DISCO_F746NG": { - "target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\""], - "target.network-default-interface-type" : "ETHERNET", - "target.bootloader_img" : "bootloader/mbed-bootloader-disco_f746ng-external_kvstore-qspif-738a116.bin", - "target.header_offset" : "0x20000", - "target.app_offset" : "0x20400", - "bootloader-size" : "(64*1024)", - "mbed-client-pal.pal-max-frag-len" : 1, - "mbed-client.sn-coap-max-blockwise-payload-size": 256, - "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP_BLOCKDEVICE", - "storage.storage_type" : "TDB_EXTERNAL", - "storage_tdb_external.blockdevice" : "QSPIF", - "storage_tdb_external.rbp_internal_size" : "(2*32*1024)", - "storage_tdb_external.internal_base_address": "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", - "storage_tdb_external.external_base_address": "(0)", - "storage_tdb_external.external_size" : "(128 * 1024)", - "update-client.application-details" : "(MBED_CONF_STORAGE_TDB_EXTERNAL_INTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_TDB_EXTERNAL_RBP_INTERNAL_SIZE)", - "update-client.bootloader-details" : "0x800882c", - "update-client.firmware-header-version" : "2", - "update-client.storage-address" : "(MBED_CONF_STORAGE_TDB_EXTERNAL_EXTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_TDB_EXTERNAL_EXTERNAL_SIZE)", - "update-client.storage-locations" : 1, - "update-client.storage-size" : "((MBED_ROM_START + MBED_ROM_SIZE - APPLICATION_ADDR) * MBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS)" - }, - "DISCO_L496AG": { - "target.macros_add": [ - "CELLULAR_DEVICE=STModCellular", - "MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\"" - ], - "target.network-default-interface-type" : "CELLULAR", - "target.bootloader_img" : "bootloader/mbed-bootloader-disco_l496ag-external_qspif-kvstore-4.1.2.bin", - "target.header_offset" : "0x11000", - "target.app_offset" : "0x11400", - "target.components_add" : ["QSPIF", "LWIP", "FLASHIAP", "STMOD_CELLULAR"], - "bootloader-size" : "(36*1024)", - "mbed-client.sn-coap-max-blockwise-payload-size" : 256, - "mbed-client-pal.pal-max-frag-len" : 1, - "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP_BLOCKDEVICE", - "lwip.ipv4-enabled" : true, - "lwip.ipv6-enabled" : true, - "lwip.ethernet-enabled" : false, - "lwip.ppp-enabled" : false, - "lwip.tcp-enabled" : true, - "stmod_cellular.provide-default" : "true", - "cellular.radio-access-technology" : 9, - "cellular.debug-at" : false, - "cellular.use-apn-lookup" : false, - "cellular.clear-on-connect" : null, - "nsapi.default-cellular-sim-pin" : null, - "nsapi.default-cellular-plmn" : null, - "nsapi.default-cellular-apn" : null, - "nsapi.default-cellular-username" : null, - "nsapi.default-cellular-password": null, - "storage.storage_type" : "FILESYSTEM", - "storage_filesystem.filesystem" : "LITTLE", - "storage_filesystem.blockdevice" : "QSPIF", - "storage_filesystem.external_size" : "(1024 * 1024)", - "storage_filesystem.external_base_address" : "(0)", - "storage_filesystem.rbp_internal_size" : "(2*16*1024)", - "storage_filesystem.internal_base_address" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", - "update-client.application-details" : "(MBED_CONF_STORAGE_FILESYSTEM_INTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_FILESYSTEM_RBP_INTERNAL_SIZE)", - "update-client.storage-address" : "(MBED_CONF_STORAGE_FILESYSTEM_EXTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_FILESYSTEM_EXTERNAL_SIZE)", - "update-client.storage-size" : "((MBED_ROM_START + MBED_ROM_SIZE - APPLICATION_ADDR) * MBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS)", - "update-client.storage-locations" : 1 - }, - "EP_AGORA": { - "target.features_remove" : ["BLE", "CRYPTOCELL310"], - "target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\""], - "target.bootloader_img" : "bootloader/mbed-bootloader-ep_agora-external_kvstore-spif-v4.1.2.bin", - "target.header_offset" : "0x10000", - "target.app_offset" : "0x10400", - "target.components_remove" : ["QSPIF"], - "target.components_add" : ["SPIF"], - "target.macros_remove" : ["MBEDTLS_CONFIG_HW_SUPPORT"], - "update-client.bootloader-details" : "0x7394", - "update-client.application-details" : "(MBED_CONF_STORAGE_FILESYSTEM_INTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_FILESYSTEM_RBP_INTERNAL_SIZE)", - "update-client.storage-address" : "(MBED_CONF_STORAGE_FILESYSTEM_EXTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_FILESYSTEM_EXTERNAL_SIZE)", - "update-client.storage-size" : "((MBED_ROM_START + MBED_ROM_SIZE - APPLICATION_ADDR) * MBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS)", - "update-client.firmware-header-version" : "2", - "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP_BLOCKDEVICE", - "storage_filesystem.internal_base_address" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", - "storage_filesystem.rbp_internal_size" : "(32*1024)", - "storage.storage_type" : "FILESYSTEM", - "storage_filesystem.filesystem" : "LITTLE", - "storage_filesystem.blockdevice" : "SPIF", - "storage_filesystem.external_base_address" : "(0x0)", - "storage_filesystem.external_size" : "(1024*1024*1)", - "drivers.uart-serial-rxbuf-size" : 1024, - "drivers.uart-serial-txbuf-size" : 1024, - "lwip.ipv4-enabled" : true, - "lwip.ipv6-enabled" : true, - "lwip.ppp-enabled" : true, - "lwip.tcp-enabled" : true, - "lwip.ethernet-enabled" : false, - "lwip.mem-size" : 22000, - "nsapi.dns-response-wait-time" : 30000 - }, - "NUCLEO_H743ZI2": { - "target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\""], - "target.network-default-interface-type" : "ETHERNET", - "target.bootloader_img" : "bootloader/mbed-bootloader-nucleo-h743zi2-internal-flash-no-rot-4.1.1.bin", - "target.header_offset" : "0x40000", - "target.app_offset" : "0x40400", - "target.restrict_size" : "0xBFC00", - "bootloader-size" : "(128*1024)", - "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP", - "storage.storage_type" : "TDB_INTERNAL", - "storage_tdb_internal.internal_base_address": "(MBED_ROM_START + (1024*1024))", - "storage_tdb_internal.internal_size" : "(2*128*1024)", - "update-client.application-details" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE * 2)", - "update-client.bootloader-details" : "0x0800715c", - "update-client.firmware-header-version" : "2", - "update-client.storage-address" : "(MBED_ROM_START + ((8+2)*128*1024))", - "update-client.storage-locations" : 1, - "update-client.storage-size" : "(6*128*1024)" - }, - "NUCLEO_L4R5ZI": { - "target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\"", "MBED_APP_FLASH_BANK_SIZE=MBED_ROM_SIZE/2", "KVSTORE_SIZE=(32*1024)"], - "target.bootloader_img" : "bootloader/mbed-bootloader-nucleo_l4r5zi-internal_flash_no_rot-ca089bb.bin", - "target.header_offset" : "0x08000", - "target.app_offset" : "0x08400", - "target.restrict_size" : "0xF7C00", - "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP", - "update-client.bootloader-details" : "0x08007cac", - "update-client.application-details" : "(32*1024)", - "update-client.storage-address" : "(MBED_ROM_START + MBED_APP_FLASH_BANK_SIZE + KVSTORE_SIZE)", - "update-client.storage-size" : "(MBED_APP_FLASH_BANK_SIZE - KVSTORE_SIZE)", - "update-client.storage-locations" : 1, - "update-client.storage-page" : 1, - "storage_tdb_internal.internal_base_address": "(MBED_ROM_START+1024*1024)", - "storage_tdb_internal.internal_size" : "KVSTORE_SIZE", - "storage.storage_type" : "TDB_INTERNAL", - "target.network-default-interface-type" : "WIFI", - "esp8266.provide-default" : true, - "esp8266.tx" : "D1", - "esp8266.rx" : "D0", - "esp8266.cts" : "D12", - "esp8266.rts" : "PB_1", - "esp8266.rst" : "D8" - }, - "ARCH_MAX": { - "target.extra_labels_add" : ["PSA"], - "target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\""], - "target.network-default-interface-type" : "ETHERNET", - "target.bootloader_img" : "bootloader/mbed-bootloader-arch_max-block_device-kvstore-v4.0.3.bin", - "target.header_offset" : "0x10000", - "target.app_offset" : "0x10400", - "update-client.bootloader-details" : "0x08006FB8", - "update-client.application-details" : "(0x08000000+64*1024)", - "update-client.storage-address" : "(1024*1024*64)", - "update-client.storage-size" : "((MBED_ROM_START + MBED_ROM_SIZE - APPLICATION_ADDR) * MBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS)", - "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP_BLOCKDEVICE", - "storage_filesystem.internal_base_address" : "(0x08000000+32*1024)", - "storage_filesystem.rbp_internal_size" : "(32*1024)", - "storage_filesystem.external_base_address" : "(0x0)", - "storage_filesystem.external_size" : "(1024*1024*64)", - "storage.storage_type" : "FILESYSTEM", - "storage_filesystem.filesystem" : "LITTLE", - "storage_filesystem.blockdevice" : "SD", - "target.lse_available" : 0, - "target.macros_remove" : ["MBEDTLS_CONFIG_HW_SUPPORT"] - }, - "RZ_A1H": { - "target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS_SW_TRNG.h\"", "MBEDTLS_ENTROPY_NV_SEED", "PAL_USE_HW_TRNG=0"], - "target.bootloader_supported" : true, - "target.network-default-interface-type" : "ETHERNET", - "target.bootloader_img" : "bootloader/mbed-bootloader-gr_peach-internal_flash-no_rot-v4.1.2.bin", - "target.header_offset" : "0x10000", - "target.app_offset" : "0x10400", - "target.restrict_size" : "0xEFC00", - "bootloader-size" : "(64*1024)", - "update-client.bootloader-details" : "0x1800a660", - "update-client.application-details" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", - "update-client.storage-address" : "(MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS+MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", - "update-client.storage-size" : "(4*1024*1024-MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", - "update-client.storage-page" : 1, - "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP", - "storage_tdb_internal.internal_base_address": "(MBED_ROM_START+4*1024*1024)", - "storage_tdb_internal.internal_size" : "(2*24*1024)", - "storage.storage_type" : "TDB_INTERNAL" - }, - "GR_LYCHEE": { - "target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\""], - "target.bootloader_supported" : true, - "target.network-default-interface-type" : "WIFI", - "target.components_add" : ["WIFI_ESP32"], - "target.bootloader_img" : "bootloader/mbed-bootloader-gr_lychee-internal_flash-no_rot-v4.1.2.bin", - "target.header_offset" : "0x10000", - "target.app_offset" : "0x10400", - "target.restrict_size" : "0xEFC00", - "bootloader-size" : "(64*1024)", - "update-client.bootloader-details" : "0x1800a468", - "update-client.application-details" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", - "update-client.storage-address" : "(MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS+MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", - "update-client.storage-size" : "(4*1024*1024-MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", - "update-client.storage-page" : 1, - "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP", - "storage_tdb_internal.internal_base_address": "(MBED_ROM_START+4*1024*1024)", - "storage_tdb_internal.internal_size" : "(2*24*1024)", - "storage.storage_type" : "TDB_INTERNAL" - }, - "WIO_3G": { - "target.features_add" : ["LWIP", "STORAGE", "BOOTLOADER"], - "target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\""], - "target.device_has_remove" : ["SERIAL_FC"], - "target.network-default-interface-type" : "CELLULAR", - "target.components_add" : ["FLASHIAP"], - "target.bootloader_img" : "bootloader/mbed-bootloader-wio_3g-internal_flash-no_rot-v4.1.2.bin", - "target.header_offset" : "0x8000", - "target.app_offset" : "0x8400", - "target.restrict_size" : "0xF7C00", - "nsapi.default-cellular-plmn" : 0, - "cellular.use-apn-lookup" : false, - "cellular.debug-at" : false, - "lwip.ipv4-enabled" : true, - "lwip.ethernet-enabled" : false, - "lwip.ppp-enabled" : true, - "lwip.tcp-enabled" : true, - "lwip.pbuf-pool-size" : 16, - "lwip.mem-size" : 12500, - "update-client.bootloader-details" : "0x08005ee8", - "update-client.application-details" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", - "update-client.storage-address" : "(MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS+MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", - "update-client.storage-size" : "(1024*1024-MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", - "update-client.storage-page" : 1, - "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP", - "storage_tdb_internal.internal_base_address": "(MBED_ROM_START+1024*1024)", - "storage_tdb_internal.internal_size" : "(32*1024)", - "storage.storage_type" : "TDB_INTERNAL" - }, - "WIO_BG96": { - "target.features_add" : ["LWIP", "STORAGE", "BOOTLOADER"], - "target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\""], - "target.network-default-interface-type" : "CELLULAR", - "target.components_add" : ["FLASHIAP"], - "target.bootloader_img" : "bootloader/mbed-bootloader-wio_3g-internal_flash-no_rot-v4.1.2.bin", - "target.header_offset" : "0x8000", - "target.app_offset" : "0x8400", - "target.restrict_size" : "0xF7C00", - "nsapi.default-cellular-plmn" : 0, - "cellular.use-apn-lookup" : false, - "cellular.debug-at" : false, - "lwip.ipv4-enabled" : true, - "lwip.ethernet-enabled" : false, - "lwip.ppp-enabled" : true, - "lwip.tcp-enabled" : true, - "lwip.pbuf-pool-size" : 16, - "lwip.mem-size" : 12500, - "update-client.bootloader-details" : "0x08005ee8", - "update-client.application-details" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", - "update-client.storage-address" : "(MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS+MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", - "update-client.storage-size" : "(1024*1024-MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", - "update-client.storage-page" : 1, - "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP", - "storage_tdb_internal.internal_base_address": "(MBED_ROM_START+1024*1024)", - "storage_tdb_internal.internal_size" : "(32*1024)", - "storage.storage_type" : "TDB_INTERNAL" - }, - "UHURU_RAVEN": { - "target.macros_remove" : ["MBEDTLS_CONFIG_HW_SUPPORT"], - "target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\""], - "target.network-default-interface-type" : "WIFI", - "target.components_add" : ["WIFI_ESP32", "FLASHIAP"], - "target.bootloader_img" : "bootloader/mbed-bootloader-stm32f767-internal_flash-no_rot-v4.1.2.bin", - "target.header_offset" : "0x18000", - "target.app_offset" : "0x18400", - "target.restrict_size" : "0xE7C00", - "esp32.wifi-debug" : false, - "esp32.wifi-en" : "PB_12", - "esp32.wifi-io0" : "PB_13", - "esp32.wifi-tx" : "PB_14", - "esp32.wifi-rx" : "PB_15", - "esp32.provide-default" : true, - "update-client.bootloader-details" : "0x8005d30", - "update-client.application-details" : "(MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", - "update-client.storage-address" : "(MBED_ROM_START + (MBED_ROM_SIZE/2))", - "update-client.storage-size" : "((MBED_ROM_SIZE/2) - MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", - "update-client.storage-locations" : 1, - "update-client.storage-page" : 1, - "update-client.firmware-header-version" : "2", - "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP", - "storage.storage_type" : "TDB_INTERNAL", - "storage_tdb_internal.internal_base_address": "(MBED_ROM_START + 32*1024)", - "storage_tdb_internal.internal_size" : "(32*2*1024)" - }, - "NUCLEO_F767ZI": { - "target.macros_remove" : ["MBEDTLS_CONFIG_HW_SUPPORT"], - "target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\""], - "target.network-default-interface-type" : "ETHERNET", - "target.bootloader_img" : "bootloader/mbed-bootloader-stm32f767-internal_flash-no_rot-v4.1.2.bin", - "target.header_offset" : "0x18000", - "target.app_offset" : "0x18400", - "target.restrict_size" : "0xE7C00", - "update-client.bootloader-details" : "0x8005d30", - "update-client.application-details" : "(MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", - "update-client.storage-address" : "(MBED_ROM_START + (MBED_ROM_SIZE/2))", - "update-client.storage-size" : "((MBED_ROM_SIZE/2) - MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", - "update-client.storage-locations" : 1, - "update-client.storage-page" : 1, - "update-client.firmware-header-version" : "2", - "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP", - "storage.storage_type" : "TDB_INTERNAL", - "storage_tdb_internal.internal_base_address": "(MBED_ROM_START + 32*1024)", - "storage_tdb_internal.internal_size" : "(32*2*1024)" - }, - "CY8CPROTO_062_4343W": { - "target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\"","ARM_UC_DELTAPAAL_WRITE_BUF_SIZE=512"], - "target.network-default-interface-type" : "WIFI", - "target.components_add" : ["QSPIF"], - "target.components_remove" : ["CM0P_SLEEP"], - "target.bootloader_img" : "bootloader/mbed-bootloader-cy8cproto-062-4343w-ext-kvstore-qspi-v4.1.3.bin", - "bootloader-size" : "0x00020000", - "target.header_offset" : "0x00020000", - "target.app_offset" : "0x00020400", - "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP_BLOCKDEVICE", - "update-client.bootloader-details" : "0x10010B9C", - "update-client.application-details" : "0x10020000", - "update-client.storage-address" : "0x00000000", - "update-client.storage-size" : "0x1C0000", - "update-client.storage-page" : 512, - "storage.storage_type" : "TDB_EXTERNAL", - "storage_tdb_external.blockdevice" : "QSPIF", - "storage_tdb_external.internal_base_address": "0x101E0000", - "storage_tdb_external.rbp_internal_size" : "0x10000", - "storage_tdb_external.external_base_address": "0x00200000", - "storage_tdb_external.external_size" : "4*0x40000", - "target.bootloader_supported" : true, - "target.mbed_rom_start" : "0x10000000", - "target.mbed_rom_size" : "0x00200000", - "target.sectors" : [[268435456, 512]] + "fota.enable" : true, + "fota.default-app-ifs" : 1, + "fota.app-default-cb-no-print" : false, + "fota.encryption-support" : true, + "fota.key-encryption" : "FOTA_USE_ENCRYPTED_ONE_TIME_FW_KEY" } }, "config": { diff --git a/mbed_app_legacy.json b/mbed_app_legacy.json new file mode 100644 index 0000000..3036363 --- /dev/null +++ b/mbed_app_legacy.json @@ -0,0 +1,481 @@ +{ + "macros": [ + "PAL_PLATFORM_DEFINED_CONFIGURATION=\"mbedOS_SST.h\"", + "PAL_USER_DEFINED_CONFIGURATION=\"mbedOS_SST.h\"" + ], + "target_overrides": { + "*": { + "target.features_add" : ["BOOTLOADER", "STORAGE"], + "target.c_lib" : "std", + "platform.stdio-baud-rate" : 115200, + "platform.stdio-convert-newlines" : true, + "platform.stdio-buffered-serial" : true, + "platform.stdio-flush-at-exit" : true, + "rtos.main-thread-stack-size" : 5120, + "update-client.storage-locations" : 1, + "mbed-trace.enable" : null, + "events.shared-stacksize" : 2048, + "nsapi.default-wifi-security" : "WPA_WPA2", + "nsapi.default-wifi-ssid" : "\"SSID\"", + "nsapi.default-wifi-password" : "\"PASSWORD\"", + "nsapi.default-cellular-apn" : "\"APN\"", + "nsapi.default-cellular-sim-pin" : null, + "nsapi.default-cellular-username" : null, + "nsapi.default-cellular-password" : null + }, + "Freescale": { + "lwip.mem-size" : 12500 + }, + "NUMAKER_PFM_NUC472": { + "target.network-default-interface-type" : "ETHERNET", + "target.bootloader_img" : "bootloader/mbed-bootloader-nuc472-block_device-kvstore-v4.1.0.bin", + "bootloader-size" : "(64*1024)", + "target.header_offset" : "0x12000", + "target.app_offset" : "0x12400", + "target.components_add" : ["NUSD"], + "nusd.provide-default-blockdevice" : true, + "nusd.provide-kvstore-other-blockdevice" : true, + "update-client.bootloader-details" : "0x0", + "update-client.application-details" : "0x12000", + "update-client.storage-address" : "(1024*1024*64)", + "update-client.storage-size" : "((MBED_ROM_START + MBED_ROM_SIZE - APPLICATION_ADDR) * MBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS)", + "update-client.storage-locations" : 1, + "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP_BLOCKDEVICE", + "storage.storage_type" : "FILESYSTEM", + "storage_filesystem.filesystem" : "LITTLE", + "storage_filesystem.blockdevice" : "other", + "storage_filesystem.internal_base_address" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", + "storage_filesystem.rbp_internal_size" : "(2*4*1024)", + "storage_filesystem.external_base_address" : "(0x0)", + "storage_filesystem.external_size" : "(1024*1024*64)", + "target.macros_add" : ["MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config_legacy.h\"", "MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS_SW_TRNG.h\"", "MBEDTLS_ENTROPY_NV_SEED", "PAL_USE_HW_TRNG=0", "ARM_UC_USE_PAL_BLOCKDEVICE=1"] + }, + "NUMAKER_PFM_M487": { + "target.network-default-interface-type" : "ETHERNET", + "target.bootloader_img" : "bootloader/mbed-bootloader-m487-block_device-kvstore-v4.1.0.bin", + "bootloader-size" : "(64*1024)", + "target.header_offset" : "0x12000", + "target.app_offset" : "0x12400", + "target.components_add" : ["NUSD"], + "nusd.provide-default-blockdevice" : true, + "nusd.provide-kvstore-other-blockdevice" : true, + "update-client.bootloader-details" : "0x0", + "update-client.application-details" : "0x12000", + "update-client.storage-address" : "(1024*1024*64)", + "update-client.storage-size" : "((MBED_ROM_START + MBED_ROM_SIZE - APPLICATION_ADDR) * MBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS)", + "update-client.storage-locations" : 1, + "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP_BLOCKDEVICE", + "storage.storage_type" : "FILESYSTEM", + "storage_filesystem.filesystem" : "LITTLE", + "storage_filesystem.blockdevice" : "other", + "storage_filesystem.internal_base_address" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", + "storage_filesystem.rbp_internal_size" : "(2*4*1024)", + "storage_filesystem.external_base_address" : "(0x0)", + "storage_filesystem.external_size" : "(1024*1024*64)", + "target.macros_add" : ["MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config_legacy.h\"","MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS_SW_TRNG.h\"", "MBEDTLS_ENTROPY_NV_SEED", "PAL_USE_HW_TRNG=0","ARM_UC_USE_PAL_BLOCKDEVICE=1"] + }, + "NUMAKER_IOT_M487": { + "target.network-default-interface-type" : "WIFI", + "target.bootloader_img" : "bootloader/mbed-bootloader-m487_iot-block_device-kvstore-v4.1.0.bin", + "bootloader-size" : "(64*1024)", + "target.header_offset" : "0x12000", + "target.app_offset" : "0x12400", + "target.components_add" : ["NUSD"], + "nusd.provide-default-blockdevice" : true, + "nusd.provide-kvstore-other-blockdevice" : true, + "update-client.bootloader-details" : "0x0", + "update-client.application-details" : "0x12000", + "update-client.storage-address" : "(1024*1024*64)", + "update-client.storage-size" : "((MBED_ROM_START + MBED_ROM_SIZE - APPLICATION_ADDR) * MBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS)", + "update-client.storage-locations" : 1, + "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP_BLOCKDEVICE", + "storage.storage_type" : "FILESYSTEM", + "storage_filesystem.filesystem" : "LITTLE", + "storage_filesystem.blockdevice" : "other", + "storage_filesystem.internal_base_address" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", + "storage_filesystem.rbp_internal_size" : "(2*4*1024)", + "storage_filesystem.external_base_address" : "(0x0)", + "storage_filesystem.external_size" : "(1024*1024*64)", + "esp8266.tx" : "PH_8", + "esp8266.rx" : "PH_9", + "esp8266.rts" : "A2", + "esp8266.cts" : "A3", + "esp8266.rst" : "PH_3", + "esp8266.provide-default" : true, + "target.macros_add" : ["MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config_legacy.h\"","MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS_SW_TRNG.h\"", "MBEDTLS_ENTROPY_NV_SEED", "PAL_USE_HW_TRNG=0", "ESP8266_SEND_TIMEOUT=8s","ARM_UC_USE_PAL_BLOCKDEVICE=1"] + }, + "NUMAKER_IOT_M263A": { + "target.network-default-interface-type" : "WIFI", + "target.bootloader_img" : "bootloader/mbed-bootloader-m263_iot-block_device-kvstore-v4.1.0.bin", + "bootloader-size" : "(64*1024)", + "target.header_offset" : "0x12000", + "target.app_offset" : "0x12400", + "target.components_add" : ["NUSD"], + "nusd.provide-default-blockdevice" : true, + "nusd.provide-kvstore-other-blockdevice" : true, + "update-client.bootloader-details" : "0x0", + "update-client.application-details" : "0x12000", + "update-client.storage-address" : "(1024*1024*64)", + "update-client.storage-size" : "((MBED_ROM_START + MBED_ROM_SIZE - APPLICATION_ADDR) * MBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS)", + "update-client.storage-locations" : 1, + "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP_BLOCKDEVICE", + "storage.storage_type" : "FILESYSTEM", + "storage_filesystem.filesystem" : "LITTLE", + "storage_filesystem.blockdevice" : "other", + "storage_filesystem.internal_base_address" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", + "storage_filesystem.rbp_internal_size" : "(2*4*1024)", + "storage_filesystem.external_base_address" : "(0x0)", + "storage_filesystem.external_size" : "(1024*1024*64)", + "esp8266.tx" : "PC_7", + "esp8266.rx" : "PC_6", + "esp8266.rts" : "PE_13", + "esp8266.cts" : "PC_8", + "esp8266.rst" : "PE_12", + "esp8266.provide-default" : true, + "target.macros_add" : ["MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config_legacy.h\"","MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS_SW_TRNG.h\"", "MBEDTLS_ENTROPY_NV_SEED", "PAL_USE_HW_TRNG=0", "ESP8266_SEND_TIMEOUT=8s","ARM_UC_USE_PAL_BLOCKDEVICE=1"] + }, + "DISCO_F746NG": { + "target.macros_add" : ["MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config_legacy.h\"","MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\"","ARM_UC_USE_PAL_BLOCKDEVICE=1"], + "target.network-default-interface-type" : "ETHERNET", + "target.bootloader_img" : "bootloader/mbed-bootloader-disco_f746ng-external_kvstore-qspif-738a116.bin", + "target.header_offset" : "0x20000", + "target.app_offset" : "0x20400", + "bootloader-size" : "(64*1024)", + "mbed-client-pal.pal-max-frag-len" : 1, + "mbed-client.sn-coap-max-blockwise-payload-size": 256, + "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP_BLOCKDEVICE", + "storage.storage_type" : "TDB_EXTERNAL", + "storage_tdb_external.blockdevice" : "QSPIF", + "storage_tdb_external.rbp_internal_size" : "(2*32*1024)", + "storage_tdb_external.internal_base_address": "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", + "storage_tdb_external.external_base_address": "(0)", + "storage_tdb_external.external_size" : "(128 * 1024)", + "update-client.application-details" : "(MBED_CONF_STORAGE_TDB_EXTERNAL_INTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_TDB_EXTERNAL_RBP_INTERNAL_SIZE)", + "update-client.bootloader-details" : "0x800882c", + "update-client.firmware-header-version" : "2", + "update-client.storage-address" : "(MBED_CONF_STORAGE_TDB_EXTERNAL_EXTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_TDB_EXTERNAL_EXTERNAL_SIZE)", + "update-client.storage-locations" : 1, + "update-client.storage-size" : "((MBED_ROM_START + MBED_ROM_SIZE - APPLICATION_ADDR) * MBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS)" + }, + "DISCO_L496AG": { + "target.macros_add": ["MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config_legacy.h\"", + "CELLULAR_DEVICE=STModCellular", + "MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\"", + "ARM_UC_USE_PAL_BLOCKDEVICE=1" + ], + "target.network-default-interface-type" : "CELLULAR", + "target.bootloader_img" : "bootloader/mbed-bootloader-disco_l496ag-external_qspif-kvstore-4.1.2.bin", + "target.header_offset" : "0x11000", + "target.app_offset" : "0x11400", + "target.components_add" : ["QSPIF", "LWIP", "FLASHIAP", "STMOD_CELLULAR"], + "bootloader-size" : "(36*1024)", + "mbed-client.sn-coap-max-blockwise-payload-size" : 256, + "mbed-client-pal.pal-max-frag-len" : 1, + "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP_BLOCKDEVICE", + "lwip.ipv4-enabled" : true, + "lwip.ipv6-enabled" : true, + "lwip.ethernet-enabled" : false, + "lwip.ppp-enabled" : false, + "lwip.tcp-enabled" : true, + "stmod_cellular.provide-default" : "true", + "cellular.radio-access-technology" : 9, + "cellular.debug-at" : false, + "cellular.use-apn-lookup" : false, + "cellular.clear-on-connect" : null, + "nsapi.default-cellular-sim-pin" : null, + "nsapi.default-cellular-plmn" : null, + "nsapi.default-cellular-apn" : null, + "nsapi.default-cellular-username" : null, + "nsapi.default-cellular-password": null, + "storage.storage_type" : "FILESYSTEM", + "storage_filesystem.filesystem" : "LITTLE", + "storage_filesystem.blockdevice" : "QSPIF", + "storage_filesystem.external_size" : "(1024 * 1024)", + "storage_filesystem.external_base_address" : "(0)", + "storage_filesystem.rbp_internal_size" : "(2*16*1024)", + "storage_filesystem.internal_base_address" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", + "update-client.application-details" : "(MBED_CONF_STORAGE_FILESYSTEM_INTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_FILESYSTEM_RBP_INTERNAL_SIZE)", + "update-client.storage-address" : "(MBED_CONF_STORAGE_FILESYSTEM_EXTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_FILESYSTEM_EXTERNAL_SIZE)", + "update-client.storage-size" : "((MBED_ROM_START + MBED_ROM_SIZE - APPLICATION_ADDR) * MBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS)", + "update-client.storage-locations" : 1 + }, + "EP_AGORA": { + "target.features_remove" : ["BLE", "CRYPTOCELL310"], + "target.macros_add" : ["MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config_legacy.h\"","MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\"","ARM_UC_USE_PAL_BLOCKDEVICE=1"], + "target.bootloader_img" : "bootloader/mbed-bootloader-ep_agora-external_kvstore-spif-v4.1.2.bin", + "target.header_offset" : "0x10000", + "target.app_offset" : "0x10400", + "target.components_remove" : ["QSPIF"], + "target.components_add" : ["SPIF"], + "target.macros_remove" : ["MBEDTLS_CONFIG_HW_SUPPORT"], + "update-client.bootloader-details" : "0x7394", + "update-client.application-details" : "(MBED_CONF_STORAGE_FILESYSTEM_INTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_FILESYSTEM_RBP_INTERNAL_SIZE)", + "update-client.storage-address" : "(MBED_CONF_STORAGE_FILESYSTEM_EXTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_FILESYSTEM_EXTERNAL_SIZE)", + "update-client.storage-size" : "((MBED_ROM_START + MBED_ROM_SIZE - APPLICATION_ADDR) * MBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS)", + "update-client.firmware-header-version" : "2", + "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP_BLOCKDEVICE", + "storage_filesystem.internal_base_address" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", + "storage_filesystem.rbp_internal_size" : "(32*1024)", + "storage.storage_type" : "FILESYSTEM", + "storage_filesystem.filesystem" : "LITTLE", + "storage_filesystem.blockdevice" : "SPIF", + "storage_filesystem.external_base_address" : "(0x0)", + "storage_filesystem.external_size" : "(1024*1024*1)", + "drivers.uart-serial-rxbuf-size" : 1024, + "drivers.uart-serial-txbuf-size" : 1024, + "lwip.ipv4-enabled" : true, + "lwip.ipv6-enabled" : true, + "lwip.ppp-enabled" : true, + "lwip.tcp-enabled" : true, + "lwip.ethernet-enabled" : false, + "lwip.mem-size" : 22000, + "nsapi.dns-response-wait-time" : 30000 + }, + "NUCLEO_H743ZI2": { + "target.macros_add" : ["MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config_legacy.h\"","MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\"","ARM_UC_USE_PAL_BLOCKDEVICE=1"], + "target.network-default-interface-type" : "ETHERNET", + "target.bootloader_img" : "bootloader/mbed-bootloader-nucleo-h743zi2-internal-flash-no-rot-4.1.1.bin", + "target.header_offset" : "0x40000", + "target.app_offset" : "0x40400", + "target.restrict_size" : "0xBFC00", + "bootloader-size" : "(128*1024)", + "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP", + "storage.storage_type" : "TDB_INTERNAL", + "storage_tdb_internal.internal_base_address": "(MBED_ROM_START + (1024*1024))", + "storage_tdb_internal.internal_size" : "(2*128*1024)", + "update-client.application-details" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE * 2)", + "update-client.bootloader-details" : "0x0800715c", + "update-client.firmware-header-version" : "2", + "update-client.storage-address" : "(MBED_ROM_START + ((8+2)*128*1024))", + "update-client.storage-locations" : 1, + "update-client.storage-size" : "(6*128*1024)" + }, + "NUCLEO_L4R5ZI": { + "target.macros_add" : ["MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config_legacy.h\"","MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\"", "MBED_APP_FLASH_BANK_SIZE=MBED_ROM_SIZE/2", "KVSTORE_SIZE=(32*1024)","ARM_UC_USE_PAL_BLOCKDEVICE=1"], + "target.bootloader_img" : "bootloader/mbed-bootloader-nucleo_l4r5zi-internal_flash_no_rot-ca089bb.bin", + "target.header_offset" : "0x08000", + "target.app_offset" : "0x08400", + "target.restrict_size" : "0xF7C00", + "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP", + "update-client.bootloader-details" : "0x08007cac", + "update-client.application-details" : "(32*1024)", + "update-client.storage-address" : "(MBED_ROM_START + MBED_APP_FLASH_BANK_SIZE + KVSTORE_SIZE)", + "update-client.storage-size" : "(MBED_APP_FLASH_BANK_SIZE - KVSTORE_SIZE)", + "update-client.storage-locations" : 1, + "update-client.storage-page" : 1, + "storage_tdb_internal.internal_base_address": "(MBED_ROM_START+1024*1024)", + "storage_tdb_internal.internal_size" : "KVSTORE_SIZE", + "storage.storage_type" : "TDB_INTERNAL", + "target.network-default-interface-type" : "WIFI", + "esp8266.provide-default" : true, + "esp8266.tx" : "D1", + "esp8266.rx" : "D0", + "esp8266.cts" : "D12", + "esp8266.rts" : "PB_1", + "esp8266.rst" : "D8" + }, + "ARCH_MAX": { + "target.extra_labels_add" : ["PSA"], + "target.macros_add" : ["MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config_legacy.h\"","MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\"","ARM_UC_USE_PAL_BLOCKDEVICE=1"], + "target.network-default-interface-type" : "ETHERNET", + "target.bootloader_img" : "bootloader/mbed-bootloader-arch_max-block_device-kvstore-v4.0.3.bin", + "target.header_offset" : "0x10000", + "target.app_offset" : "0x10400", + "update-client.bootloader-details" : "0x08006FB8", + "update-client.application-details" : "(0x08000000+64*1024)", + "update-client.storage-address" : "(1024*1024*64)", + "update-client.storage-size" : "((MBED_ROM_START + MBED_ROM_SIZE - APPLICATION_ADDR) * MBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS)", + "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP_BLOCKDEVICE", + "storage_filesystem.internal_base_address" : "(0x08000000+32*1024)", + "storage_filesystem.rbp_internal_size" : "(32*1024)", + "storage_filesystem.external_base_address" : "(0x0)", + "storage_filesystem.external_size" : "(1024*1024*64)", + "storage.storage_type" : "FILESYSTEM", + "storage_filesystem.filesystem" : "LITTLE", + "storage_filesystem.blockdevice" : "SD", + "target.lse_available" : 0, + "target.macros_remove" : ["MBEDTLS_CONFIG_HW_SUPPORT"] + }, + "RZ_A1H": { + "target.macros_add" : ["MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config_legacy.h\"","MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS_SW_TRNG.h\"", "MBEDTLS_ENTROPY_NV_SEED", "PAL_USE_HW_TRNG=0","ARM_UC_USE_PAL_BLOCKDEVICE=1"], + "target.bootloader_supported" : true, + "target.network-default-interface-type" : "ETHERNET", + "target.bootloader_img" : "bootloader/mbed-bootloader-gr_peach-internal_flash-no_rot-v4.1.2.bin", + "target.header_offset" : "0x10000", + "target.app_offset" : "0x10400", + "target.restrict_size" : "0xEFC00", + "bootloader-size" : "(64*1024)", + "update-client.bootloader-details" : "0x1800a660", + "update-client.application-details" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", + "update-client.storage-address" : "(MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS+MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", + "update-client.storage-size" : "(4*1024*1024-MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", + "update-client.storage-page" : 1, + "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP", + "storage_tdb_internal.internal_base_address": "(MBED_ROM_START+4*1024*1024)", + "storage_tdb_internal.internal_size" : "(2*24*1024)", + "storage.storage_type" : "TDB_INTERNAL" + }, + "GR_LYCHEE": { + "target.macros_add" : ["MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config_legacy.h\"","MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\"","ARM_UC_USE_PAL_BLOCKDEVICE=1"], + "target.bootloader_supported" : true, + "target.network-default-interface-type" : "WIFI", + "target.components_add" : ["WIFI_ESP32"], + "target.bootloader_img" : "bootloader/mbed-bootloader-gr_lychee-internal_flash-no_rot-v4.1.2.bin", + "target.header_offset" : "0x10000", + "target.app_offset" : "0x10400", + "target.restrict_size" : "0xEFC00", + "bootloader-size" : "(64*1024)", + "update-client.bootloader-details" : "0x1800a468", + "update-client.application-details" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", + "update-client.storage-address" : "(MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS+MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", + "update-client.storage-size" : "(4*1024*1024-MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", + "update-client.storage-page" : 1, + "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP", + "storage_tdb_internal.internal_base_address": "(MBED_ROM_START+4*1024*1024)", + "storage_tdb_internal.internal_size" : "(2*24*1024)", + "storage.storage_type" : "TDB_INTERNAL" + }, + "WIO_3G": { + "target.features_add" : ["LWIP", "STORAGE", "BOOTLOADER"], + "target.macros_add" : ["MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config_legacy.h\"","MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\"","ARM_UC_USE_PAL_BLOCKDEVICE=1"], + "target.device_has_remove" : ["SERIAL_FC"], + "target.network-default-interface-type" : "CELLULAR", + "target.components_add" : ["FLASHIAP"], + "target.bootloader_img" : "bootloader/mbed-bootloader-wio_3g-internal_flash-no_rot-v4.1.2.bin", + "target.header_offset" : "0x8000", + "target.app_offset" : "0x8400", + "target.restrict_size" : "0xF7C00", + "nsapi.default-cellular-plmn" : 0, + "cellular.use-apn-lookup" : false, + "cellular.debug-at" : false, + "lwip.ipv4-enabled" : true, + "lwip.ethernet-enabled" : false, + "lwip.ppp-enabled" : true, + "lwip.tcp-enabled" : true, + "lwip.pbuf-pool-size" : 16, + "lwip.mem-size" : 12500, + "update-client.bootloader-details" : "0x08005ee8", + "update-client.application-details" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", + "update-client.storage-address" : "(MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS+MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", + "update-client.storage-size" : "(1024*1024-MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", + "update-client.storage-page" : 1, + "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP", + "storage_tdb_internal.internal_base_address": "(MBED_ROM_START+1024*1024)", + "storage_tdb_internal.internal_size" : "(32*1024)", + "storage.storage_type" : "TDB_INTERNAL" + }, + "WIO_BG96": { + "target.features_add" : ["LWIP", "STORAGE", "BOOTLOADER"], + "target.macros_add" : ["MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config_legacy.h\"","MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\"","ARM_UC_USE_PAL_BLOCKDEVICE=1"], + "target.network-default-interface-type" : "CELLULAR", + "target.components_add" : ["FLASHIAP"], + "target.bootloader_img" : "bootloader/mbed-bootloader-wio_3g-internal_flash-no_rot-v4.1.2.bin", + "target.header_offset" : "0x8000", + "target.app_offset" : "0x8400", + "target.restrict_size" : "0xF7C00", + "nsapi.default-cellular-plmn" : 0, + "cellular.use-apn-lookup" : false, + "cellular.debug-at" : false, + "lwip.ipv4-enabled" : true, + "lwip.ethernet-enabled" : false, + "lwip.ppp-enabled" : true, + "lwip.tcp-enabled" : true, + "lwip.pbuf-pool-size" : 16, + "lwip.mem-size" : 12500, + "update-client.bootloader-details" : "0x08005ee8", + "update-client.application-details" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)", + "update-client.storage-address" : "(MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS+MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", + "update-client.storage-size" : "(1024*1024-MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", + "update-client.storage-page" : 1, + "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP", + "storage_tdb_internal.internal_base_address": "(MBED_ROM_START+1024*1024)", + "storage_tdb_internal.internal_size" : "(32*1024)", + "storage.storage_type" : "TDB_INTERNAL" + }, + "UHURU_RAVEN": { + "target.macros_remove" : ["MBEDTLS_CONFIG_HW_SUPPORT"], + "target.macros_add" : ["MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config_legacy.h\"","MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\"","ARM_UC_USE_PAL_BLOCKDEVICE=1"], + "target.network-default-interface-type" : "WIFI", + "target.components_add" : ["WIFI_ESP32", "FLASHIAP"], + "target.bootloader_img" : "bootloader/mbed-bootloader-stm32f767-internal_flash-no_rot-v4.1.2.bin", + "target.header_offset" : "0x18000", + "target.app_offset" : "0x18400", + "target.restrict_size" : "0xE7C00", + "esp32.wifi-debug" : false, + "esp32.wifi-en" : "PB_12", + "esp32.wifi-io0" : "PB_13", + "esp32.wifi-tx" : "PB_14", + "esp32.wifi-rx" : "PB_15", + "esp32.provide-default" : true, + "update-client.bootloader-details" : "0x8005d30", + "update-client.application-details" : "(MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", + "update-client.storage-address" : "(MBED_ROM_START + (MBED_ROM_SIZE/2))", + "update-client.storage-size" : "((MBED_ROM_SIZE/2) - MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", + "update-client.storage-locations" : 1, + "update-client.storage-page" : 1, + "update-client.firmware-header-version" : "2", + "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP", + "storage.storage_type" : "TDB_INTERNAL", + "storage_tdb_internal.internal_base_address": "(MBED_ROM_START + 32*1024)", + "storage_tdb_internal.internal_size" : "(32*2*1024)" + }, + "NUCLEO_F767ZI": { + "target.macros_remove" : ["MBEDTLS_CONFIG_HW_SUPPORT"], + "target.macros_add" : ["MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config_legacy.h\"","MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\"","ARM_UC_USE_PAL_BLOCKDEVICE=1"], + "target.network-default-interface-type" : "ETHERNET", + "target.bootloader_img" : "bootloader/mbed-bootloader-stm32f767-internal_flash-no_rot-v4.1.2.bin", + "target.header_offset" : "0x18000", + "target.app_offset" : "0x18400", + "target.restrict_size" : "0xE7C00", + "update-client.bootloader-details" : "0x8005d30", + "update-client.application-details" : "(MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", + "update-client.storage-address" : "(MBED_ROM_START + (MBED_ROM_SIZE/2))", + "update-client.storage-size" : "((MBED_ROM_SIZE/2) - MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", + "update-client.storage-locations" : 1, + "update-client.storage-page" : 1, + "update-client.firmware-header-version" : "2", + "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP", + "storage.storage_type" : "TDB_INTERNAL", + "storage_tdb_internal.internal_base_address": "(MBED_ROM_START + 32*1024)", + "storage_tdb_internal.internal_size" : "(32*2*1024)" + }, + "CY8CPROTO_062_4343W": { + "target.macros_add" : ["MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config_legacy.h\"","MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\"","ARM_UC_DELTAPAAL_WRITE_BUF_SIZE=512","ARM_UC_USE_PAL_BLOCKDEVICE=1"], + "target.network-default-interface-type" : "WIFI", + "target.components_add" : ["QSPIF"], + "target.components_remove" : ["CM0P_SLEEP"], + "target.bootloader_img" : "bootloader/mbed-bootloader-cy8cproto-062-4343w-ext-kvstore-qspi-v4.1.3.bin", + "bootloader-size" : "0x00020000", + "target.header_offset" : "0x00020000", + "target.app_offset" : "0x00020400", + "mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP_BLOCKDEVICE", + "update-client.bootloader-details" : "0x10010B9C", + "update-client.application-details" : "0x10020000", + "update-client.storage-address" : "0x00000000", + "update-client.storage-size" : "0x1C0000", + "update-client.storage-page" : 512, + "storage.storage_type" : "TDB_EXTERNAL", + "storage_tdb_external.blockdevice" : "QSPIF", + "storage_tdb_external.internal_base_address": "0x101E0000", + "storage_tdb_external.rbp_internal_size" : "0x10000", + "storage_tdb_external.external_base_address": "0x00200000", + "storage_tdb_external.external_size" : "4*0x40000", + "target.bootloader_supported" : true, + "target.mbed_rom_start" : "0x10000000", + "target.mbed_rom_size" : "0x00200000", + "target.sectors" : [[268435456, 512]] + } + }, + "config": { + "bootloader-size": { + "help" : "Helper macro to enable calculation of rom regions. target.header_offset and target.app_offset still needs to be calculated manually, though.", + "value" : "(32*1024)", + "macro_name": "MBED_BOOTLOADER_SIZE" + }, + "run-ci": { + "help" : "Configuration item to control the level of CI verification. 0 = ignored, 1 = build-only, 2 = build + E2E tests", + "accepted_values": [0, 1, 2], + "value" : 1 + } + } +} diff --git a/mbed_cloud_client_user_config.h b/mbed_cloud_client_user_config.h index 3a0cb86..462080a 100644 --- a/mbed_cloud_client_user_config.h +++ b/mbed_cloud_client_user_config.h @@ -1,5 +1,5 @@ // ---------------------------------------------------------------------------- -// Copyright 2019 ARM Ltd. +// Copyright 2019-2021 Pelion. // // SPDX-License-Identifier: Apache-2.0 // @@ -33,12 +33,6 @@ #define SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE 512 #endif -/* set flag to enable update support in mbed Cloud client */ -#define MBED_CLOUD_CLIENT_SUPPORT_UPDATE - -/* set download buffer size in bytes (min. 1024 bytes) */ -#define MBED_CLOUD_CLIENT_UPDATE_BUFFER 1024 - #define MBED_CLOUD_DEV_UPDATE_CERT #define MBED_CLOUD_DEV_UPDATE_ID diff --git a/mbed_cloud_client_user_config_legacy.h b/mbed_cloud_client_user_config_legacy.h new file mode 100644 index 0000000..a034358 --- /dev/null +++ b/mbed_cloud_client_user_config_legacy.h @@ -0,0 +1,45 @@ +// ---------------------------------------------------------------------------- +// Copyright 2021 Pelion. +// +// SPDX-License-Identifier: Apache-2.0 +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------- + +#ifndef MBED_CLOUD_CLIENT_USER_CONFIG_LEGACY_H +#define MBED_CLOUD_CLIENT_USER_CONFIG_LEGACY_H + +#define MBED_CLOUD_CLIENT_ENDPOINT_TYPE "default" +#define MBED_CLOUD_CLIENT_LIFETIME 3600 + +// Application can override the default transport mode via `target.macros_add` definition in mbed_app.json. +#if !defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP) && !defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP) && !defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP_QUEUE) +#define MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP +#endif + +#ifdef MBED_CONF_MBED_CLIENT_SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE + #define SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE MBED_CONF_MBED_CLIENT_SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE +#else + #define SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE 512 +#endif + +/* set flag to enable update support in mbed Cloud client */ +#define MBED_CLOUD_CLIENT_SUPPORT_UPDATE + +/* set download buffer size in bytes (min. 1024 bytes) */ +#define MBED_CLOUD_CLIENT_UPDATE_BUFFER 1024 + +#define MBED_CLOUD_DEV_UPDATE_CERT +#define MBED_CLOUD_DEV_UPDATE_ID + +#endif /* MBED_CLOUD_CLIENT_USER_CONFIG_LEGACY_H */ diff --git a/prebuilt-bl/TARGET_DISCO_L475VG_IOT01A/TARGET_BL_QSPIF/mbed-bootloader-95fa885.bin b/prebuilt-bl/TARGET_DISCO_L475VG_IOT01A/TARGET_BL_QSPIF/mbed-bootloader-95fa885.bin new file mode 100755 index 0000000..e14b7e7 Binary files /dev/null and b/prebuilt-bl/TARGET_DISCO_L475VG_IOT01A/TARGET_BL_QSPIF/mbed-bootloader-95fa885.bin differ diff --git a/prebuilt-bl/TARGET_DISCO_L475VG_IOT01A/TARGET_BL_QSPIF/mbed_lib.json b/prebuilt-bl/TARGET_DISCO_L475VG_IOT01A/TARGET_BL_QSPIF/mbed_lib.json new file mode 100644 index 0000000..a7ebc1e --- /dev/null +++ b/prebuilt-bl/TARGET_DISCO_L475VG_IOT01A/TARGET_BL_QSPIF/mbed_lib.json @@ -0,0 +1,26 @@ +{ + "name": "mbed-bootloader-DISCO_L475VG_IOT01A-TARGET_BL_QSPIF", + "target_overrides": { + "*": { + "target.macros_add": [ + "MBED_CONF_STORAGE_STORAGE_TYPE=TDB_INTERNAL", + "MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS=(MBED_ROM_START + 38*1024)", + "MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE=(2*16*1024)", + "MBED_CLOUD_CLIENT_FOTA_BLOCK_DEVICE_TYPE=FOTA_DEFAULT_MBED_OS_BD", + "MBED_CLOUD_CLIENT_FOTA_STORAGE_START_ADDR=(0)", + "MBED_CLOUD_CLIENT_FOTA_STORAGE_SIZE=(((MBED_ROM_START + MBED_ROM_SIZE - APPLICATION_ADDR)/0x1000)*0x1000)" + + ], + "target.bootloader_img": "mbed-bootloader-95fa885.bin", + "target.header_offset" : "0x11800", + "target.app_offset" : "0x11A00", + "target.header_format": [ + ["magic", "const", "32le", "0x5c0253a3"], + ["firmwareSize", "size", "32le", ["application"]], + ["firmwareVersion", "const", "64le", "0x0"], + ["firmwareDigest", "digest", "SHA256", "application"], + ["precursorDigest", "digest", "SHA256", "application"] + ] + } + } +} diff --git a/prebuilt-bl/TARGET_K64F/TARGET_BL_INTERNAL_FLASH/mbed-bootloader-95fa885.bin b/prebuilt-bl/TARGET_K64F/TARGET_BL_INTERNAL_FLASH/mbed-bootloader-95fa885.bin new file mode 100644 index 0000000..bd0fba4 Binary files /dev/null and b/prebuilt-bl/TARGET_K64F/TARGET_BL_INTERNAL_FLASH/mbed-bootloader-95fa885.bin differ diff --git a/prebuilt-bl/TARGET_K64F/TARGET_BL_INTERNAL_FLASH/mbed_lib.json b/prebuilt-bl/TARGET_K64F/TARGET_BL_INTERNAL_FLASH/mbed_lib.json new file mode 100644 index 0000000..126524e --- /dev/null +++ b/prebuilt-bl/TARGET_K64F/TARGET_BL_INTERNAL_FLASH/mbed_lib.json @@ -0,0 +1,28 @@ +{ + "name": "mbed-bootloader-K64F-TARGET_BL_INTERNAL_FLASH", + "target_overrides": { + "*": { + "target.macros_add": [ + "MBED_BOOTLOADER_FLASH_BANK_SIZE=MBED_ROM_SIZE/2", + "MBED_CONF_STORAGE_STORAGE_TYPE=TDB_INTERNAL", + "MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS=(MBED_ROM_START + MBED_BOOTLOADER_FLASH_BANK_SIZE)", + "MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE=(2*16*1024)", + "MBED_CLOUD_CLIENT_FOTA_BLOCK_DEVICE_TYPE=FOTA_INTERNAL_FLASH_MBED_OS_BD", + "MBED_CLOUD_CLIENT_FOTA_STORAGE_START_ADDR=(MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", + "MBED_CLOUD_CLIENT_FOTA_STORAGE_SIZE=(MBED_BOOTLOADER_FLASH_BANK_SIZE - MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)" + + ], + "target.bootloader_img": "mbed-bootloader-95fa885.bin", + "target.header_offset" : "0x8000", + "target.app_offset" : "0x8200", + "target.restrict_size" : "0x77E00", + "target.header_format": [ + ["magic", "const", "32le", "0x5c0253a3"], + ["firmwareSize", "size", "32le", ["application"]], + ["firmwareVersion", "const", "64le", "0x0"], + ["firmwareDigest", "digest", "SHA256", "application"], + ["precursorDigest", "digest", "SHA256", "application"] + ] + } + } +} diff --git a/prebuilt-bl/TARGET_K66F/TARGET_BL_INTERNAL_FLASH/mbed-bootloader-95fa885.bin b/prebuilt-bl/TARGET_K66F/TARGET_BL_INTERNAL_FLASH/mbed-bootloader-95fa885.bin new file mode 100644 index 0000000..06ba5f8 Binary files /dev/null and b/prebuilt-bl/TARGET_K66F/TARGET_BL_INTERNAL_FLASH/mbed-bootloader-95fa885.bin differ diff --git a/prebuilt-bl/TARGET_K66F/TARGET_BL_INTERNAL_FLASH/mbed_lib.json b/prebuilt-bl/TARGET_K66F/TARGET_BL_INTERNAL_FLASH/mbed_lib.json new file mode 100644 index 0000000..710433e --- /dev/null +++ b/prebuilt-bl/TARGET_K66F/TARGET_BL_INTERNAL_FLASH/mbed_lib.json @@ -0,0 +1,28 @@ +{ + "name": "mbed-bootloader-K66F-TARGET_BL_INTERNAL_FLASH", + "target_overrides": { + "*": { + "target.macros_add": [ + "MBED_BOOTLOADER_FLASH_BANK_SIZE=MBED_ROM_SIZE/2", + "MBED_CONF_STORAGE_STORAGE_TYPE=TDB_INTERNAL", + "MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS=(MBED_ROM_START + MBED_BOOTLOADER_FLASH_BANK_SIZE)", + "MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE=(2*48*1024)", + "MBED_CLOUD_CLIENT_FOTA_BLOCK_DEVICE_TYPE=FOTA_INTERNAL_FLASH_MBED_OS_BD", + "MBED_CLOUD_CLIENT_FOTA_STORAGE_START_ADDR=(MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", + "MBED_CLOUD_CLIENT_FOTA_STORAGE_SIZE=(MBED_BOOTLOADER_FLASH_BANK_SIZE - MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)" + + ], + "target.bootloader_img": "mbed-bootloader-95fa885.bin", + "target.header_offset" : "0x8000", + "target.app_offset" : "0x8200", + "target.restrict_size" : "0xF7C00", + "target.header_format": [ + ["magic", "const", "32le", "0x5c0253a3"], + ["firmwareSize", "size", "32le", ["application"]], + ["firmwareVersion", "const", "64le", "0x0"], + ["firmwareDigest", "digest", "SHA256", "application"], + ["precursorDigest", "digest", "SHA256", "application"] + ] + } + } +} diff --git a/prebuilt-bl/TARGET_NUCLEO_F411RE/TARGET_BL_SD/mbed-bootloader-95fa885.bin b/prebuilt-bl/TARGET_NUCLEO_F411RE/TARGET_BL_SD/mbed-bootloader-95fa885.bin new file mode 100644 index 0000000..7ca91f3 Binary files /dev/null and b/prebuilt-bl/TARGET_NUCLEO_F411RE/TARGET_BL_SD/mbed-bootloader-95fa885.bin differ diff --git a/prebuilt-bl/TARGET_NUCLEO_F411RE/TARGET_BL_SD/mbed_lib.json b/prebuilt-bl/TARGET_NUCLEO_F411RE/TARGET_BL_SD/mbed_lib.json new file mode 100644 index 0000000..3bf0d16 --- /dev/null +++ b/prebuilt-bl/TARGET_NUCLEO_F411RE/TARGET_BL_SD/mbed_lib.json @@ -0,0 +1,31 @@ +{ + "name": "mbed-bootloader-NUCLEO_F411RE-TARGET_BL_SD", + "target_overrides": { + "*": { + "target.macros_add": [ + "MBED_CONF_STORAGE_STORAGE_TYPE=FILESYSTEM", + "MBED_CONF_STORAGE_FILESYSTEM_FILESYSTEM=LITTLE", + "MBED_CONF_STORAGE_FILESYSTEM_BLOCKDEVICE=SD", + "MBED_CONF_STORAGE_FILESYSTEM_EXTERNAL_BASE_ADDRESS=0x0", + "MBED_CONF_STORAGE_FILESYSTEM_EXTERNAL_SIZE=(1024*1024*64)", + "MBED_CONF_STORAGE_FILESYSTEM_INTERNAL_BASE_ADDRESS=(MBED_ROM_START+32*1024)", + "MBED_CONF_STORAGE_FILESYSTEM_RBP_INTERNAL_SIZE=(32*1024)", + "MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS=0", + "MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE=0", + "MBED_CLOUD_CLIENT_FOTA_BLOCK_DEVICE_TYPE=FOTA_DEFAULT_MBED_OS_BD", + "MBED_CLOUD_CLIENT_FOTA_STORAGE_START_ADDR=(MBED_CONF_STORAGE_FILESYSTEM_EXTERNAL_SIZE)", + "MBED_CLOUD_CLIENT_FOTA_STORAGE_SIZE=(MBED_ROM_START + MBED_ROM_SIZE - APPLICATION_ADDR)" + ], + "target.bootloader_img": "mbed-bootloader-95fa885.bin", + "target.header_offset" : "0x10000", + "target.app_offset" : "0x10200", + "target.header_format": [ + ["magic", "const", "32le", "0x5c0253a3"], + ["firmwareSize", "size", "32le", ["application"]], + ["firmwareVersion", "const", "64le", "0x0"], + ["firmwareDigest", "digest", "SHA256", "application"], + ["precursorDigest", "digest", "SHA256", "application"] + ] + } + } +} diff --git a/prebuilt-bl/TARGET_NUCLEO_F429ZI/TARGET_BL_INTERNAL_FLASH/mbed-bootloader-95fa885.bin b/prebuilt-bl/TARGET_NUCLEO_F429ZI/TARGET_BL_INTERNAL_FLASH/mbed-bootloader-95fa885.bin new file mode 100644 index 0000000..28ea18d Binary files /dev/null and b/prebuilt-bl/TARGET_NUCLEO_F429ZI/TARGET_BL_INTERNAL_FLASH/mbed-bootloader-95fa885.bin differ diff --git a/prebuilt-bl/TARGET_NUCLEO_F429ZI/TARGET_BL_INTERNAL_FLASH/mbed_lib.json b/prebuilt-bl/TARGET_NUCLEO_F429ZI/TARGET_BL_INTERNAL_FLASH/mbed_lib.json new file mode 100644 index 0000000..cec7ef5 --- /dev/null +++ b/prebuilt-bl/TARGET_NUCLEO_F429ZI/TARGET_BL_INTERNAL_FLASH/mbed_lib.json @@ -0,0 +1,28 @@ +{ + "name": "mbed-bootloader-NUCLEO_F429ZI-TARGET_BL_INTERNAL_FLASH", + "target_overrides": { + "*": { + "target.macros_add": [ + "MBED_BOOTLOADER_FLASH_BANK_SIZE=MBED_ROM_SIZE/2", + "MBED_CONF_STORAGE_STORAGE_TYPE=TDB_INTERNAL", + "MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS=(MBED_ROM_START + MBED_BOOTLOADER_FLASH_BANK_SIZE)", + "MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE=(2*64*1024)", + "MBED_CLOUD_CLIENT_FOTA_BLOCK_DEVICE_TYPE=FOTA_INTERNAL_FLASH_MBED_OS_BD", + "MBED_CLOUD_CLIENT_FOTA_STORAGE_START_ADDR=(MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", + "MBED_CLOUD_CLIENT_FOTA_STORAGE_SIZE=(MBED_BOOTLOADER_FLASH_BANK_SIZE - MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)" + + ], + "target.bootloader_img": "mbed-bootloader-95fa885.bin", + "target.header_offset" : "0x8000", + "target.app_offset" : "0x8200", + "target.restrict_size" : "0xF7C00", + "target.header_format": [ + ["magic", "const", "32le", "0x5c0253a3"], + ["firmwareSize", "size", "32le", ["application"]], + ["firmwareVersion", "const", "64le", "0x0"], + ["firmwareDigest", "digest", "SHA256", "application"], + ["precursorDigest", "digest", "SHA256", "application"] + ] + } + } +}