Hello, I have IAR EW 2.28 and do the following:
unsigned long a;
a = (1 << 22);
And the compiler generates a Warning: "Shift Count too large". Also in the simulator I get 0 as Value for a. But Unsigned long must have 32 Bits or not? Why I can't shift at positions bigger than 15? (15 causes no warning, 16 yes).