Skip to content

Commit 9c6cc7e

Browse files
author
Jammu Kekkonen
authored
Merge pull request #15 from ARMmbed/add_discol475vgiot01a_support
Add drivers and configuration for DISCO_L475VG_IOT01A target.
2 parents 54daa9f + 5950820 commit 9c6cc7e

File tree

4 files changed

+39
-2
lines changed

4 files changed

+39
-2
lines changed
Binary file not shown.

drivers/COMPONENT_WIFI_ISM43362.lib

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://github.com/ARMmbed/wifi-ism43362/#1c040113be0fe2a14c4b6107e1db3ec24e8b20b6

mbed_app.json

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"MBED_TRACE_MAX_LEVEL=TRACE_LEVEL_INFO",
44
"MBED_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\"",
55
"MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\"",
6-
"MBED_BOOTLOADER_SIZE=(32*1024)",
76
"ARM_UC_USE_PAL_BLOCKDEVICE=1",
87
"PAL_PLATFORM_DEFINED_CONFIGURATION=\"mbedOS_SST.h\"",
98
"PAL_USER_DEFINED_CONFIGURATION=\"mbedOS_SST.h\""
@@ -134,6 +133,39 @@
134133
"sd.SPI_MISO" : "PC_2",
135134
"sd.SPI_CLK" : "PC_7",
136135
"sd.SPI_CS" : "PB_9"
136+
},
137+
"DISCO_L475VG_IOT01A": {
138+
"target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\""],
139+
"target.network-default-interface-type" : "WIFI",
140+
"target.bootloader_img" : "bootloader/mbed-bootloader-disco_l475vg_iot01a-external_kvstore-qspif.bin",
141+
"target.header_offset" : "0x11000",
142+
"target.app_offset" : "0x11400",
143+
"target.components_add" : ["QSPIF", "WIFI_ISM43362"],
144+
"bootloader-size" : "(36*1024)",
145+
"ism43362.read-thread-stack-size" : 1024,
146+
"mbed-client-pal.pal-max-frag-len" : 1,
147+
"mbed-client.sn-coap-max-blockwise-payload-size": 256,
148+
"mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP_BLOCKDEVICE",
149+
"storage.storage_type" : "FILESYSTEM",
150+
"storage_filesystem.filesystem" : "LITTLE",
151+
"storage_filesystem.blockdevice" : "QSPIF",
152+
"storage_filesystem.external_size" : "(1024 * 1024)",
153+
"storage_filesystem.external_base_address" : "(0)",
154+
"storage_filesystem.rbp_internal_size" : "(32 * 1024)",
155+
"storage_filesystem.internal_base_address" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)",
156+
"update-client.application-details" : "(MBED_CONF_STORAGE_FILESYSTEM_INTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_FILESYSTEM_RBP_INTERNAL_SIZE)",
157+
"update-client.bootloader-details" : "0x800882c",
158+
"update-client.firmware-header-version" : "2",
159+
"update-client.storage-address" : "(MBED_CONF_STORAGE_FILESYSTEM_EXTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_FILESYSTEM_EXTERNAL_SIZE)",
160+
"update-client.storage-locations" : 1,
161+
"update-client.storage-size" : "((MBED_ROM_START + MBED_ROM_SIZE - APPLICATION_ADDR) * MBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS)"
162+
}
163+
},
164+
"config": {
165+
"bootloader-size": {
166+
"help" : "Helper macro to enable calculation of rom regions. target.header_offset and target.app_offset still needs to be calculated manually, though.",
167+
"value" : "(32*1024)",
168+
"macro_name": "MBED_BOOTLOADER_SIZE"
137169
}
138170
}
139171
}

mbed_cloud_client_user_config.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
#define MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP
2424
#define MBED_CLOUD_CLIENT_LIFETIME 3600
2525

26-
#define SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE 512
26+
#ifdef MBED_CONF_MBED_CLIENT_SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE
27+
#define SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE MBED_CONF_MBED_CLIENT_SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE
28+
#else
29+
#define SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE 512
30+
#endif
2731

2832
/* set flag to enable update support in mbed Cloud client */
2933
#define MBED_CLOUD_CLIENT_SUPPORT_UPDATE

0 commit comments

Comments
 (0)