Let the whole process be done in medium flame. Especially after adding sugar.
Adding edible camphor and cardamom is to suppress the smell of pumpkin. So add generously.
Make sure you grate the white pumpkin evenly otherwise will remain uncooked.
Adding sugar after the white pumpkin gets cooked is must. If uncooked, after adding sugar it will never get cooked and becomes hard.