FRAM Dump Utility
Dependencies: MB85RSxx_SPI mbed
FRAM Dump Utility
This utility is for a one of the memory dump tool what SPI based on FRAM(MB85RS64).
You can use terminal application as UART port with your Mbed.
Here is shown example of the FRAM memory dump. You can modify the address range in source code. The sample code is shown address from 0 to 0x9F.
Please try it!
--------------------
FRAM Dump Utility
FRAM Status 0
* FRAM Read Operation *
Address :00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
Address 0000 :DD C8 00 C0 AA 00 00 00 CC 00 00 00 00 00 00 00
Address 0010 :55 7D 76 65 72 61 67 65 73 22 3A 31 32 34 35 37
Address 0020 :31 38 7D 00 00 00 00 00 00 00 00 00 00 00 00 00
Address 0030 :00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Address 0040 :00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Address 0050 :00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Address 0060 :00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Address 0070 :00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Address 0080 :00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Address 0090 :00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
FRAM Dump Done
Revision 1:10e313f8fd57, committed 2017-08-18
- Comitter:
- APS_Lab
- Date:
- Fri Aug 18 05:27:42 2017 +0000
- Parent:
- 0:97181dcb9c01
- Commit message:
- FRAM Dump Utility for Nucleo SPI3(Morpho connector).
Changed in this revision
MB85RSxx_SPI.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 97181dcb9c01 -r 10e313f8fd57 MB85RSxx_SPI.lib --- a/MB85RSxx_SPI.lib Thu Jun 22 08:34:50 2017 +0000 +++ b/MB85RSxx_SPI.lib Fri Aug 18 05:27:42 2017 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/APS_Lab/code/MB85RSxx_SPI/#c31c06ec36da +https://developer.mbed.org/users/APS_Lab/code/MB85RSxx_SPI/#9a0f9faada7f
diff -r 97181dcb9c01 -r 10e313f8fd57 main.cpp --- a/main.cpp Thu Jun 22 08:34:50 2017 +0000 +++ b/main.cpp Fri Aug 18 05:27:42 2017 +0000 @@ -1,35 +1,22 @@ #include "mbed.h" #include "MB85RSxx_SPI.h" + -MB85RSxx_SPI fram(D4, D5, D3, D6); +MB85RSxx_SPI fram(PC_12, PC_11, PC_10, PD_2); int main() { - char r_data=0, data=0; - int cnt, addr, idx, cnt1, idx1; + char r_data=0; + int addr, cnt1, idx1; printf("\nFRAM Dump Utility\n"); fram.Init(); - - addr=0; - - //printf("\n*** FRAM Write Operation ***\n"); - //printf("Address :00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F\n"); - //for(idx=0; idx < 512; idx++) - //{ - //printf("Address %03d :", idx); - // for(cnt=0; cnt< 16;cnt++) - // { - // fram.write(addr, data); - //printf("%04X -> %02X \n", addr+cnt+idx, data); - // addr++; - // data++; - // } - //printf("\n"); - //} + printf("\n*** FRAM Read Operation ***\n"); printf("Address :00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F\n"); addr=0; - for(idx1=0; idx1 < 512; idx1++) + + // You can change loop count. + for(idx1=0; idx1 < 10; idx1++) { printf("Address %04d :", idx1*10); for(cnt1=0; cnt1< 16;cnt1++)