Once cooked, remove the asafoetida pieces from the pan and allow to cool completely. They will become very hard. Place them into a mortar and pestle and grind them into a coarse powder. You can also use a food processor or blender instead.
Keep grinding to your desired texture - a fine powder blends into cooking more seamlessly. If making in batches, combine all batches together at the end.
Tip: Add a small amount of rice flour or wheat flour (around 10% of the total volume) to absorb any oils released during grinding and to prevent clumping.