Ignore:
Timestamp:
Feb 12, 2025, 3:03:55 PM (3 months ago)
Author:
Zed
Message:

Communication with M24256E EEPROM works.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ctrl/firmware/Main/SES/Core/Src/main_task.cpp

    r87 r90  
    2121//UINT ret;
    2222
    23 static FATFS fs;// __attribute__((section(".AXI_RAM")));     // Filesystem object
    24 
    2523FRESULT scan_files (TCHAR* path);
    2624FRESULT list_dir (const char* path);
     
    3735        //MX_LWIP_Init();
    3836
    39     FRESULT  r = f_mount(&fs, (const TCHAR*)"", 1);            // Mount the default drive
     37    FRESULT  r = f_mount(&SDFatFS, SDPath, 1);            // Mount the default drive
    4038        if (r != FR_OK) printf("Cannot mount SD-card!\n");
    4139        else
     
    4644                strcpy (buff, "/");
    4745                list_dir(buff);
     46        }
     47
     48        r = f_mount(&EEPROMFatFS, EEPROMPath, 1);            // Mount the default drive
     49        if (r != FR_OK) printf("Cannot mount EEPROM FS!\n");
     50        else
     51        {
     52                printf("EEPROM FS was mounted.\n");
     53
    4854        }
    4955
Note: See TracChangeset for help on using the changeset viewer.