cancel
Showing results for 
Search instead for 
Did you mean: 

Build Fails in Release Mode in STVD Cosmic Toolset MCU STM8S207CB

SKela
Associate II

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

1 REPLY 1
S.Ma
Principal

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.