STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

STM8 EEPROM unlocking bug - it has been 8 years apparently

Hi!There is an issue with unlocking the EEPROM on STM8 (probably all of them, but I am using STM8L151). This article summarizes the issue very well: https://slime.systems/content/stm8-eeprom-bug/There it says it was first found in 2013, and here we a...

SLasn.1 by Associate II
  • 451 Views
  • 0 replies
  • 0 kudos

Data EEPROM area overwritten with each STVD debug session

Hi. I'm using the STVD IDE with Cosmic with an STM8TL52F4 MCU with the 'Minimize Code Size' compiler option selected. Under Debug instrument->ICD MCU configuration->Options, I set the DATASIZE_bit6 Value to 1 (the other DATASIZE bits are 0) and made ...

what does the line 6 wait do?

void sEE_ReadBuffer(uint8_t* pBuffer, uint16_t ReadAddr, uint16_t* NumByteToRead) { //__IO uint32_t timeout = 0xFFFF; __IO uint32_t timeout = 0xf00; /*!< Wait the end of last communication */ for (;timeout > 0; timeout--);   /* Set the poin...

STM8s E2P (can't manage flash status register bits)

Hi all, I'm working on STM8S104kT6 mcu and I'm tring to get manage E2P.I have a couple of problems:1) EOP Bit is not set (it is always in reset state) even after a writing2) I can't lock E2P (or flash): PUL & DUL bits in FLASH_IAPSR Register are away...

CChia.0 by Associate
  • 439 Views
  • 0 replies
  • 0 kudos

STM8L EEPROM Block Programming

Posted on June 04, 2018 at 08:05 Hello I'm use STM8L151G6 I'm trying use block programming as below: //Unlock EEPROM memory FLASH_Unlock(FLASH_MemType_Data); while (FLASH_GetFlagStatus(FLASH_FLAG_DUL) == RESET); FLASH_ProgramBlock(0,...

EEPROM invalid values

Posted on June 24, 2015 at 09:04Hello, I'm pretty new in STM8 programming. I'm making small project on STM8S103F3P6 microcontroller and I need to save some (27 bytes) values in EEPROM memory and reload them at every power up. I saw an example from S...

EEPROM

Posted on March 10, 2014 at 08:34Hello, I need help regarding writing data in EEPROM using standard block write operation. Problem is I am unable to execute the steps given in PM0051 in C++. It says that the routine for block write must be executed ...

UNABLE TO MODIFY EEPROM

Posted on February 03, 2014 at 12:57Hello,I am having issues writing data into EEPROM of Stm8s003K3. I am using Stm8s Discovery development board and IAR IDE.I know the algorithm of unlocking the eeprom.I have attached the code I am using. The probl...