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

A better workaround for the STM8 division bug

Posted on August 02, 2015 at 18:11The STM8 has a bug inits division implementation relating to the use of the undocumented bit 6 of the condition code register (see ''Unexpected DIV/DIVW instruction result in ISR'' in various STM8 errata notes). ST ...

Error in section 5.4.4 of the STM8 CPU programming manual

Posted on August 02, 2015 at 11:04The text claims that incw y writes x and thus Figure 12 shows a pipline stall at the following ld a, (x). But incw y does not write x, and in fact Figure 12 does not show a pipline stall. I suggest to fix this secti...

swim error [30003]: detected hardware not compatible with software

Posted on July 27, 2015 at 10:00Hello, i'm trying to programm a M24LR-DISCOVERY board over the ST-Link V2 of a NUCLEO-F401RE board. As IDE i use ST Visual Develop with cosmic stm8 32k compiler. When i try to start the debugger i get the following er...

nheitz by Associate
  • 906 Views
  • 0 replies
  • 0 kudos

Need help understanding a piece of example code.

Posted on July 21, 2015 at 02:27I have a modified an example code from a STM8S300 to run on a STM8S105c6 Discovery, to output to a LCD.   OK, it almost works, it compiles (using IAR workbench), it links, it loads into the STM8sDiscovery, but it hang...

machine cycles - for instruction

Posted on July 16, 2015 at 17:05hi there!i´m using the Cosmic c compiler and STM8S microcontroller.i can´t find this information:how many machine cylces this function takes?for(conta=0;conta<10;conta++);it´s seem to me that the ''for'' takes 6 cycle...

External interrupt with ir sensor

Posted on June 26, 2015 at 15:27Hello I m trying to generate a interrupt using ir output but external interrupt is not responding.Im using stm8s003f3 and stvd .And it do respond with external interrupt as switch .  EXTI_SetExtIntSensitivity(EXTI_POR...

ekta by Associate II
  • 680 Views
  • 1 replies
  • 0 kudos

Tutorials for stm8 development using free software

Posted on July 10, 2015 at 20:16Recently, I updated my tutorials for using sdcc on the stm8 for sdcc 3.5.0, fixed a few typos, and most importantly: New tutorials for WaveShare development boards¹², and serial I/O on the STM8L-DISCOVERY. The total n...