Skip to main content
RMora.4
Associate III
December 7, 2021
Solved

FreeMarker template error when generating code with CubeMX and enabling SDMMC2 with FATFS

  • December 7, 2021
  • 3 replies
  • 2574 views

0693W00000Hnnn8QAB.pngThis can be reproduced by starting a new CubeMX project using reference MCU STM32L4P5ZGTx and firmware package STM32Cube FW_L4 V1.17.0. Start by enabling SDMMC2 (4 bit wide bus mode) and FATFS (SD card mode with SDMMC instance set to SDMMC2, any GPIO pin will do for platform setting). Anyone have an idea for a work around or if this will be fixed on CubeMX? I'm attaching my .ioc for completeness.

This topic has been closed for replies.
Best answer by Sara BEN HADJ YAHYA

Hello @RMora.4​ ,

This issue is fixed in STM32CubeMX latest release.

V6.6.0 is now available under this Link.

Thanks for your contribution.

Sara.

3 replies

Sara BEN HADJ YAHYA
Technical Moderator
December 14, 2021

Hello @RMora.4​ ,

Thanks for your feedback,

You are right, the FreeMarker template error should not be occurred when SDMMC2 is used with FatFS. For the time being, you can avoid this error by using SDMMC1 instead of SDMMC2 with FatFS or you can just enable SDMMC1 and keep using SDMMC2.

I have raised this issue internally to be fixed as soon as possible. I'll keep you posted with the updates.

Sorry for any inconvenience that this may cause.

If you issue is solved, please close this post by clicking the "Select as Best" button. This will help other members of the community find this response more quickly :)

Regards,

Sara.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
Sara BEN HADJ YAHYA
Technical Moderator
June 29, 2022

Hello @RMora.4​ ,

This issue is fixed in STM32CubeMX latest release.

V6.6.0 is now available under this Link.

Thanks for your contribution.

Sara.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
RMora.4
RMora.4Author
Associate III
July 16, 2022

Thanks for following up. Glad to hear this issue was resolved.