Hello, I got into trouble when learning ADS 1.2 inline assembly.
I create a project as arm executable image in default settings. It contains only one file : main.c
void main(void){
__asm { mov pc,0x0 } }
When i compiled this project , i got the error :
Warning : C2865W: extern 'main' needs to be 'int' function: 'int' assumed main.c line 1 Error : (Serious) C2044E: branching by writing PC is not supported main.c line 6 C:\main.c: 1 warning, 0 errors, 1 serious error
I google and find this file "
Then I have a looked at arm architecture reference manual , but nothing helps.
I think maybe ADS1.2 compiler doesn't support this kinds of syntax. But how can I achieve the goal like this ?
Anybody help ,pls ? Thanks!