This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

From CARM to Realview

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?

Parents
  • Hi please read my recent post #8658 30th Oct on the same subject. This describes the exact same symptoms and the fix is described also.

    My problem is that I upgraded to Realview 3.34 But continued to use the same style in the build file as beforehand, I had no problems until I decided to add a prinf(). I also did not see the new set of examples in RV30.

    From another post #8657 there is a similiar complaint as ours, but this one is probably being handled outside the forum.

    It was pointed out to me that there is a description in the help file. I have now deleted the old examples in Keil/arm. This change caused me hours of time until I found the problem. A short note in the Realview revisions file would have save me this.

    One thing I really miss from CARM is the linker line that used to show in the output window "Program Size: data=xxx const=xxxx code=xxx", Realview does not provide this and I cannot find a way to enable it. Now I have no idea of the code size unless I open a list file.

Reply
  • Hi please read my recent post #8658 30th Oct on the same subject. This describes the exact same symptoms and the fix is described also.

    My problem is that I upgraded to Realview 3.34 But continued to use the same style in the build file as beforehand, I had no problems until I decided to add a prinf(). I also did not see the new set of examples in RV30.

    From another post #8657 there is a similiar complaint as ours, but this one is probably being handled outside the forum.

    It was pointed out to me that there is a description in the help file. I have now deleted the old examples in Keil/arm. This change caused me hours of time until I found the problem. A short note in the Realview revisions file would have save me this.

    One thing I really miss from CARM is the linker line that used to show in the output window "Program Size: data=xxx const=xxxx code=xxx", Realview does not provide this and I cannot find a way to enable it. Now I have no idea of the code size unless I open a list file.

Children