Forum : ST7/STM8
Post Information | Post |
---|---|
September 15, 2010 - 11:21pm
|
I'm getting this error: compiling the following code: #include #define DELAY_10_US() do { \ static void fail() If I comment out the testvar assignment at the end it compiles fine. C:/Program Files/Raisonance/Ride"/bin/RCSTM8.exe src/FailTest.c OBJECT\(src/FailTest.o\) PR\(src/FailTest.lst\) PIN\(""C:/Program Files/Raisonance/Ride"/inc/ST7"\) PIN\(""C:/Program Files/Raisonance/Ride"/inc"\) PIN\(.\) PIN\(lib/inc\) WRV\(0\) STM8\(SMALL\) DGC\(data\) AUTO OT\(7,SIZE\) NOIS CO SB LAOB NODEBUG I'm running it from a Makefile in Cygwin, hence the backslashes to escape the parentheses. I get the same error running from STVD, though. The compiler version string is: |
Hi,
Thanks for your report.
This problem has been reproduced in our labs and our engineers are working on it.
The problem comes from the o(3) optimization level, so as a temporary workaround you can compile this file as O(2).
The bug will be fixed in the next RKit-STM8 release.
Regards,