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

GPIO in interrupt handler

Posted on August 30, 2011 at 02:22I'm trying to create an interrupt handler that will toggle an LED on and off very quickly  (as a basic test, my end goal is to eventually do much more than that). Right now I have an interrupt handler which is confi...

jordan by Associate
  • 1007 Views
  • 4 replies
  • 0 kudos

Looking for example code TSL V.2.4.0 for STM8S105C6, STM8S103K3

Posted on August 22, 2011 at 11:33I try to modify code from TSL V.2.4.0 in ''Example01_STM8S207_RC_5k'' for run on STM8S103K3 and STM8S105C6. Test on board STM8S discovery (for STM8S105C6). Follow TSL document to modify code but it not work. LED is ...

STM8L15x internal RC oscillator calibration

Posted on June 23, 2011 at 14:43Dear,The allowed tolerance of oscillator frequency in my planned application is 1%. I'd like to use HSI and periodically to calibrate it. There is an application note describing the process + SW code. The method appli...

elil by Associate III
  • 436 Views
  • 2 replies
  • 0 kudos

Linker Error message

Posted on August 13, 2011 at 16:21I am getting a linker error message that I cannot find a way to resolve - here is the error:Running Linkerclnk -l''C:\Program Files\COSMIC\CXSTM8_16K\Lib'' -l''C:\Program Files\COSMIC\CXSTM8_16K''  -o Debug\newarmou...

GPIO struct parameters not initialized

Posted on August 05, 2011 at 12:26The GPIO struct is defined but it is not initialized before it is used in main.  Everything works but I am stuck with trying to find a value that I can use in GPIO_Init.  GPIOx->CR2 is OR'd with another value and I ...

STVD displays ''The parameter is incorrect''

Posted on March 26, 2011 at 04:17Just received my STM8L-Discovery, installed STVD 4.2.1 and Raisonance compiler. Whenever I hit F7, STVD shows this non-descriptive message ''The parameter is incorrect''. After that, the only way to exit the applicat...

EXTI not work correct

Posted on August 04, 2011 at 08:53When I use PA6,PD6 is EXTI_Trigger_Rising_Falling.When PA6 go H-->L, it generate interrupt, but When I keep PA6 still Low, and PD6 go H-->L, it not generate interrupt. Please help me. void main() {     CLK_SYSCLKDiv...

np1 by Associate II
  • 650 Views
  • 4 replies
  • 0 kudos

stm8l, eeprom, dma - problem of access

Posted on June 06, 2011 at 11:56 If writing (erasing) byte(word, block) in the eeprom memory, DMA transaction occurs on the periphery of RAM (tested only this type of transfer) of the microcontroller hangs (not working). The documentation no found ...

Software simulator.

Posted on August 02, 2011 at 19:30I'm trying to us the software simulator to simulate the 207S6 but the internal registers don't seem to be working correctly. The reset value are all ff's. The ADC doesn't seem to function as well as the timers anyon...

u32 =u16*u16

Posted on July 30, 2011 at 02:39Never used the Cosmic complier before do I require any header like math.h to do a u16*u16 into u32 doesn't seem to do anything.