Hello Eugene,
If the BOD reset is enabled, the forced BOD reset can wake up the chip from reduced power modes, not including power-down and deep power-down.

Yes the analog comparator can be used to wake up the system. An example code is provided in section 14.5.2.4 of the User Manual.

The pins you are able to use for the analog comparator are the following:

Could you please specify if you are getting an error when attempting to initialize these pins. This way I can check your code.
Best Regards,
Sabina