Ignore:
Timestamp:
Jan 13, 2025, 9:08:34 AM (3 days ago)
Author:
Zed
Message:

SD card init function was changed not to stop if SD-card not present.

Location:
ctrl/firmware/Main/CubeMX
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ctrl/firmware/Main/CubeMX/Core/Src/sdmmc.c

    r51 r60  
    2222
    2323/* USER CODE BEGIN 0 */
     24
     25#include <stdio.h>
    2426
    2527/* USER CODE END 0 */
     
    4749  if (HAL_SD_Init(&hsd1) != HAL_OK)
    4850  {
    49     Error_Handler();
     51    //Error_Handler();
     52        printf("Cannot initialize SD-card!\n");
    5053  }
    5154  /* USER CODE BEGIN SDMMC1_Init 2 */
  • ctrl/firmware/Main/CubeMX/FileX/App/app_filex.c

    r57 r60  
    143143  {
    144144    /* USER CODE BEGIN SD open error */
    145         printf("Cannot mout SD card!\n");
    146     while(1);
     145        printf("Cannot mount SD card!\n");
     146    //while(1);
    147147    /* USER CODE END SD open error */
    148148  }
Note: See TracChangeset for help on using the changeset viewer.