2018-12-20 02:15 AM
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
2018-12-27 10:35 PM
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.