SW upgrade function using SD card