Dears,
When build the project, it appears the Warning as below, would you please kinldy help to advice?
Warning : C4207: Invalid pragma push, missing #pragma pop (more #pragma push that #pragma pop occured)
And it happened in this position,
#pragma CODE_SEG __NEAR_SEG NON_BANKED
/*void interrupt VectorNumber_Vpit2 ISR_PIT2(void) */
vector 68 interrupt void ISR_PIT2(void) /* vector 68 */
{
//100ms //PITCFLMT=0;
PITTF |= 0x04;
Task_50ms();
//PITCFLMT=0x80;
}
#pragma CODE_SEG DEFAULT
Thanks,
Hi Ray,
Warining C4207 means "Invalid pragma pop, <description> The pragma pop
was used in a ill formed way. "
Please check your source code and related .h file if there is any "#pragma pop " missing.
attached video is a demo of C4207 warning reproduction and fix. Hope this helps.
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi,
Could you try this pragma:
#pragma CODE_SEG NON_BANKED
instead of:
#pragma CODE_SEG __NEAR_SEG NON_BANKED
If it does not help I'd recommend you to preprocess the file where warning occurs and try to search all #pragma push/pop.
Perhaps there is a header file that adds an extra pragma.
Stan.