2018-07-10 09:35 AM
I have tracked down another oversight using CubeMX to generate FatFs code for STM32H743i_Eval.
In the STM32Cube\Repository\STM32Cube_FW_H7_V1.2.0\Projects\STM32H743I_EVAL\Applications\FatFs\FatFs_uSD_DMA_RTOS I found in stm32h7xx_hal_conf.h at line 172:
#define USE_SD_TRANSCEIVER 1U /*!< use uSD Transceiver */
This is missing from the CubeMX generated version of stm32h7xx_hal_conf.h for the STM32H743i_Eval board.
After inserting the missing define in the hal config file, the SD card still is not responding but at least the direction bit in SDMMCx->CLKCR is being set correctly in the SDMMC_Init function in the low level driver code.
If there is a switch for this in the CubeMX program, please do let me know where to find it, but it seems to me this should have been selected automatically when the _Eval board was selected since the transceiver is part of the hardware.
2018-07-10 11:08 AM
Is it generating all the additional pin configuration code?
2018-07-10 02:14 PM
The CubeMX generated code specific to the SD card (and hence transceiver) is very sparse and is only setting up the GPIO characteristics as far as I can tell. I do not see any code that is specific to the transceiver chip.
2018-07-11 08:45 AM
Hi
greenwood.greg
,Are you using the most updated version of STM32CubeMX tool (4.0)?
Khouloud.
2018-07-11 11:06 AM
I have a port working on the NUCLEO-H743ZI, admittedly not using Free RTOS at this point, but without the transceiver.
2018-07-11 11:14 AM
I&39m sure Greg can get you an .IOC file too.
I think it would be helpful for ST to get some more of the H7 Support team working/engaging with him directly, as he&39s clearly pushing the boundaries of the currently limited support for the H7 within the HAL and CubeMX frameworks. Other threads have pushed for current versions of Free RTOS and FatFs, as I recall, as apposed the rather antiquated middleware currently being offered up.
benahmed.mohamed
2018-07-11 11:32 AM