- for debug you can use
printf()
without an object or function fromdebug.h
- you can enable printf also for BufferedSerial
You can read this topic - No member named ‘printf’ in ‘mbed:BufferSerial’ - Online compiler / Help - Arm Mbed OS support forum
BR, Jan