compile error with "Error: lo register required"
there is a simple delay function as:
extern void inline
__attribute_
nrf_delay_
{
__ASM volatile (
"1:\tSUB %0, %0, #1\n\t"
"BNE 1b\n\t"
: "+r"(number_
);
}
when compile the code with "-O0", it is compiled successfully. But with "-O3", it has error with message as:
C:\Users\
C:\Users\
lto-wrapper: C:/Program Files (x86)/GNU Tools ARM Embedded/4.9 2014q4/
c:/program files (x86)/gnu tools arm embedded/4.9 2014q4/
collect2.exe: error: ld returned 1 exit status
make: *** [_build/
How to fix this error? Thanks a lot.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- JiachengWang
- Solved:
- Last query:
- Last reply: