Ignore:
Timestamp:
Oct 15, 2026, 8:54:58 AM (3 weeks ago)
Author:
Zed
Message:

FileX support was removed from CubeMX, because it is not well supported. Going to use ST's example from GitHub instead.

Location:
trunk/firmware/App/CubeMX/Appli
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/firmware/App/CubeMX/Appli/Core/Inc/stm32n6xx_it.h

    r29 r31  
    5454void SecureFault_Handler(void);
    5555void DebugMon_Handler(void);
     56void SDMMC2_IRQHandler(void);
    5657/* USER CODE BEGIN EFP */
    5758
  • trunk/firmware/App/CubeMX/Appli/Core/Src/main.c

    r30 r31  
    2121#include "app_freertos.h"
    2222#include "bsec.h"
    23 #include "app_filex.h"
    2423#include "sdmmc.h"
    2524#include "gpio.h"
    … …  
    112111  MX_BSEC_Init();
    113112  MX_SDMMC2_SD_Init();
    114   MX_FileX_Init();
    115113  SystemIsolation_Config();
    116114  /* USER CODE BEGIN 2 */
  • trunk/firmware/App/CubeMX/Appli/Core/Src/sdmmc.c

    r30 r31  
    110110    HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
    111111
     112    /* SDMMC2 interrupt Init */
     113    HAL_NVIC_SetPriority(SDMMC2_IRQn, 5, 0);
     114    HAL_NVIC_EnableIRQ(SDMMC2_IRQn);
    112115  /* USER CODE BEGIN SDMMC2_MspInit 1 */
    113116
    … …  
    141144    HAL_GPIO_DeInit(GPIOE, GPIO_PIN_4);
    142145
     146    /* SDMMC2 interrupt Deinit */
     147    HAL_NVIC_DisableIRQ(SDMMC2_IRQn);
    143148  /* USER CODE BEGIN SDMMC2_MspDeInit 1 */
    144149
  • trunk/firmware/App/CubeMX/Appli/Core/Src/stm32n6xx_it.c

    r29 r31  
    5656
    5757/* External variables --------------------------------------------------------*/
    58 
     58extern SD_HandleTypeDef hsd2;
    5959/* USER CODE BEGIN EV */
    6060
    … …  
    174174/******************************************************************************/
    175175
     176/**
     177  * @brief This function handles SDMMC2 global interrupt.
     178  */
     179void SDMMC2_IRQHandler(void)
     180{
     181  /* USER CODE BEGIN SDMMC2_IRQn 0 */
     182
     183  /* USER CODE END SDMMC2_IRQn 0 */
     184  HAL_SD_IRQHandler(&hsd2);
     185  /* USER CODE BEGIN SDMMC2_IRQn 1 */
     186
     187  /* USER CODE END SDMMC2_IRQn 1 */
     188}
     189
    176190/* USER CODE BEGIN 1 */
    177191
Note: See TracChangeset for help on using the changeset viewer.