document the no #![no_main] issue
This commit is contained in:
17
src/lib.rs
17
src/lib.rs
@@ -135,13 +135,28 @@
|
|||||||
//!
|
//!
|
||||||
//! # Examples
|
//! # Examples
|
||||||
//!
|
//!
|
||||||
//! Check the [examples module](./examples/index.html)
|
//! Check the [examples module][examples]
|
||||||
|
//!
|
||||||
|
//! [examples]: ./examples/index.html
|
||||||
//!
|
//!
|
||||||
//! # Troubleshooting
|
//! # Troubleshooting
|
||||||
//!
|
//!
|
||||||
//! This section contains fixes for common errors encountered when the
|
//! This section contains fixes for common errors encountered when the
|
||||||
//! `cortex-m-quickstart` template is misused.
|
//! `cortex-m-quickstart` template is misused.
|
||||||
//!
|
//!
|
||||||
|
//! ## Used the standard `main` interface
|
||||||
|
//!
|
||||||
|
//! Error message:
|
||||||
|
//!
|
||||||
|
//! ``` text
|
||||||
|
//! $ cargo build
|
||||||
|
//! Compiling demo v0.1.0 (file:///home/japaric/tmp/demo)
|
||||||
|
//!
|
||||||
|
//! error: requires `start` lang_item
|
||||||
|
//! ```
|
||||||
|
//!
|
||||||
|
//! Solution: Use `#![no_main]` and `entry!` as shown in the [examples].
|
||||||
|
//!
|
||||||
//! ## Forgot to launch an OpenOCD instance
|
//! ## Forgot to launch an OpenOCD instance
|
||||||
//!
|
//!
|
||||||
//! Error message:
|
//! Error message:
|
||||||
|
|||||||
Reference in New Issue
Block a user