In STM32F4 reference manual we read that OTG_FS FIFO size is 1.25 kBytes which is 320 bytes.
But in stm32_otg.h we see:
Code: Select all
/**
* @brief OTG_FS FIFO memory size in words.
*/
#define STM32_OTG1_FIFO_MEM_SIZE 384
(chibios-2.6.1)
which is: 384 * 4 / 1024 = 1.5 kBytes.
The question is: WHY?
Incorrect memory allocation could result in an unpredictable behavior, isn't it?