I'm not sure about what to do about the grainy part, but I do know that if you let the sugar sit with the raspberry crushed fruit for an hour, stirring every fifteen minutes, you shouldn't have a problem. I do this with strawberry freezer jam and it works beautiful. My grandmother makes jam all the time and this is what she told me to do. Good Luck!