sad
It no longer makes sense, changed the environment to IAR and everything works as it should (not only the GPIO, but also the entire project including SPI).