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

RTC Clock 'hello world' program STM8L cpu

Posted on June 30, 2013 at 13:07Can anyone help with some code to use the RTC clock as a clock. I'm using the STM8L-Discovery board and not sure how to set the chips registers and to set / read time to the LCD display. I just need a 'hello world' pr...

Active/Halt wakeup with RTC

Posted on May 03, 2013 at 14:36Hi ,I am a new user of STM8.  In my project I am using Active/halt mode an it wakes up with RTC Wakeup operation. My problem is, it is always waking up same times. it's equal to 3ms. I want update auto wake up times. I...

Routing Interface (RI)

Posted on May 07, 2013 at 14:58I am using the STM8L151C6T6. I would like to route PD6 to TIM1 Input Capture IC2. The following code executes but does not change the RI_ICR1 register value and the routing does not take place either.     GPIO_Init(POR...

wynand by Associate II
  • 570 Views
  • 1 replies
  • 0 kudos

Define segment option -ck for interrupt vector using STVD (COSMIC)

Posted on December 21, 2012 at 04:11I am using COSMIC compiler in STVD.  I try to define segment option -ck for all program and constant.  I can use Project Settings->Linker->Input->Segment/Section to add option for all .const and .text.  But the in...

mtien888 by Associate II
  • 558 Views
  • 2 replies
  • 0 kudos

COSMIC LKF File

Posted on May 27, 2013 at 11:48Hi All, I want to execute some command in .lkf file for COSMIC Compiler condionally. is it possible?? Pseudo code is as below: /*--------------------------*/ #ifdef TRUE obj\libisl.sm8 #else obj\libis0.sm8 #endif /*---...

Storing some calibration data in FLASH memory

Posted on April 17, 2013 at 22:35Hello, I'm looking into storing some calibration data for my application into FLASH memory since my EEPROM space is very valuable and I cannot spare any of it. The cal data would only be written once (upon the first ...

use rs232 uart with stm8l discovery board

Posted on August 12, 2011 at 01:06Hi, I would like to use the uart device of the stm8l chip on the stm8l discovery board. I notice that uart and cristal are shared on the same pins (PA2 and PA3) Do you think it is possible to use the uart when the s...

pub by Associate
  • 495 Views
  • 1 replies
  • 0 kudos

Instruction Trap 0x83

Posted on May 03, 2013 at 18:38Hi. I have a program in STM8L152R8, my firmware has a size of 0xEFE1. I want to prevent that for any reason my microcontroller work bad. So, I want to fill  the rest of the hex file (0x901E) with 0x83 (interrup trap). ...

prueba2 by Associate II
  • 590 Views
  • 2 replies
  • 0 kudos

ROP and bootloader

Posted on June 27, 2012 at 18:20Hi,Does anybody knows how to jump properly to Bootloader entry point at adress 0x602D?I 've tried :#define BOOTLOADER_ADDR 0x602Dultypedef  void (*TFunction)(void);void JumpToBootLoader(void){const TFunction MainUserA...

jfelix by Associate II
  • 1430 Views
  • 9 replies
  • 0 kudos

How to change __iar_program_start address

Posted on March 05, 2013 at 08:10Dear all, i want to set '' __iar_program_start ''  in the absolute address(ex:0x9100). so, i am setting override default program entry and entry symbol is '' iar_reset ''. and program is: #pragma location = ''.CallBa...

ellisshz by Associate II
  • 788 Views
  • 1 replies
  • 0 kudos