Why SRAM_READ_COMMAND is never run?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
doch_3739346
Level 4
Level 4

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?

pastedImage_1.png

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
SrinathS_16
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

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

View solution in original post

0 Likes
5 Replies