I want to write data to eMMC using gpiftoStorage example file

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

cross mob
kiyo_1490531
Level 1
Level 1

GPIF is set to Async SRAM interface.

pastedImage_0.png

The MCU (DSP) is programmed as follows, but does not write data from the FX3S to the eMMC memory.

eMMC memory clock and data does not change.

Please. Tell me what went wrong in the MCU (DSP) program.

/* Break the request data into bytes. */

*(volatile Uint16 *)(0x280000 + (0x0000 * 2)) = 0x0600;

*(volatile Uint16 *)(0x280000 + (0x0000 * 2)) = 0x0000;

*(volatile Uint16 *)(0x280000 + (0x0000 * 2)) = 0x0100;

*(volatile Uint16 *)(0x280000 + (0x0000 * 2)) = 0x0000;

DELAY_US(1000);

/* 512byte Write */

int s = 0;

for(s=0;s<512;s++)

{

       DELAY_US(1);

      *(volatile Uint16 *)(0x280000 + (0x0000 * 2)) = s;

      DELAY_US(1);

}

0 Likes
1 Reply
KandlaguntaR_36
Moderator
Moderator
Moderator
25 solutions authored 10 solutions authored 5 solutions authored

In GpiftoStorage example, we have used the Async Admux. The external process writes the commands to Mailbox registers.

As per the commands we do write and reads to/from SD/MMC cards.

Please let me know why did you go for Async SRAM interface and also share your firmware for the review.

0 Likes