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

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
  • 1122 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
  • 689 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
  • 1532 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
  • 466 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
  • 598 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
  • 667 Views
  • 0 replies
  • 0 kudos

Assign register value to variable

Posted on June 06, 2011 at 21:05Good day! I'm trying to assign register value to a variable in COSMIC C. I've tried the obvious way first, but it doesn't work: uint8_t test = 0; ... test = CLK->SWCR; // define from stm8s.h and uint8_t test = 0; ......

artvolk by Associate II
  • 805 Views
  • 2 replies
  • 0 kudos

STM8L vs PIC18 code density benchmark

Posted on June 03, 2011 at 18:00Hello, I have an existing platform that I've recently built on PIC18. Soon I'm starting a new project that is very price sensitive. Currently the existing platform occupies too much code memory, avoiding me to take ...

elil by Associate III
  • 507 Views
  • 0 replies
  • 0 kudos