Trouble with FileX in SSP 1.2.0

I recently upgraded my software on S7G2-DK from SSP 1.1.3 to SSP 1.2.0, and I'm still having trouble with FileX on sdmmc. (Whereas with old SSP 1.1.3 all works fine). Issue description:
High level function call that is failing, returning with FX_IO_ERROR:
    uint32_t fx_ret_val;

    fx_ret_val = fx_media_open(&g_fx_media, "g_fx_media", SF_EL_FX_BlockDriver,
          &g_sf_el_fx_cfg, g_media_memory_g_fx_media,
          sizeof(g_media_memory_g_fx_media));
          
Low level function call that is failing, returning false:
    scr_get(p_ctrl);
    
After the above function is failing, no communication is possible with the SD card.

This problem is not related specifically to the ACMD51 (send scr command), but rather to any command which asks the card to send some data on the DAT lines. Simple commands (command written on CMD line, response received on CMD line) are working

I paste my FileX configuration, sdmmc configuration and the call stack when I fall into the issue.

.

Regards.

  • HI Yvelain,

    Can you check if changing the transfer driver to DMA solves this issue?

    Regards,
    adboc
  • In reply to adboc:

    Thanks for you quick answer but I checked this proposal, no improvement, same status as before :(
  • In reply to Yvelain:

    Hi Yvelain,

    Can you check another SD card? I tried to reproduce the issue, but my project works as expected with both DTC and DMA. How much memory has the card? Is it SDHC or SDXC? How did you configured pins for SDHI0?

    Regards,
    adboc
  • In reply to adboc:

    I checked with 2 SD cards, both SDHC (1GB and 8GB). pin configuration is attached (for SDHI controller and all related pins)

     

  • In reply to Yvelain:

    Hi Yvelain,

    The configuration seems to be correct. Make sure that S101 switch for SD is enabled, and for MMC and ENET0 are disabled. You can also check if the main and the breakout boards are connected properly.

    Regards,
    adboc
  • In reply to Yvelain:

    HI Yvelain,

    Change all Pins connected with the SD Card to Drive Capacity High and test if this helps.
    I've had this issue when testing teh SD Card on the Development Kit DK S7-G2

    Regards,
    Heinz
  • In reply to HN66:

    Hi all,

    So even if I try your both suggestions, I'm not able to have something at work and I fall into the same issue.

    Can you send me your project ?

    Regards.

    Yvelain

  • In reply to Yvelain:

    Hi,

     

    Here's my project:

     

    S7_DK_SD_Card_1_2_0.zip

     

    It uses semihosting but you can also check the contents of the g_read_buffer after setting a breakpoint in debug mode. You should see "This is a test." string in this buffer.

     

    Regards,

    adboc

  • In reply to adboc:

    Hi,

    it doesn't work on my board, exactly the same problem.

    I take a picture of my board, is it the same of yours ?

    Regards.

  • In reply to Yvelain:

    Hello Yvelain,

    If your motherboard and baseboard are both DK-S7G2 v3.0 or higher, then the board compatibility shouldn't be a problem. This may not be the root cause of your problem, but make sure that the media is not exFAT-formatted, as FileX on Synergy does not include exFAT support (which involved additional licensing fee from Microsoft). Only FAT12/16/32 is supported.

    Regards
  • In reply to Renesas Karol:

    Hi,
    After investigation your example works on other dev kit, so it seems to be an hardware issue.
    Thanks for your support.
    Regards.
    Yvelain