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

string.h library and strncmp function

Posted on June 30, 2011 at 00:16Hi, I want to use strncmp function in my code [ if (strnicmp(temp, GPVTG, 5)) ], but I've got an error: &sharperror cpstm8 ..\..\src\main.c:278(12) missing prototype I have string.h file in my include files, but I th...

pietruha8 by Associate II
  • 3397 Views
  • 7 replies
  • 0 kudos

Wait states

Posted on July 05, 2011 at 12:55Hi, I have question regarding STM8S wait states. When exactly wait states are executed - every access to XFLASH or every instruction feed? I want to clock my MCU with 24Mhz crystal oscilator (1 wait state) and I need ...

maestr0 by Associate
  • 662 Views
  • 1 replies
  • 0 kudos

Cosmic CXSTM8 Comiler Error - Invalid Constant Expression

Posted on July 03, 2011 at 23:15I'm porting some code designed to run on a Nordic nRF8200 to an STM8L152C6. The code was orginally compiled using Keil C5. I am using the Cosmic CXSTM8 compiler. I am getting a compiler error 'Invalid Constant Express...

.bsct size overflow (discovery, cosmic)

Posted on June 20, 2011 at 22:53Hello everyone, I've got problem with compilation of my application Running Linker clnk -l''C:\Program Files\COSMIC\CXSTM8_16K\Lib''  -o Debug\stvd_project.sm8 -mDebug\stvd_project.map Debug\stvd_project.lkf #error ...

pietruha8 by Associate II
  • 1038 Views
  • 3 replies
  • 0 kudos

How to use GPIO external interrupts

Posted on June 24, 2011 at 07:31Hi, Port-c pc6 is connected to a 50 Hz square wave signal, the problem is the variable cCounter did not increment in the port_c_isr, so the PC4 pin did not toggle, please advise about the solution. Thanks ==========...

asim1108 by Associate II
  • 637 Views
  • 2 replies
  • 0 kudos

Boolean variable segment in STVD

Posted on June 14, 2011 at 17:20Here's a question for the STVD & Cosmic gurus!  Since bit instructions in the STM8 do not utilize the zero page addressing I wanted to move the ''.bit'' section out of the ''Zero Page'' and into ''Ram'' so I'd have mo...

jdf25252 by Associate II
  • 1320 Views
  • 4 replies
  • 0 kudos

STM8S and Android

Posted on June 12, 2011 at 19:42Hi all,does it exist libraries and a toolkit for STM8S able to connect through Bluetooth smart phones android based to STM8S? Is there any plan to devolop it?brazov2

brazov22 by Associate II
  • 433 Views
  • 1 replies
  • 0 kudos

STM8S-Discovery and 24bit ADC

Posted on April 27, 2011 at 15:42Hello All: In my company we are working with STM8S-Discovery and a Texas Instruments ADC ADS1231. We are trying to communicate via SPI but so far we have not been successful. Does anyone have experience with externa...

darea by Associate
  • 544 Views
  • 2 replies
  • 0 kudos

6 step PWM on STM8L15x

Posted on June 10, 2011 at 14:50Hey! I'm trying to make sensorless BLDC control unit on STM8L15xxx MCU. High-side switches of drive circuit are opened by logical ''1'', and low-side - by logical ''0''. So I need to perform six-step trapezoidal com...

kirlik by Associate II
  • 628 Views
  • 0 replies
  • 0 kudos