]>
Commit | Line | Data |
---|---|---|
1b1a35ee XL |
1 | `#[cmse_nonsecure_entry]` functions require a C ABI |
2 | ||
3 | Erroneous code example: | |
4 | ||
5 | ```compile_fail,E0776 | |
6 | #![feature(cmse_nonsecure_entry)] | |
7 | ||
8 | #[no_mangle] | |
9 | #[cmse_nonsecure_entry] | |
10 | pub fn entry_function(input: Vec<u32>) {} | |
11 | ``` | |
12 | ||
13 | To fix this error, declare your entry function with a C ABI, using `extern "C"`. |