Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of Flashcounter by
Revision 1:a201f2861b94, committed 2018-11-07
- 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);