This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Compile switch

Hi.

I am using two Project targets, a Debug and a Release, and now I what to test which one that is selected, but how do I do it?

#ifdef  Debug ?????????
  /* Set the Vector Table base location at 0x08000000 */
  NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0);
#else  /* VECT_TAB_FLASH  */
  /* Set the Vector Table base location at 0x08001800 */
  NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x1800);
#endif

I hope somebody can help me.

Soeren P.

Parents Reply Children