STM32F401RE, FreeRTOS: osErrorISR returned by osKernelInitialize(), osThreadNew(), osKernelStart()

Description
Each OS function call returns osErrorISR. What is more, IS_IRQ() function returns value: 32 decimal. It should not happen, because none of the IRQ is defined.


The most interesting fact is that, such problem occurs only if functions responsible of reading GPIO pin are used, such as:


There is a link to repository with my project: https://github.com/BusKetZz/STM32
I would appreciate any help.
Best regards

0