cancel
Showing results for 
Search instead for 
Did you mean: 

SDIO FATFS mounting issue since updates CudeIDE last month STM32F407VGT

GIkar
Associate III

Hello,

since updates I got issues by f_mount my SD Card.

So I try some things,

if(f_mount(&myFS,"", 1)==FR_OK)  // no FR_OK anymore
{
 
 
			  f_open(&myFile, "/TESTFOLDER/test1.txt\0", FA_WRITE | FA_CREATE_ALWAYS);
			  char myData[]="Test\0";
			  f_write(&myFile, myData, sizeof(myData), &bytscnt );
			  f_close(&myFile);
}

Standart settings 1bit mode with DMA for TX and RX. Heap size 2000 stack size 4000

static void MX_SDIO_SD_Init(void)
{
 
  /* USER CODE BEGIN SDIO_Init 0 */
 
  /* USER CODE END SDIO_Init 0 */
 
  /* USER CODE BEGIN SDIO_Init 1 */
 
  /* USER CODE END SDIO_Init 1 */
  hsd.Instance = SDIO;
  hsd.Init.ClockEdge = SDIO_CLOCK_EDGE_RISING;
  hsd.Init.ClockBypass = SDIO_CLOCK_BYPASS_DISABLE;
  hsd.Init.ClockPowerSave = SDIO_CLOCK_POWER_SAVE_DISABLE;
  hsd.Init.BusWide = SDIO_BUS_WIDE_1B;
  hsd.Init.HardwareFlowControl = SDIO_HARDWARE_FLOW_CONTROL_DISABLE;
  hsd.Init.ClockDiv = 0;
  /* USER CODE BEGIN SDIO_Init 2 */
 
  /* USER CODE END SDIO_Init 2 */
 
}
 
/** 
  * Enable DMA controller clock
  */
static void MX_DMA_Init(void) 
{
 
  /* DMA controller clock enable */
  __HAL_RCC_DMA2_CLK_ENABLE();
 
  /* DMA interrupt init */
  /* DMA2_Stream3_IRQn interrupt configuration */
  HAL_NVIC_SetPriority(DMA2_Stream3_IRQn, 0, 0);
  HAL_NVIC_EnableIRQ(DMA2_Stream3_IRQn);
  /* DMA2_Stream6_IRQn interrupt configuration */
  HAL_NVIC_SetPriority(DMA2_Stream6_IRQn, 0, 0);
  HAL_NVIC_EnableIRQ(DMA2_Stream6_IRQn);
 
}

Has any one the them problems with the newest CubeIDE?

0 REPLIES 0