Hello all,
I've just installed the 8k limited version of IAR for STM8 controllers and I'm testing it with the stm8s103f3P6.
When testing the interrupts I've included the "iostm8s103f3.h" header and started having the following error:
Error[Pe018]: expected a ")" C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.3\stm8\inc\iostm8s103f3.h 1164
inspecting the header file I see that the error is being generated by the OPT bit in the following structure:
/* Flash control register 2 */
#ifdef __IAR_SYSTEMS_ICC__
typedef struct
{
unsigned char PRG : 1;
unsigned char : 3;
unsigned char FPRG : 1;
unsigned char ERASE : 1;
unsigned char WPRG : 1;
unsigned char OPT : 1;
} __BITS_FLASH_CR2;
#endif
__IO_REG8_BIT(FLASH_CR2, 0x505B, __READ_WRITE, __BITS_FLASH_CR2);
If I change the OPT bit name for OOPT for example the error disappears and everything is ok.
Does someone know why does this happens?
Thanks in advanced,
best regards, Mauro.