cancel
Showing results for 
Search instead for 
Did you mean: 

mode debug

o2399
Associate II
Posted on June 11, 2008 at 05:15

mode debug

3 REPLIES 3
o2399
Associate II
Posted on May 17, 2011 at 09:53

Hello,

I work with an ARM9 and with KeilµVision.

I use for my projet the ST library and the function debug() in the file 91x_lib.c. The function debug() it is use for initialised the pointer of the peripheral.But I don't understand why this function is use because if I don't select the mode debug, the pointer are initilised on the file 91x_map.h. That are the advantage of this function?

So if someone as a idea of this subject I will be :D !!

Thinks

mark9
Associate II
Posted on May 17, 2011 at 09:53

The difference is that in one case, the pointers are variables and in the other, they are constants. When they are variables, they are easier to view in a watch window than when they are constants (you can't easily add a constant pointer to the watch window). However, there is a performance penalty for using variables.

o2399
Associate II
Posted on May 17, 2011 at 09:53

Thinks for the response !!