Before upgrading the operating system, make sure you are using the latest BIOS version 31 and the latest drivers. They are available in the link below.
https://downloadcenter.intel.com/product/86612 Drivers & Software
Then, using Windows® 8.1, run Windows® update utility, check if you already have the latest updates of your current operating system. Finally you can continue with the operating system upgrading.
Here you will see Intel's recommendations for Windows® 10 Upgrade Instructions
http://www.intel.com/support/motherboards/desktop/stck1a32wfc/sb/CS-035724.htm Intel® Compute Stick STCK1A32WFC — Windows® 10 Upgrade Instructions