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.
Revision 0:93e3f35567a5, committed 2018-05-22
- Comitter:
- shivanandgowdakr
- Date:
- Tue May 22 10:45:08 2018 +0000
- Commit message:
- Static RAM 256 kilo bytes using SPI single IO Serial SRAM; Simple Read Write Operations of SRAM Hello world example
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.gitignore Tue May 22 10:45:08 2018 +0000 @@ -0,0 +1,4 @@ +.build +.mbed +projectfiles +*.py*
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.md Tue May 22 10:45:08 2018 +0000 @@ -0,0 +1,57 @@ +# Getting started with Blinky on mbed OS + +This guide reviews the steps required to get Blinky working on an mbed OS platform. + +Please install [mbed CLI](https://github.com/ARMmbed/mbed-cli#installing-mbed-cli). + +## Import the example application + +From the command-line, import the example: + +``` +mbed import mbed-os-example-blinky +cd mbed-os-example-blinky +``` + +### Now compile + +Invoke `mbed compile`, and specify the name of your platform and your favorite toolchain (`GCC_ARM`, `ARM`, `IAR`). For example, for the ARM Compiler 5: + +``` +mbed compile -m K64F -t ARM +``` + +Your PC may take a few minutes to compile your code. At the end, you see the following result: + +``` +[snip] ++----------------------------+-------+-------+------+ +| Module | .text | .data | .bss | ++----------------------------+-------+-------+------+ +| Misc | 13939 | 24 | 1372 | +| core/hal | 16993 | 96 | 296 | +| core/rtos | 7384 | 92 | 4204 | +| features/FEATURE_IPV4 | 80 | 0 | 176 | +| frameworks/greentea-client | 1830 | 60 | 44 | +| frameworks/utest | 2392 | 512 | 292 | +| Subtotals | 42618 | 784 | 6384 | ++----------------------------+-------+-------+------+ +Allocated Heap: unknown +Allocated Stack: unknown +Total Static RAM memory (data + bss): 7168 bytes +Total RAM memory (data + bss + heap + stack): 7168 bytes +Total Flash memory (text + data + misc): 43402 bytes +Image: .\.build\K64F\ARM\mbed-os-example-blinky.bin +``` + +### Program your board + +1. Connect your mbed device to the computer over USB. +1. Copy the binary file to the mbed device. +1. Press the reset button to start the program. + +The LED on your platform turns on and off. + +## Troubleshooting + +If you have problems, you can review the [documentation](https://os.mbed.com/docs/latest/tutorials/debugging.html) for suggestions on what could be wrong and how to fix it.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/S2568FBLL.lib Tue May 22 10:45:08 2018 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/shivanandgowdakr/code/S2568FBLL/#7d8adf80c30d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue May 22 10:45:08 2018 +0000
@@ -0,0 +1,58 @@
+
+// SPI Single IO NOR sram Library for Nucleo F767ZI Interfacing
+
+
+
+#include "mbed.h"
+#include "S2568FBLL.h"
+#include <string>
+
+Serial pc(USBTX, USBRX); // tx, rx
+
+int main()
+{
+ S2568FBLL sram(PA_7, PA_6, PA_5, PA_4,PA_3);
+ pc.printf("SPI init done\r\n\r\n");
+
+ // Read Identification information Related to chip.
+
+
+ // Reading sram Memory Status Register1 contents.
+
+ uint8_t MODE_REGISTER= sram.readRegister();
+ pc.printf(" MODE REGISTER CONTENTS:%X\r\n\r\n",MODE_REGISTER);
+
+ wait(1);
+
+
+
+
+
+
+// write a stream of characters to arbitrary address 0x168
+ char stri[] = "Shivanand Gowda Ramaiah";
+
+ pc.printf("Writing String Here: %s\r\n",stri);
+
+
+ sram.writeStream(0x00, stri, 22); //Writing Strings in three Differnt addresses.
+ sram.writeStream(22, stri, 22);
+ sram.writeStream(44, stri, 22);
+
+
+ char str2[22] = {0};
+ char str3[22] = {0};
+ char str4[22] = {0};
+
+ pc.printf("Before String Here: %s\r\n",str2);
+ sram.readStream(0x00, str2, 22);
+ pc.printf("After Read 1 String Here: %s\r\n",str2);
+ sram.readStream(22, str4, 22);
+ pc.printf("After Read 2 String Here: %s\r\n",str2);
+ sram.readStream(44, str3, 22);
+ pc.printf("After Read 3 String Here: %s\r\n",str2);
+
+ pc.printf("Exited from program \r\n");
+ return 0;
+
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Tue May 22 10:45:08 2018 +0000 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os/#ae6c7c60f91c89cbf755a2f3c8ec9c66635849fd