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: MB85RSxx_SPI mbed
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 |
--- 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
--- 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++)