diff --git a/README.md b/README.md index 2f4f408..f566364 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ Board | Connectivity | Storage for credentials and `ST NUCLEO_F411RE` | Wi-Fi ESP8266 | SD card | `Ublox UBLOX_EVK_ODIN_W2` | Wi-Fi | SD card | `ST DISCO_L475VG_IOT01A` | Wi-Fi | QSPIF | +`Nuvoton NUMAKER_PFM_NUC472` | Ethernet | SD card (NUSD) | Build-only = This target is currently verified only via compilation, and is not verified at runtime. diff --git a/bootloader/mbed-bootloader-nuc472-block_device-kvstore-v4.1.0.bin b/bootloader/mbed-bootloader-nuc472-block_device-kvstore-v4.1.0.bin new file mode 100644 index 0000000..5234adf Binary files /dev/null and b/bootloader/mbed-bootloader-nuc472-block_device-kvstore-v4.1.0.bin differ diff --git a/drivers/storage/COMPONENT_NUSD.lib b/drivers/storage/COMPONENT_NUSD.lib new file mode 100644 index 0000000..e880349 --- /dev/null +++ b/drivers/storage/COMPONENT_NUSD.lib @@ -0,0 +1 @@ +https://github.com/OpenNuvoton/NuMaker-mbed-SD-driver/#56406071a4468a8302c0717a4467a241d152ade2 diff --git a/mbed_app.json b/mbed_app.json index b1d560e..0af340f 100644 --- a/mbed_app.json +++ b/mbed_app.json @@ -133,6 +133,30 @@ "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.h\""] + }, "DISCO_L475VG_IOT01A": { "target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\""], "target.network-default-interface-type" : "WIFI",