cancel
Showing results for 
Search instead for 
Did you mean: 

How to test FLASH_EraseBlock() in STM8AFxx using STVD

Siva Sankar Chandika_2
Associate II
Posted on December 18, 2017 at 15:18

I followed the below steps to execute the Sample code provided by ST.

 - For Cosmic Compiler:

  1- Uncommented the ''#define RAM_EXECUTION  (1)'' line in the stm8s.h file,

0690X00000609G7QAI.png

  

  2- In STVD Select Project\Settings\Linker\Category ''input'' and in the RAM section

    add the FLASH_CODE segment with ''-ic'' options.

0690X00000609FxQAI.png

still I am unable to test the FLASH_ProgramBlock(), FLASH_EraseBlock().

By doing the above settings execution is not entering in to 

FLASH_ProgramBlock(), 

FLASH_EraseBlock(). APIs when I am placing breakpoints.

please let me know any thing I have to set in STVD or Sample Code to edit.

I am looking forward for your response.

Thanks in advance. 

Siva Sankar Chandika

0 REPLIES 0