Skip to main content
Visitor II
January 6, 2010
Question

Compiling in release mode not possible

  • January 6, 2010
  • 5 replies
  • 1282 views
Posted on January 06, 2010 at 10:49

Compiling in release mode not possible

    This topic has been closed for replies.

    5 replies

    lars2Author
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:06

    Dear,

    I programmed at STVD in C and used also some ST-firmware-functions. When I build the project in debug mode everthing is working fine.

    When I try to build the project in release mode there are many errors just building the first stm8s-firmware file ''adc1.c''. (Errors: bad struct, not defined ...)

    I'm using the STM8 Cosmic compiler and STVD 4.1.2!

    I hope this problem can be solved quickly.

    Regards,

    Lars

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:06

    that's strange.. please post the command lines generated by STVD to the compiler for both cases.

    Regards,

    Luca (Cosmic)

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:06

    Hi,

    I'm no STVD expert, since it's not a Cosmic product, but the list of include paths is different in the two cases, and the problem might come from there.

    Hope it helps.

    Luca

    lars2Author
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:06

    These are the messages from the output window.

    Regards,

    Lars

    lars2Author
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:06

    Hi Luca,

    many thanks. Now it works. You gave me the right direction. The uC-type wasn't included in the Preprocessor Definitions in release options.

    Thanks and regards,

    Lars