Topic : STR9

Forum : ARM

Original Post
Post Information Post
November 10, 2010 - 2:28pm
Guest

Hi

The following is a part of code which we are debugging with RLINK Pro for STR912Fw44. RKit –ARM version :1.26.10.0130
Ride7 version 7.30.10.0159
--------------
unsigned int TxCounter,temp;

TxCounter = 0;

printf("%d", TxCounter );

while( 1 )

{

for( temp = 0 ; temp < 10 ; temp++ )

{

TxCounter = temp;

}

}

We are facing the following problems

1. While debugging the above program, temp variable is adding in locals window on its own but not TxCounter variable. And watch window is not updating properly.

2. We are not able to observe the “printf” output in any window.

3. All Registers are appearing except UART under peripherals in debug mode.

Your suggestions will help.

regards

Babu

Replies
Post Information Post
+1
0
-1
November 11, 2010 - 1:41pm
Guest

Do you have debug symbols enabled and optimization disabled?

+1
0
-1
November 15, 2010 - 2:42pm
Raisonance Support Team

Hi,

The ARM simulator is a core simulator, the peripherals are not simulated. Which means that you need to connect some RS-232 terminal to your hardware to see your Hello, World!

Concerning temp variables, you must disable the optimizations, or the variable will get away. Another way to "keep" he variable is to qualify it as "volatile".

Regards,

+1
0
-1
November 24, 2010 - 8:56am
Guest

HI

Fine. it helped.

regards

Babu