Skip to content

Commit 369a754

Browse files
author
Jammu Kekkonen
committed
Add drivers and configuration for DISCO_L475VG_IOT01A target.
Missing required Mbed-os 5.14 and bootloader.
1 parent d41eed5 commit 369a754

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

drivers/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: 28 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
],
98
"target_overrides": {
@@ -134,6 +133,34 @@
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.network-default-interface-type" : "WIFI",
139+
"target.bootloader_img" : "bootloader/mbed-bootloader-disco_l475vg_iot01a-internal_qspif-kvstore-unofficial.bin",
140+
"target.header_offset" : "0x11800",
141+
"target.app_offset" : "0x11C00",
142+
"target.components_add" : ["QSPIF"],
143+
"bootloader-size" : "(38*1024)",
144+
"ism43362.read-thread-stack-size" : 1024,
145+
"mbed-client-pal.pal-max-frag-len" : 1,
146+
"mbed-cloud-client.update-storage" : "ARM_UCP_FLASHIAP_BLOCKDEVICE",
147+
"storage.storage_type" : "TDB_INTERNAL",
148+
"storage_tdb_internal.internal_base_address": "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)",
149+
"storage_tdb_internal.internal_size" : "(2*16*1024)",
150+
"update-client.application-details" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE + MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)",
151+
"update-client.bootloader-details" : "0x08000000",
152+
"update-client.firmware-header-version" : "2",
153+
"update-client.storage-address" : "0",
154+
"update-client.storage-locations" : 1,
155+
"update-client.storage-page" : 256,
156+
"update-client.storage-size" : "((MBED_ROM_START + MBED_ROM_SIZE - APPLICATION_ADDR) * MBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS)"
157+
}
158+
},
159+
"config": {
160+
"bootloader-size": {
161+
"help" : "Helper macro to enable calculation of rom regions. target.header_offset and target.app_offset still needs to be calculated manually, though.",
162+
"value" : "(32*1024)",
163+
"macro_name": "MBED_BOOTLOADER_SIZE"
137164
}
138165
}
139166
}

mbed_cloud_client_user_config.h

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

26+
#ifdef TARGET_DISCO_L475VG_IOT01A
27+
#define SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE 256
28+
#else
2629
#define SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE 512
30+
#endif
31+
2732

2833
/* set flag to enable update support in mbed Cloud client */
2934
#define MBED_CLOUD_CLIENT_SUPPORT_UPDATE

0 commit comments

Comments
 (0)