STM8 MCUs

Discuss STM8 microcontrollers, including SWIM, USART configurations, RTC usage, ADC issues, and debugging.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Question to COSMIC compiler experts

Posted on November 29, 2016 at 21:19Hello, I briefly. How to implement critical section compatible with __monitor or __critical directives in other compilers? And how to pass the offset of stack of the local variables into inline assembler directive...

IAR STM8S103F3P6 SPI transfer

Posted on November 29, 2016 at 21:13There is a problem with the transfer on SPI how to track that this left?! Here is the function code for the transfer of bytes via SPI and a picture with a logic analyzer, circled in red, what confuses me is that f...

0690X00000602o7QAA.jpg
gafbich by Associate
  • 464 Views
  • 0 replies
  • 0 kudos

Need to modify a URC-6131, URC-6011, etc for JP1?this may help you

Posted on November 29, 2016 at 09:37If you have a store bought URC-6131, URC-6011 (aka URC-6012) or any other remote that needs an EEPROM added and you're thinking of modifying it yourself so you can program it using JP1, please read on. How do you ...

Problem with flash programming (SWIM) and memory protection

Posted on November 27, 2016 at 13:53Hi! I'm trying to implement a SWIM programmer using only the datasheets, for an STM8S003F3. I have got the basics working (swim entry, rotf, wotf, srst). An I've been trying to figure out how to actually program t...

mats2399 by Associate II
  • 787 Views
  • 2 replies
  • 0 kudos

STM8 internal temperature sensor

Posted on September 06, 2016 at 10:20I am working on a project, which is based on STM8 MCU. I am using ADC to read the ambient temperature. Sometimes I am getting temperature ADC readings which are greater than the usual ones. Most of the time the s...

jakub23 by Associate
  • 672 Views
  • 1 replies
  • 0 kudos

ADC interrupt in cosmic

Posted on November 16, 2016 at 12:55Dear all I tried to read  ADC1 channels in stm8 in cosmic compiler, but still I could not. as far as the main program start to config the ADC1 initialization nothing happen. I do not know what the problem is with ...

Resolved! STM8 and STVP: how to flash .HEX file

Posted on November 21, 2016 at 13:34Hi everyone. I have an .HEX file that I would like to program in a STM8AF62A8 MCU. I load the .HEX into STVP and it seems to be flashing the memory correctly because I can see some of the application's startup ou...

jorge23 by Associate
  • 1726 Views
  • 1 replies
  • 0 kudos

STM8L, I2C random infinite loop on 2nd I2C peripheral

Posted on November 16, 2016 at 17:46I've narrowed the issue down to the program getting stuck in a while statement indefinitely.  Per the attached file, it is looping indefinitely at line 361.  Nicolas Fillon said I needed to implement some reliabil...

How to use math functions in Cosmic and Raisonance?

Posted on July 25, 2015 at 18:48I wanted to compare how the most important C compilers for STM8 perform on some standard benchmarks. However, I've run into a problem with Whetstone: I get linker errors for the math functions in the Cosmic and Raison...