6 weeks, light cramping/spotting

Called my doctor due to light cramping and spotting when I wipe. She had me come in for an ultrasound, due to 2 previous miscarriages. Found the heartbeat, 105, said everything looked ok but no explanation for the cramps and spotting. Any thoughts?