Here you can find some best practice configurations for common use cases. The complete examples with startup files can be found here
Example closed loop configurations for stepper and linear BISS-C encoder:
An example configuration of a Ex72xx servo drive with AM8xxx motor. The complete example with startup file can be found here