Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
emBitz Not Finding Symbols
#1
Workalot is building an LPC1837 project. A point in time has occurred where the below GCC message is emitted...

"error: 'SCU_PINTSEL0_INTPIN0_Msk' undeclared (first use in this function)"

SCU_PINTSEL0_INTPIN0_Msk is #define'd in lpc18xx.h and is #include'd in the module generating the compile error.

Tried "Reparse this project" and tried "Reparse this file" but both actions are silent. Tried system shut down etc.

Many thanks,
Reply
#2
(09-12-2017, 08:44 AM)Workalot Wrote: Workalot is building an LPC1837 project. A point in time has occurred where the below GCC message is emitted...

"error: 'SCU_PINTSEL0_INTPIN0_Msk' undeclared (first use in this function)"

SCU_PINTSEL0_INTPIN0_Msk is #define'd in lpc18xx.h and is #include'd in the module generating the compile error.

Tried "Reparse this project" and tried "Reparse this file" but both actions are silent. Tried system shut down etc.

Many thanks,

Workalot was a bit lazy. 

Among the 32, 289 lines of code in lpc18xx.h is...

#ifdef CMSIS_BITPOSITIONS

#endif

... which surrounded the bit position #define(s).

By having CMSIS_BITPOSITIONS as a project symbol all is good.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)