Skip to main content
Visitor II
December 20, 2018
Question

Build Fails in Release Mode in STVD Cosmic Toolset MCU STM8S207CB

  • December 20, 2018
  • 1 reply
  • 586 views

This is regarding Example project STM8S_StdPeriph_Examples.

i'm using STVD, Cosmic Toolset to build the project. it builds successfully in Debug mode.

when i change the mode to release mode, build fails with one of the error as below

#error cpstm8 ..\..\main.c:29 can't open stm8s.h

    This topic has been closed for replies.

    1 reply

    Visitor II
    December 28, 2018

    As far as I remember, the release mode is just a different project setting on the same source file. You might have to copy paste the default search path in the project "release" settings. Typically the compile options are different. In debug mode, the compile optimisations are disabled so you can step by step in debug mode. In Release mode, you will compile optimized for size or speed and breakpoints are harder to place where you wish them to be.