tone() functions not defined for Nano BLE

The example sketch Tone Melody in the Digtial category does not compile on my Nano BLE, I guess it isn't implemented in the new Nano BLE architecture?

Is there a way to use PWM to emulate this?

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\examples\02.Digital\toneMelody/toneMelody.ino:37: undefined reference to `tone(unsigned char, unsigned int, unsigned long)'