Canned yellow corn is supposed to be best for this recipe.
3 C corn, fresh, frozen, or canned
3 T butter (for frozen or canned) or 1 T butter (for fresh)
4 shallots or 1 medium onion, minced
Salt and pepper to taste
1 t sugar (for frozen or canned) or just a pinch (for fresh)
2 t thyme
In a large skillet over medium heat, melt the butter. Add the corn, shallots, salt, pepper, and sugar. Cook stirring occasionally to prevent burning, until corn is browned, about 5 minutes. Stir in thyme and cook 5 minutes more.