If your sweet potatoes are getting stuck to the pan or burning, I recommend adding a bit more oil and maybe turning the heat lower. You could also turn the heat lower and cover the pan. This will help soften the sweet potatoes, but prevent the charring and burning.