3 years, 3 months ago.

Serial write() API can not be compiled in LPC1768 platform

Serial write() API can not be compiled in LPC1768 in LPC1768 platform.

Then, How can I use printf() function to send binary data to PC ?

pc.write((const uint8_t*)gIntBuf, 128, (const event_callback_t)NULL, 0); <- compile error in LPC1768 platform

1 Answer

3 years, 3 months ago.

Serial.write() is one of the asynchronous low power extensions that aren't supported on all of the boards.

If you want to send binary data you can use putc() to send it a byte at a time.

Accepted Answer