Tone() broken, SAMD21 issue?

Using tone(10, 40); I get 640Hz. I believe this has something to do with the prescaler or the Xiao’s 48Mhz clock speed, but I don’t know enough about programming or electronics to solve the issue myself. Can anyone help?
Thanks