diff --git a/services/automount/CMakeLists.txt b/services/automount/CMakeLists.txt index 668c98f..9d54508 100644 --- a/services/automount/CMakeLists.txt +++ b/services/automount/CMakeLists.txt @@ -6,7 +6,10 @@ # loaded once for all instances. set(DMOD_MODULE_NAME automount) set(DMOD_AUTHOR_NAME "Patryk Kubiak") -set(DMOD_STACK_SIZE 2048) +# Measured on STM32F746G-DISCO (ps STACK column): the peak is 1652 B of the +# 2048 B thread stack (1536 + DMOSI_THREAD_STACK_OVERHEAD), reached while +# the card is read (dmblkid/dmfatfs -> dmvfs -> dmdevfs -> dmsdio). +set(DMOD_STACK_SIZE 1536) set(DMOD_PRIORITY 0) set(DMOD_DMR_PATH ${CMAKE_CURRENT_SOURCE_DIR}/automount.dmr)