Browse Source

dd note to inform user to build USB serial example in release mode (#326)

* USB-SERIAL_NOTES: add note to inform user to build in release mode
Zacck Osiemo 3 years ago
parent
commit
0442ccb176
1 changed files with 6 additions and 0 deletions
  1. 6 0
      examples/usb_serial.rs

+ 6 - 0
examples/usb_serial.rs

@@ -1,5 +1,11 @@
 //! CDC-ACM serial port example using polling in a busy loop.
 //! Target board: Blue Pill
+//!
+//! Note:
+//! When building this since this is a larger program,
+//! one would need to build it using release profile
+//! since debug profiles generates artifacts that
+//! cause FLASH overflow errors due to their size
 #![no_std]
 #![no_main]