Skip to content

Add drivers and configuration for DISCO_L475VG_IOT01A target. #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
1 change: 1 addition & 0 deletions drivers/COMPONENT_WIFI_ISM43362.lib
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/ARMmbed/wifi-ism43362/#1c040113be0fe2a14c4b6107e1db3ec24e8b20b6
34 changes: 33 additions & 1 deletion mbed_app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"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\"",
"MBED_BOOTLOADER_SIZE=(32*1024)",
"ARM_UC_USE_PAL_BLOCKDEVICE=1",
"PAL_PLATFORM_DEFINED_CONFIGURATION=\"mbedOS_SST.h\"",
"PAL_USER_DEFINED_CONFIGURATION=\"mbedOS_SST.h\""
Expand Down Expand Up @@ -134,6 +133,39 @@
"sd.SPI_MISO" : "PC_2",
"sd.SPI_CLK" : "PC_7",
"sd.SPI_CS" : "PB_9"
},
"DISCO_L475VG_IOT01A": {
"target.macros_add" : ["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.bin",
"target.header_offset" : "0x11000",
"target.app_offset" : "0x11400",
"target.components_add" : ["QSPIF", "WIFI_ISM43362"],
"bootloader-size" : "(36*1024)",
"ism43362.read-thread-stack-size" : 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" : "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)"
}
},
"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"
}
}
}
6 changes: 5 additions & 1 deletion mbed_cloud_client_user_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
#define MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP
#define MBED_CLOUD_CLIENT_LIFETIME 3600

#define SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE 512
#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
Expand Down