I have found missing #define statements for the FSMC in file:
/os/hal/platforms/STM32F4xx/stm32f4xx.h
At registers FSMC_BTR[1..4] and FSMC_RWTR[1..4] the Bits [7:4] of DATAST are missing in #define statements.
The DATAST field is the only one with 8 Bits, all others have 4 Bits
I have attached a SVN patch file as ZIP, because the forum not allow uploading .patch files.
Buy.