We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello, i have a few experience with CARM. But now i try to make a change to Realview. BLINKY example runs, but when i add a printf programm stops bevor reaching main. The programm ends in a endlessloop after having done a SWI 0xAB Here you can see result of step by step debuging:
0x00081800 B508 PUSH {R3,LR} 0x00081802 4669 MOV R1,SP 0x00081804 9000 STR R0,[SP,#0x0000] 0x00081806 2003 MOV R0,#0x03 0x00081808 DFAB SWI 0xAB
116: SWI_Handler B SWI_Handler 0x00080044 EAFFFFFE B 0x00080044
WHY? My programm is "molto semplice" and similar stuff has worked in CARM a hundred times:
int main (void) { PLL_init(); RS232_init(115200); printf("Hello this is my first test of Realview"); while(1); }
I'am despaired, who can help?
Hi John, thanks for your post. I tried to follow your advice. Unfortunately i didn't get it. See my other post #8681 Getting started with Realview.
Sorry i'am really confused at this time
Dietmar,
The reasons for your problems are explained fully in your RealView Compilation Tools Compilers and Libraries Guide in the section Tailoring the input/output functions.
You will then know then that printf calls fputc which by default uses a semi-hosted implementation which will end up in that SWI exception.
Also, there are RealView ADuC702x examples included with Keil. Check out the examples in \Keil\ARM\RV30\Boards\ADI\ADuC702X.
"The reasons for your problems are explained fully in your RealView Compilation Tools Compilers and Libraries Guide"
When will the Realview manuals be made available online - like all the other Keil manuals?
We are currently working on this. It should come pretty soon.
Jon