cancel
Showing results for 
Search instead for 
Did you mean: 

Using STVD and STVP for STM8L-Discovery board--Build Debug & Release

IC_DOC
Associate II

Building Discovery Debug and Release errors

STM8L152C6 MPU

  1. How to set full path when building to show details?

  2. I read somewhere that there is a selection for building a lengthy display. Where is this explained, please? Where is the COSMIC C compiler list option entered to get listing outputs? Any other flags or entries to get full listings shown and saved?

  3. Error building the Release:  ..\..\..\..\libraries\stm8l15x_stdperiph_driver\src\stm8l15x_adc.c:

The command: "cxstm8 -i..\..\..\..\libraries\stm8l15x_stdperiph_driver\inc -i..\..\inc -i..\..\..\..\librairies\stm8l15x_stdperiph_driver\inc +mods0 -pp -i"C:\Program Files\COSMIC\CXSTM8_32K\Hstm8"  -clRelease\ -coRelease\ ..\..\..\..\libraries\stm8l15x_stdperiph_driver\src\stm8l15x_adc.c " has failed, the returned value is: 1

exit code=1.

discover.elf - 2 error(s), 0 warning(s)

 

No errors for Debug Build

           How to see what the Release Build error was and where? How to fix?

  1. Does the C compiler, linker, etc., determine what goes to EEPROM and Flash? How is this assigned? Is this designer-coded or partitioned?

  2. Why can’t EEPROM and Option Bytes be read via STVP?

  3. Where can I find the Bootloader code? Cannot read Bootloader 0x6000 onward. Is this just requiring a following of the Bootloader logic flow diagram?

  4. I read somewhere that there is a selection for building a lengthy display. Where is this explained, please? Where is the COSMIC C compiler list option entered to get listing outputs? Any other flags or entries to get full listings shown and saved?
  5.  

Cannot Read STM8L152C6T6:

0x00 1000-0x00 10FF

0x00 1100-0x00 11FF

0x00 1200-0x00 12FF

…………

0x00 1700-0x00 17FF

Option bytes 0 0x00 4800-0x00 487F

All feedback is most welcome! Thanks.

14 REPLIES 14
IC_DOC
Associate II

I had this working now for Debug and Release but have a new problem using STVD. When I bring up STVD and Discovery.stw, the upper right area windows that used to show Debug and Release is missing. It should look more like UM0991 pg 33/52 Figure 26 where there are two boxes that in this particular intro example case show stvd_project and Debug where it should show Debug and Release options for this Discovery project. I tried to attach a screen capture file but that does not work with Reply..

I also get discover.wed errors with access permission failure but ignoring this still worked for Buildings.

 

Any ideas why the problem and a fix? Thanks.

 

Right click in the toolbar area and be sure that project is checked.

IC_DOC
Associate II

Yes, it is selected.

 

Delete the WDB and WED files that have the same name as the workspace.This solved my missing top level menu problem as well as messed up toolbars showing up in places that I couldn't move or delete.

IC_DOC
Associate II

Wow! This worked. Amazing that you found this glitch. I renamed the files to a leading underscore that they will remain in existence but not accessed by the Build. The Build still tries to modify the discovery.lkf file but I write protected it and that seems to be OK. On starting STVD, I do get an access issue to discovery.wed but ignore it.

Thanks very much.