Ignore:
Timestamp:
Feb 14, 2025, 9:14:21 AM (3 months ago)
Author:
Zed
Message:

Fixing project.

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

Legend:

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

    r92 r93  
    309309
    310310  HAL_MPU_ConfigRegion(&MPU_InitStruct);
     311
     312  /** Initializes and configures the Region and the memory to be protected
     313  */
     314  MPU_InitStruct.Number = MPU_REGION_NUMBER2;
     315  MPU_InitStruct.BaseAddress = 0x38000000;
     316  MPU_InitStruct.Size = MPU_REGION_SIZE_512B;
     317
     318  HAL_MPU_ConfigRegion(&MPU_InitStruct);
    311319  /* Enables the MPU */
    312320  HAL_MPU_Enable(MPU_PRIVILEGED_DEFAULT);
  • ctrl/firmware/Main/CubeMX/FATFS/App/fatfs.c

    r92 r93  
    2121uint8_t retSD;                                                                                                                                  /* Return value for SD */
    2222char SDPath[4];                                                                                                                                 /* SD logical drive path */
    23 FATFS SDFatFS     __attribute__((section(".RAM_4_DMA")));                                               /* File system object for SD logical drive */
    24 FIL SDFile                __attribute__((section(".RAM_4_DMA")));                                               /* File object for SD */
     23FATFS SDFatFS     __attribute__((section(".AXI_RAM_4_DMA")));                                           /* File system object for SD logical drive */
     24FIL SDFile                __attribute__((section(".AXI_RAM_4_DMA")));                                           /* File object for SD */
    2525
    2626/* USER CODE BEGIN Variables */
  • ctrl/firmware/Main/CubeMX/charger.ioc

    r92 r93  
    5454CAD.provider=
    5555CORTEX_M7.AccessPermission_S-Cortex_Memory_Protection_Unit_Region1_Settings_S=MPU_REGION_FULL_ACCESS
     56CORTEX_M7.AccessPermission_S-Cortex_Memory_Protection_Unit_Region2_Settings_S=MPU_REGION_FULL_ACCESS
    5657CORTEX_M7.BaseAddress_S-Cortex_Memory_Protection_Unit_Region1_Settings_S=0x24000000
     58CORTEX_M7.BaseAddress_S-Cortex_Memory_Protection_Unit_Region2_Settings_S=0x38000000
    5759CORTEX_M7.CPU_DCache=Enabled
    5860CORTEX_M7.CPU_ICache=Enabled
    5961CORTEX_M7.DisableExec_S-Cortex_Memory_Protection_Unit_Region1_Settings_S=MPU_INSTRUCTION_ACCESS_DISABLE
     62CORTEX_M7.DisableExec_S-Cortex_Memory_Protection_Unit_Region2_Settings_S=MPU_INSTRUCTION_ACCESS_DISABLE
    6063CORTEX_M7.Enable_S-Cortex_Memory_Protection_Unit_Region1_Settings_S=MPU_REGION_ENABLE
    61 CORTEX_M7.IPParameters=default_mode_Activation,CPU_ICache,CPU_DCache,Enable_S-Cortex_Memory_Protection_Unit_Region1_Settings_S,BaseAddress_S-Cortex_Memory_Protection_Unit_Region1_Settings_S,Size_S-Cortex_Memory_Protection_Unit_Region1_Settings_S,TypeExtField_S-Cortex_Memory_Protection_Unit_Region1_Settings_S,AccessPermission_S-Cortex_Memory_Protection_Unit_Region1_Settings_S,DisableExec_S-Cortex_Memory_Protection_Unit_Region1_Settings_S
     64CORTEX_M7.Enable_S-Cortex_Memory_Protection_Unit_Region2_Settings_S=MPU_REGION_ENABLE
     65CORTEX_M7.IPParameters=default_mode_Activation,CPU_ICache,CPU_DCache,Enable_S-Cortex_Memory_Protection_Unit_Region1_Settings_S,BaseAddress_S-Cortex_Memory_Protection_Unit_Region1_Settings_S,Size_S-Cortex_Memory_Protection_Unit_Region1_Settings_S,TypeExtField_S-Cortex_Memory_Protection_Unit_Region1_Settings_S,AccessPermission_S-Cortex_Memory_Protection_Unit_Region1_Settings_S,DisableExec_S-Cortex_Memory_Protection_Unit_Region1_Settings_S,Enable_S-Cortex_Memory_Protection_Unit_Region2_Settings_S,BaseAddress_S-Cortex_Memory_Protection_Unit_Region2_Settings_S,Size_S-Cortex_Memory_Protection_Unit_Region2_Settings_S,TypeExtField_S-Cortex_Memory_Protection_Unit_Region2_Settings_S,AccessPermission_S-Cortex_Memory_Protection_Unit_Region2_Settings_S,DisableExec_S-Cortex_Memory_Protection_Unit_Region2_Settings_S
    6266CORTEX_M7.Size_S-Cortex_Memory_Protection_Unit_Region1_Settings_S=MPU_REGION_SIZE_8KB
     67CORTEX_M7.Size_S-Cortex_Memory_Protection_Unit_Region2_Settings_S=MPU_REGION_SIZE_512B
    6368CORTEX_M7.TypeExtField_S-Cortex_Memory_Protection_Unit_Region1_Settings_S=MPU_TEX_LEVEL1
     69CORTEX_M7.TypeExtField_S-Cortex_Memory_Protection_Unit_Region2_Settings_S=MPU_TEX_LEVEL1
    6470CORTEX_M7.default_mode_Activation=1
    6571Dma.Request0=SPI4_TX
Note: See TracChangeset for help on using the changeset viewer.