AS5040 permanent setup in Incremental Quadrature mode

Hi,
I intend to make a custom encoder module which can be used with multiple existing drivers I have lying around.

I have successfully put the sensor in Quadrature mode using the library MarkTillotson (Mark Tillotson) · GitHub

Everything works fine, however the OTP register is not programmed permanently in this setup (7.3V to 7.5V on Prog pin is required for this) , hence after a reset the sensor again goes into default SSI mode.

Is there a way in which I can directly set this sensor in Quadrature mode permanently?

AS5040 is by default on quadrature mode. .Leave Prog pin floating unconnected(has internal pull down 74K).Also to control using As5040 you don’t need that library. You can use simplefoc lib with example encoder code(iit is default in quadratic mode)