Toyomasa Watarai / Mbed OS Pelion-dm-example-DISCO_L475_IOT

Fork of example-DISCO_L475_IOT-mbed-Cloud-connect by ST

Files at this revision

API Documentation at this revision

Comitter:
MACRUM
Date:
Tue Nov 06 07:16:56 2018 +0000
Parent:
10:0b85f5df5d99
Commit message:
Fix default blockdevice

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
mbed_app.json Show annotated file Show diff for this revision Revisions of this file
qspi-blockdevice.lib Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Nov 05 13:57:40 2018 +0000
+++ b/main.cpp	Tue Nov 06 07:16:56 2018 +0000
@@ -19,6 +19,7 @@
 #include "mbed.h"
 #include "simple-mbed-cloud-client.h"
 #include "FATFileSystem.h"
+#include "QSPIFBlockDevice.h"
 
 // An event queue is a very useful structure to debounce information between contexts (e.g. ISR and normal threads)
 // This is great because things such as network operations are illegal in ISR, so updating a resource in a button's fall() function is not allowed
@@ -28,7 +29,9 @@
 NetworkInterface *net;
 
 // Default block device
-BlockDevice* bd = BlockDevice::get_default_instance();
+//BlockDevice* bd = BlockDevice::get_default_instance();
+QSPIFBlockDevice qspif(PE_12, PE_13, PE_14, PE_15, PE_10, PE_11, 0, 8000000);
+BlockDevice* bd = &qspif;
 FATFileSystem fs("sd", bd);
 
 // Declaring pointers for access to Pelion Client resources outside of main()
@@ -109,7 +112,7 @@
         fs.format(bd);
     }
 
-    printf("Starting Simple Pelion Device Management Client example\n");
+    printf("Starting Simple Pelion Device Management Client example (2)\n");
     printf("Connecting to the network using Wifi...\n");
 
     // Connect to the internet (DHCP is expected to be on)
--- a/mbed-os.lib	Mon Nov 05 13:57:40 2018 +0000
+++ b/mbed-os.lib	Tue Nov 06 07:16:56 2018 +0000
@@ -1,1 +1,1 @@
-https://github.com/ARMmbed/mbed-os/#c53d51fe9220728bf8ed27afe7afc1ecc3f6f5d7
+https://github.com/ARMmbed/mbed-os/#ed7fe215002a9c50452acfecda633ce47e00c614
--- a/mbed_app.json	Mon Nov 05 13:57:40 2018 +0000
+++ b/mbed_app.json	Tue Nov 06 07:16:56 2018 +0000
@@ -33,6 +33,7 @@
             "sotp-section-2-address"            : "(0x08000000+((1024-2)*1024))",
             "sotp-section-2-size"               : "(2*1024)",
             "sotp-num-sections"                 : 2,
+            "update-client.storage-size"        : "(1024*1024*8)",
             "update-client.application-details" : "(0x08000000+64*1024)",
             "update-client.bootloader-details"  : "0x08009260"
         },
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/qspi-blockdevice.lib	Tue Nov 06 07:16:56 2018 +0000
@@ -0,0 +1,1 @@
+https://github.com/BlackstoneEngineering/qspi-blockdevice/#a647214121d6495e870ea45951499bcac26b3c04