- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I've added below led test function to cyfxssrammaster.c.
static void
my_led (int loop, int time)
{
for (int a = 0; a < loop; a = a + 1)
{
CyU3PGpioSetValue (LED_GPIO, CyFalse); /* Turn LED-ON */
CyU3PThreadSleep (time); /* ON-time */
CyU3PGpioSetValue (LED_GPIO, CyTrue); /* Turn LED-OFF */
CyU3PThreadSleep (time); /* OFF-time */
}
}
After firmware is loaded, I can see LED is blinking. Basically proved LED test code and HW are good.
But if I add my_led to SRAM_READ_COMMAND, led is not blinking.
This indicates SRAM_READ_COMMAND is never run.
My question is how to make the firmware run SRAM_READ_COMMAND?
Solved! Go to Solution.
- Tags:
- firmware
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Please note that SRAM_READ_COMMAND is a vendor command used in the SRAMMaster project. To invoke the part of the code under this command, the corresponding vendor request should be issued from the host. Please see the attached screenshot inc which the Cypress USB Control Center issues the vendor request 0xBB which corresponds to SRAM_READ_COMMAND.
After the completion of vendor command, the data from the SRAM can be read into the host over the BULK IN endpoint.
Best regards,
Srinath S