Heat a pan and dray roast all the ingredients mentioned in To roast and grind- till golden brown/crisp and grind to a coarse powder
Keep aside
Heat Butter/oil in a pan
Add mustard seeds and allow them to splutter
Add asafoetida powder, chopped garlic and curry leaves
Fry for few seconds
Add chopped onions and fry till golden brown
Add salt, turmeric powder, red chilli powder and sauté till the raw smell disappears
Add sweet corn kernels and stir fry for few minutes
Add grounded spice powder, stir well and cook for 2 minutes
Remove from the heat
Serve hot