Super awesome mbed team / Mbed 2 deprecated Flashcounter

Dependencies:   mbed

Fork of Flashcounter by Kris Scholte Lubberink

Files at this revision

API Documentation at this revision

Comitter:
krissl
Date:
Wed Nov 07 16:04:42 2018 +0000
Parent:
0:7460f6983ba2
Commit message:
PUB

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Oct 18 12:10:32 2018 +0000
+++ b/main.cpp	Wed Nov 07 16:04:42 2018 +0000
@@ -46,7 +46,11 @@
         determineValues();
 
         uint8_t *data_flashed = new uint8_t[8];
-
+        uint8_t buffer[8];
+        flash_device.read(buffer, address, 8);
+        packed_A const *ptr = (packed_A const *) buffer;
+        printf("%d", ptr->magic)
+        
         packed_A readMemory;
 
         flash_device.read(data_flashed, address, 8);