Copy all source files from this example folder to the template folder under Project.In order to make the program work, you must do the following : This example has been tested with STMicroelectronics STM8/128-EVAL evaluation board and can be easily tailored to any other development board.This example runs on STM8S and STM8A High density, Medium density and Low density devices.FLASH/Data_Program/stm8s_it.h Interrupt routines declaration.FLASH/Data_Program/stm8s_it.c Interrupt routines source.FLASH/Data_Program/stm8s_conf.h Library Configuration file.Note: Within the main.c file, you will find details on the procedures to follow to execute FLASH_ProgramBlock() and FLASH_EraseBlock() functions from RAM. If Write/Erase operations passed LED3 will toggle. Check erase (using Read byte) if the program block operation failed LED2 will toggle.Erase block using FLASH_EraseBlock() function.Check program block (Read byte) if the program block operation failed LED1 will toggle.Program a block at a specified address (0x4000) by using FLASH_ProgramBlock() function.Once done, the following operations on the data memory will be performed: To unlock it, the FLASH_Unlock function is used. After Reset, the Flash memory Program/Erase Controller is locked.
This example provides a description of how to use FLASH Write/Erase Block mode on data eeprom memory. * See the License for the specific language governing permissions and * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * distributed under the License is distributed on an "AS IS" BASIS, * Unless required by applicable law or agreed to in writing, software * You may obtain a copy of the License at: * You may not use this file except in compliance with the License. * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License") * Description of how to program the STM8S FLASH Data Memory using