DEBUG macro with CMSIS driver library

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DEBUG macro with CMSIS driver library

642 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sipel_tp on Thu May 10 11:52:18 MST 2012
I created a new project using CMSIS library v2.0. After that I importted to the project the CMSIS driver libraries. When I try to build the project the next warning message appears: "DEBUG is redefined in lpc17xx_libcfg.h". If I comment the line where DEBUG macro is wirtten in lpc17xx_libcfg.h there is no  warning messages. My question is: Where has DEBUG macro been defined?? I can't find it in any file. What is the macro for?? Thank you for your answers.
0 Kudos
Reply
3 Replies

630 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by atomicdog on Thu May 10 18:59:14 MST 2012

Quote: sipel_tp
and what is the DEBUG macro for???

It's used to conditionally compile code so debug/test code only gets compiled when the macro is defined.
0 Kudos
Reply

630 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sipel_tp on Thu May 10 13:16:00 MST 2012
and what is the DEBUG macro for???
0 Kudos
Reply

630 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Thu May 10 12:12:57 MST 2012

Quote: sipel_tp
I can't find it in any file



Project->Properties->C/C++ Build->Settings->Tool Settings->MCU C Compiler->Symbols->Defined symbols
0 Kudos
Reply