Semiconductor devices and semiconductor device control methods are described. A semiconductor device comprises a first electrode; a cell arranged on the first electrode and including a magnetic tunnel junction (MTJ) having a free magnetic layer and a pinned magnetic layer with a dielectric layer in between them; and a heating element to form a thermal gradient in the first electrode.