infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 3 of 3

Thread: SDMMC app upgrade issues (4.0.22 -> 4.3.22

  1. #1
    Beginner Beginner rephlex303 is on a distinguished road
    Join Date
    Feb 2017
    Posts
    2
    Points
    50

    SDMMC app upgrade issues (4.0.22 -> 4.3.22

    Hi,
    I have an XMC 1404 connected to a SD card via the SPI bus.

    I'm using the standard FATFS App with the default main and configurations as described in the FATFS help documentation.

    I've upgraded the SDMMC_BLOCK app from version "4.0.22" to version "4.3.22" and the code no longer compiles.

    the lines:
    Code:
    #if (UC_SERIES != XMC45)
      XMC_SDMMC_SetWriteProtectionSource(XMC_SDMMC, XMC_SDMMC_WP_SOURCE_SW);
      XMC_SDMMC_SetWriteProtectionStatus(XMC_SDMMC, XMC_SDMMC_WP_STATUS_NO_WRITE_PROTECTION);
    #endif
    have been adde to "sdmmc_block_conf.c".

    If I remove them then the code compiles as normal, however each time I generate the code they get added back in again.
    What am I doing wrong?

    Cheers,
    Nick

  2. #2

    Infineon Employee
    Infineon Employee
    jferreira will become famous soon enough
    Join Date
    Oct 2012
    Posts
    421
    Hi,

    The code you mentioned should not be generated for XMC1 family.
    It is a bug in the SDMMC_BLOCK APP v.4.0.24.

    Use the attached fixed version. To install it:
    1. Download and unzip the update site.
    2. Use menu Help>Install DAVE APP/Example/Device Libray...
    3. Click on Add.. and then in Local button
    4. Browse to the folder where you unzip the update site. Select the folder containing the update site. Click Ok
    Click image for larger version

Name:	sdmmc_update1.png
Views:	0
Size:	37.1 KB
ID:	3672
    5. Select the SDMMC_BLOCK APP. Click Next
    Click image for larger version

Name:	sdmmc_update2.png
Views:	1
Size:	21.6 KB
ID:	3673
    6. Step through the rest of the dialogs, and after a restart the new version of the SDMMC_BLOCK will be available.
    7. You should be able to upgrade your project. Select to upgrade including beta versions
    Click image for larger version

Name:	sdmmc_update3.png
Views:	0
Size:	9.7 KB
ID:	3674

    Hope this helps until the release of new version of the APP.
    Otherwise, are you using the LED/write protection? If not please deselect them. It will also fix the issue.

    Regards,
    Jesus
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  3. #3
    Beginner Beginner rephlex303 is on a distinguished road
    Join Date
    Feb 2017
    Posts
    2
    Points
    50
    Thanks for that Jesus, I have removed the LED signal and it works perfectly. I might need to reinable it at some point in the future but by then a new version of the app will be released. I couldn't actually see your attached version of the APP. Thanks,
    Nick

+ Reply to Thread
Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.