You most likely turned the heat too high. The sugar will burn quickly, so I keep the stove set at medium at the highest. Keep a close eye on the nuts as they cook. You want them toasted but not too brown.