Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/All/Dockerfile.All
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM ghcr.io/nanoframework/dev-container-all:v2.56
FROM ghcr.io/nanoframework/dev-container-all:v2.57
2 changes: 1 addition & 1 deletion .devcontainer/All/Dockerfile.All.SRC
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ RUN git clone --branch v6.4.0_rel --recursive https://github.com/eclipse-threadx
&& git clone --branch v6.3.0_rel --recursive https://github.com/eclipse-threadx/netxduo.git --depth 1 ./sources/NetxDuo

# Clone dependent repos (mbedtls, fatfs and littlefs)
RUN git clone --branch R0.15 https://github.com/abbrev/fatfs.git --depth 1 ./sources/fatfs \
RUN git clone --branch R0.15a https://github.com/abbrev/fatfs.git --depth 1 ./sources/fatfs \
&& git clone --branch v2.9.3 https://github.com/littlefs-project/littlefs --depth 1 ./sources/littlefs \
&& git clone --branch mbedtls-3.6.0 https://github.com/ARMmbed/mbedtls.git --depth 1 ./sources/mbedtls \
&& cd ./sources/mbedtls \
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/All/scripts/git-pull-repos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cd /sources/mbedtls
git pull origin mbedtls-3.6.0
git submodule update --init
cd /sources/fatfs
git pull origin R0.15
git pull origin R0.15a
cd /sources/FreeRTOS
git pull origin V10.4.1-kernel-only
cd /sources/CMSIS_5
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/AzureRTOS/Dockerfile.AzureRTOS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM ghcr.io/nanoframework/dev-container-azure-rtos:v1.33
FROM ghcr.io/nanoframework/dev-container-azure-rtos:v1.34
2 changes: 1 addition & 1 deletion .devcontainer/AzureRTOS/Dockerfile.AzureRTOS.SRC
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ RUN git clone --branch v6.4.0_rel --recursive https://github.com/eclipse-threadx
&& git clone --branch v6.4.0_rel --recursive https://github.com/eclipse-threadx/netxduo.git --depth 1 ./sources/NetxDuo

# Clone dependent repos (mbedtls, fatfs and littlefs)
RUN git clone --branch R0.15 https://github.com/abbrev/fatfs.git --depth 1 ./sources/fatfs \
RUN git clone --branch R0.15a https://github.com/abbrev/fatfs.git --depth 1 ./sources/fatfs \
&& git clone --branch v2.9.3 https://github.com/littlefs-project/littlefs --depth 1 ./sources/littlefs \
&& git clone --branch mbedtls-3.6.0 https://github.com/ARMmbed/mbedtls.git --depth 1 ./sources/mbedtls \
&& cd ./sources/mbedtls \
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/ChibiOS/Dockerfile.ChibiOS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM ghcr.io/nanoframework/dev-container-chibios:v1.34
FROM ghcr.io/nanoframework/dev-container-chibios:v1.35
2 changes: 1 addition & 1 deletion .devcontainer/ChibiOS/Dockerfile.ChibiOS.SRC
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ RUN git clone --branch nf-build https://github.com/nanoframework/STM32CubeL4.git
&& git clone --branch chibios-21.11.x https://github.com/ChibiOS/ChibiOS-Contrib.git --depth 1 ./sources/ChibiOs-Contrib

# Clone dependent repos (mbedtls, fatfs and littlefs etc.)
RUN git clone --branch R0.15 https://github.com/abbrev/fatfs.git --depth 1 ./sources/fatfs \
RUN git clone --branch R0.15a https://github.com/abbrev/fatfs.git --depth 1 ./sources/fatfs \
&& git clone --branch v2.9.3 https://github.com/littlefs-project/littlefs --depth 1 ./sources/littlefs \
&& git clone --branch STABLE-2_1_3_RELEASE https://github.com/lwip-tcpip/lwip.git --depth 1 ./sources/lwip \
&& git clone --branch mbedtls-3.6.0 https://github.com/ARMmbed/mbedtls.git --depth 1 ./sources/mbedtls \
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/ESP32/Dockerfile.ESP32
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM ghcr.io/nanoframework/dev-container-esp32:v2.36
FROM ghcr.io/nanoframework/dev-container-esp32:v2.37
2 changes: 1 addition & 1 deletion .devcontainer/ESP32/Dockerfile.ESP32.SRC
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ RUN apt-get update \
RUN mkdir -p /usr/local/bin/gcc

# Clone fatfs
RUN git clone --branch R0.15 https://github.com/abbrev/fatfs.git --depth 1 ./sources/fatfs
RUN git clone --branch R0.15a https://github.com/abbrev/fatfs.git --depth 1 ./sources/fatfs

# Clone ESP-IDF
RUN git clone --branch v5.2.3 https://github.com/espressif/esp-idf --depth 1 --recursive ./sources/esp-idf
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/FreeRTOS-NXP/Dockerfile.FreeRTOS-NXP
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM ghcr.io/nanoframework/dev-container-freertos-nxp:v1.06
FROM ghcr.io/nanoframework/dev-container-freertos-nxp:v1.07
2 changes: 1 addition & 1 deletion .devcontainer/FreeRTOS-NXP/Dockerfile.FreeRTOS-NXP.SRC
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ RUN apt-get update \
RUN mkdir -p /usr/local/bin/gcc

# Clone libs mbedtls and fatfs etc.
RUN git clone --branch R0.15 https://github.com/abbrev/fatfs.git --depth 1 ./sources/fatfs \
RUN git clone --branch R0.15a https://github.com/abbrev/fatfs.git --depth 1 ./sources/fatfs \
&& git clone --branch STABLE-2_1_3_RELEASE https://github.com/lwip-tcpip/lwip.git --depth 1 ./sources/lwip \
&& git clone --branch mbedtls-3.6.0 https://github.com/ARMmbed/mbedtls.git --depth 1 ./sources/mbedtls \
&& cd ./sources/mbedtls \
Expand Down
2 changes: 1 addition & 1 deletion targets/AzureRTOS/ST/ORGPAL_PALTHREE/ffconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/ Configurations of FatFs Module
/---------------------------------------------------------------------------*/

#define FFCONF_DEF 80286 /* Revision ID */
#define FFCONF_DEF 5380 /* Revision ID */

/*---------------------------------------------------------------------------/
/ Function Configurations
Expand Down
2 changes: 1 addition & 1 deletion targets/ChibiOS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ if(NF_FEATURE_HAS_SDCARD OR NF_FEATURE_HAS_USB_MSD)
if(FATFS_VERSION_EMPTY)
# no FatFS version actualy specified, must be empty which is fine, we'll default to a known good version
# WHEN CHANGING THIS MAKE SURE TO UPDATE THE DEV CONTAINERS
set(FATFS_VERSION_TAG "R0.15")
set(FATFS_VERSION_TAG "R0.15a")
else()
# set version
set(FATFS_VERSION_TAG ${FATFS_VERSION})
Expand Down
10 changes: 5 additions & 5 deletions targets/ChibiOS/ORGPAL_PALTHREE/ffconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/ Configurations of FatFs Module
/---------------------------------------------------------------------------*/

#define FFCONF_DEF 80286 /* Revision ID */
#define FFCONF_DEF 5380 /* Revision ID */

/*---------------------------------------------------------------------------/
/ Function Configurations
Expand Down Expand Up @@ -182,13 +182,13 @@
/ const char* VolumeStr[FF_VOLUMES] = {"ram","flash","sd","usb",...
*/
#if (HAL_USE_SDC == TRUE) && (HAL_USBH_USE_MSD == TRUE)
#define FF_VOLUME_STRS "D", "E"
#define FF_VOLUME_STRS "D", "E"
#elif (HAL_USE_SDC == FALSE) && (HAL_USBH_USE_MSD == TRUE)
#define FF_VOLUME_STRS "E"
#define FF_VOLUME_STRS "E"
#elif (HAL_USE_SDC == TRUE) && (HAL_USBH_USE_MSD == FALSE)
#define FF_VOLUME_STRS "D"
#define FF_VOLUME_STRS "D"
#else
#define FF_VOLUME_STRS ""
#define FF_VOLUME_STRS ""
#endif

#define FF_MULTI_PARTITION 0
Expand Down
10 changes: 5 additions & 5 deletions targets/ChibiOS/ORGPAL_PALX/ffconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/ Configurations of FatFs Module
/---------------------------------------------------------------------------*/

#define FFCONF_DEF 80286 /* Revision ID */
#define FFCONF_DEF 5380 /* Revision ID */

/*---------------------------------------------------------------------------/
/ Function Configurations
Expand Down Expand Up @@ -182,13 +182,13 @@
/ const char* VolumeStr[FF_VOLUMES] = {"ram","flash","sd","usb",...
*/
#if (HAL_USE_SDC == TRUE) && (HAL_USBH_USE_MSD == TRUE)
#define FF_VOLUME_STRS "D", "E"
#define FF_VOLUME_STRS "D", "E"
#elif (HAL_USE_SDC == FALSE) && (HAL_USBH_USE_MSD == TRUE)
#define FF_VOLUME_STRS "E"
#define FF_VOLUME_STRS "E"
#elif (HAL_USE_SDC == TRUE) && (HAL_USBH_USE_MSD == FALSE)
#define FF_VOLUME_STRS "D"
#define FF_VOLUME_STRS "D"
#else
#define FF_VOLUME_STRS ""
#define FF_VOLUME_STRS ""
#endif

#define FF_MULTI_PARTITION 0
Expand Down
2 changes: 1 addition & 1 deletion targets/ChibiOS/ST_STM32F769I_DISCOVERY/ffconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/ Configurations of FatFs Module
/---------------------------------------------------------------------------*/

#define FFCONF_DEF 80286 /* Revision ID */
#define FFCONF_DEF 5380 /* Revision ID */

/*---------------------------------------------------------------------------/
/ Function Configurations
Expand Down
30 changes: 15 additions & 15 deletions targets/ChibiOS/_FatFs/fatfs_FS_Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,21 +178,21 @@ HRESULT FATFS_FS_Driver::GetSizeInfo(const VOLUME_ID *volume, int64_t *totalSize

f_chdrive(currentVolume->m_rootName);

// // this call is prone to take a long time, thus hitting the watchdog, therefore we are skipping this for now
// // // get free clusters
// // f_getfree(buffer, &freeClusters, &fsPtr);

// // // Get total sectors and free sectors
// // totalSectors = (fs.n_fatent - 2) * fs.csize;
// // freeSectors = freeClusters * fs.csize;

// // #if FF_MAX_SS != FF_MIN_SS
// // *totalSize = (int64_t)totalSectors * fs.ssize;
// // *totalFreeSpace = (int64_t)freeSectors * fs.ssize;
// // #else
// // *totalSize = (int64_t)totalSectors * FF_MAX_SS;
// // *totalFreeSpace = (int64_t)freeSectors * FF_MAX_SS;
// // #endif
// this call is prone to take a long time, thus hitting the watchdog, therefore we are skipping this for now
// // get free clusters
// f_getfree(buffer, &freeClusters, &fsPtr);

// // Get total sectors and free sectors
// totalSectors = (fs.n_fatent - 2) * fs.csize;
// freeSectors = freeClusters * fs.csize;

// #if FF_MAX_SS != FF_MIN_SS
// *totalSize = (int64_t)totalSectors * fs.ssize;
// *totalFreeSpace = (int64_t)freeSectors * fs.ssize;
// #else
// *totalSize = (int64_t)totalSectors * FF_MAX_SS;
// *totalFreeSpace = (int64_t)freeSectors * FF_MAX_SS;
// #endif

*totalSize = -1;
*totalFreeSpace = -1;
Expand Down
2 changes: 1 addition & 1 deletion targets/ChibiOS/_FatFs/fatfs_syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// ChibiOs version can be found at:
// https://github.com/ArduPilot/ChibiOS.svn/blob/master/os/various/fatfs_bindings/fatfs_syscall.c
// but currently locked to R0.14b.
// This file aligns with compatibility with R0.15+
// This file aligns with compatibility with R0.15a+
// And also allows use of nF specific capabilities.

/*------------------------------------------------------------------------*/
Expand Down
30 changes: 15 additions & 15 deletions targets/ESP32/_FatFs/fatfs_FS_Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,21 +93,21 @@ HRESULT FATFS_FS_Driver::GetSizeInfo(const VOLUME_ID *volume, int64_t *totalSize

f_chdrive(currentVolume->m_rootName);

// // this call is prone to take a long time, thus hitting the watchdog, therefore we are skipping this for now
// // // get free clusters
// // f_getfree(buffer, &freeClusters, &fsPtr);

// // // Get total sectors and free sectors
// // totalSectors = (fs.n_fatent - 2) * fs.csize;
// // freeSectors = freeClusters * fs.csize;

// // #if FF_MAX_SS != FF_MIN_SS
// // *totalSize = (int64_t)totalSectors * fs.ssize;
// // *totalFreeSpace = (int64_t)freeSectors * fs.ssize;
// // #else
// // *totalSize = (int64_t)totalSectors * FF_MAX_SS;
// // *totalFreeSpace = (int64_t)freeSectors * FF_MAX_SS;
// // #endif
// this call is prone to take a long time, thus hitting the watchdog, therefore we are skipping this for now
// // get free clusters
// f_getfree(buffer, &freeClusters, &fsPtr);

// // Get total sectors and free sectors
// totalSectors = (fs.n_fatent - 2) * fs.csize;
// freeSectors = freeClusters * fs.csize;

// #if FF_MAX_SS != FF_MIN_SS
// *totalSize = (int64_t)totalSectors * fs.ssize;
// *totalFreeSpace = (int64_t)freeSectors * fs.ssize;
// #else
// *totalSize = (int64_t)totalSectors * FF_MAX_SS;
// *totalFreeSpace = (int64_t)freeSectors * FF_MAX_SS;
// #endif

*totalSize = -1;
*totalFreeSpace = -1;
Expand Down
2 changes: 1 addition & 1 deletion targets/FreeRTOS/NXP/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ endif()
# check if build was requested with a specifc FatFS version
if(FATFS_VERSION_EMPTY)
# no FatFS version actualy specified, must be empty which is fine, we'll default to a known good version
set(FATFS_VERSION_TAG "R0.15")
set(FATFS_VERSION_TAG "R0.15a")
else()
# set version
set(FATFS_VERSION_TAG "${FATFS_VERSION}")
Expand Down
2 changes: 1 addition & 1 deletion targets/FreeRTOS/NXP/_FatFs/ffconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/ Configurations of FatFs Module
/---------------------------------------------------------------------------*/

#define FFCONF_DEF 80286 /* Revision ID */
#define FFCONF_DEF 5380 /* Revision ID */

#define SD_DISK_ENABLE

Expand Down
2 changes: 1 addition & 1 deletion targets/FreeRTOS/NXP/_FatFs/ffsystem.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// clang-format off

// This file aligns with compatibility with R0.15+
// This file aligns with compatibility with R0.15a+
// It currently includes commented out code which would allow a fully
// platform independent solution.

Expand Down