Control position of Micro 33.6mm 2804 with a magnetic sensor

Hi everyone,
I’m currently using an example from the SimpleFOC library in Arduino to perform position control on a Micro 33.5 mm 2894 motor, together with an AS5048 SPI magnetic sensor.

The issue I’m experiencing is the following: during startup, the motor performs the initialization correctly, but when I set a target position, it does not move at all. Additionally, if I try to rotate the motor shaft manually, it begins to oscillate instead of holding position.

Has anyone encountered a similar issue or can suggest what might be causing this behavior?

Could you share your code? It’s hard to help with the little information given now