Skip to main content
Visitor II
June 11, 2008
Question

mode debug

  • June 11, 2008
  • 3 replies
  • 821 views
Posted on June 11, 2008 at 05:15

mode debug

    This topic has been closed for replies.

    3 replies

    o2399Author
    Visitor II
    May 17, 2011
    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

    Visitor II
    May 17, 2011
    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.

    o2399Author
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:53

    Thinks for the response !!