- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello.
Now I am looking at an example for a CYUSB3KIT-003 kit.
The example is called SRAM.
"3.6.2 SRAM Example"
In source code there is example of reading from memory(file "cyfxsram.c").
CyU3PDebugPrint(4,"Read\n\r");
apiRetStatus = CyU3PGpifSMSwitch (256, START1, 256, 0, 0);
if(apiRetStatus != CY_U3P_SUCCESS)
{
CyU3PDebugPrint (CY_FX_DEBUG_PRIORITY, "CyU3PGpifSMSwitch failed, Error code = %d\r\n", apiRetStatus);
}
CyU3PUsbAckSetup ();
isHandled = CyTrue;
But there is no example of writing to memory.
Tell me, is it so?
How can I write to memory?
Solved! Go to Solution.
- Labels:
-
ispn:38621:1:0
-
l1:314:1:0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
-- Is it possible to write data to memory not by transferring it from a computer, but from the microcontroller itself?
Yes it is possible. Whenever you want to write to SRAM you have to invoke the GPIF SM with WRITE state.
--Is the entire size of its memory available (8 mbytes)?
It depends upon the counter values set in the GPIF designer tool.
Thanks & Regards
Abhinav