Add deviceUpgrade.c to project