Forum : ARM
Post Information | Post |
---|---|
November 10, 2010 - 2:28pm
|
Hi The following is a part of code which we are debugging with RLINK Pro for STR912Fw44. RKit –ARM version :1.26.10.0130
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 |
Do you have debug symbols enabled and optimization disabled?
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,
HI
Fine. it helped.
regards
Babu