The presentation “CDRH Regulated Software An Introduction” by John F. Murray Jr. CDRH Software Compliance Expert at FDA is a very good overview for those new to this topic. It covers device as well as production and quality system software, classification, and premarke review. The full presentation slides are at the link provided.