The invention relates to novel oxazine derivatives of formula (I), and pharmaceutically acceptable salts thereof, in which all of the variables are as defined in the specification, pharmaceutical compositions thereof, combinations thereof, and their use as medicaments, particularly for the treatment of Alzheimer's Disease or diabetes via inhibition of BACE-1 or BACE-2.