Hello, in IAR I can define a variable in specified data segment: #pragma dataseg=START8_1 Ttimer8 TIM_uc8Start1;
How to do the same in Keil?
M.
I get an error if I use it like here: #pragma ASM START8_1 SEGMENT DATA #pragma NOASM Ttimer8 TIM_uc8Start1;
The error is: error C272: 'asm/endasm' requires src-control to be active
Why?
If you define the variable in a 'C' file all on its own, it will get its own segment.
Alternatively, could you not just define it in Assembler, then referemce it as an extern in 'C'