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

Library Compatibility Between STM8L 15x and 10x

Posted on October 26, 2016 at 21:30Are the example libraries compatible between similar MCU's? For instance the STM8L15x StdPeriph_Driver includes stm8l15x_pwr.c/.h  but the STM8L10x StdPeriph_Driver does not have those.  I was wondering if I could ...

nick2399 by Associate
  • 460 Views
  • 0 replies
  • 0 kudos

Compile DATE and TIME constants, Cosmic

Posted on October 17, 2016 at 11:20Hi,I used to work with Microchip PICs and the compiler c18 provided string constants holding the compile time & date, updated in compile (or link ?) time; examples:__DATE__ == ''Jul 08 2016''__TIME__ == ''10:56:03'...

LIN Transciever

Posted on October 25, 2016 at 07:47Hello all, I am using NXP's  TJA1028T/5V0/20/1J  LIN transceiver with STM8 board. To bring LIN transceiver into ''Normal Mode'', is it mandatory to feed 5V supply to EN pin and VBATT pin of transceiver?  I have fed...

Setting up the programming environment for STM8s003f3P6?

Posted on October 20, 2016 at 07:51i am learning to program in embedded C by myself and i have bought an stm8s003f3P6 microcontroller and  a STLINKV2 programmer to program device and i under i can use STVISUAL DEVELOPE code or IAR EMBEDDED WORKBENCH...

Configuration of Option bytes in source code, Cosmic

Posted on October 17, 2016 at 11:12Hi,is it possible to specify Options bytes in source file ?I mean something similar to what I use with Microchip PIC18 (in .c files):#pragma config  WDT = ON // WDT Enabled#pragma config  WDTPS = 256 // Watchdog pr...

Cosmic, compile without unused code

Posted on October 10, 2016 at 15:13Hi,I made a primitive program that calls few functions of Standard Peripheral Library / CLK and GPI modules, so source files  stm8s_clk.c + stm8s_gpio.c were added to project.After compilation I checked .map file a...

STVP Programming Toolkit - How to Unlock Chips?

Posted on September 13, 2013 at 18:37I've looked over UM0151 and have thus far successfully developed python code that can program STM8 chips using the discovery board programmer, and modify the image.I am trying to rapidly develop a programming/tes...

brad by Associate
  • 2859 Views
  • 2 replies
  • 0 kudos

ST Visual Develop Compile Error

Posted on October 14, 2016 at 09:02Hi, I used the ST Visual Develop with Cosmic STM8 free tools with no limits version to compile a C program. However, some errors were shown, ''&sharperror clnk debug\stm8 gerenal io program.lkf:1 can't open file de...

smwong by Associate
  • 579 Views
  • 0 replies
  • 0 kudos

I2C problem when use STM8AF6223 - Eeprom24C128

Posted on October 13, 2016 at 08:53 Hi All, When I use STM8AF6223 read data from eeprom 24C128,I can't poll RXNE flag. This is my code for Read Eeprom: uint8_t Read_EEPROM(uint8_t EepAddr,uint8_t RegAddr) { uint8_t data=0; /* check ...

0690X00000604yTQAQ.png

DAC for stm8l151G6U6

Posted on March 20, 2013 at 05:19Hi all, I used DAC and it OK on stm8l151C6T6,  this is 48pin MCU. But now i change to 28pin DAC.It not work:     CLK_PeripheralClockConfig(CLK_Peripheral_DAC, ENABLE);     DAC_DeInit();     DAC_Init(DAC_Channel_1, DA...

np1 by Associate II
  • 613 Views
  • 3 replies
  • 0 kudos