Questions tagged [stm8]

Low-cost 8-bit microprocessor family with a stack pointer, and a unified address space Harvard architecture. Don't use for STM32!

70 questions
22
votes
10 answers

STM Microcontroller burns every time

I have some experience working with stm32 but I only ever used them on dev boards. I recently tried to solder stm32 and stm8 on a simple break-out board and program them with my st-linkv2 clone. On first power up, the mcu makes some little noises…
NXP
  • 391
  • 2
  • 10
4
votes
5 answers

Would writing to the same flash address reduce the lifespan of an MCU?

I am using an STM8 microcontroller. Since the vector table is in flash memory, I need to write to flash memory in order to create and use the vector table. Since addresses of vector tables are fixed, my code writes the same values to the same memory…
4
votes
0 answers

STM8 nested interrupt bug, not described in current errata sheet ES019

If main process execute WFI with AL bit set in CFG_GCR, changing I1/I0 priority bits in the ISR cause CPU stalled when nested IRQ occured. Preconditions: all ITC_SPR1 registers has default value 0xFF. Enable TIM4 with generate interrupts on…
4
votes
1 answer

Is it possible to communicate single SPI slave with Two SPI masters

I am using two STM8 micro-controllers as SPI masters. Master-1 is configured in full duplex mode. And the Master-2 is configured in Receive-only mode. The CS, MISO, MOSI and SCLK lines of Master-1 are connected to the Slave. The CS, MISO and SCLK…
GShaik
  • 167
  • 2
  • 10
4
votes
3 answers

What does "Low density device" mean? About STM8 / STM32

STM32 and STM8 devices have some types: Low density devices Medium density devices High density devices About what "density" mean? About quantity of periphery or about quantity of flash or something else?
Ilya A
  • 65
  • 1
  • 7
3
votes
1 answer

How to use the "ground-referenced" comparator on this microcontroller?

I chose to use an STM8L101F3P6 low power microcontroller for a sensor node. This microcontroller, however, lacks an ADC and instead implements 2 comparator units with a block diagram presented on its reference manual : I was going to use the…
Tirdad Sadri Nejad
  • 1,735
  • 1
  • 9
  • 17
3
votes
2 answers

What is STM8 hardware and software interrupt latency?

Just have a first look over the STM8 lineup to compare its performance to AVR which is well know for me now. One of my the big complain to AVR was the slow reaction to interrupts especially in C compiled code. To describe the problem please see the…
Roman Matveev
  • 2,942
  • 7
  • 32
  • 75
3
votes
1 answer

How to flash protected STM8 MCU?

I would like to flash a new firmware on my STM8L15xC8. I have ST Visual Programmer (STVP) installed and can successfully flash the MCU of the STM8 Discovery board. Now, I setup the STM8 Discovery board to flash external applications. However, when I…
Rolf
  • 211
  • 1
  • 2
  • 7
2
votes
1 answer

STM8 TIM2 interrupt not taking place. What am I missing?

I've just started using STM8 microcontrollers, specifically the STM8S003F3P6 chip, in my own custom test board. The board works and I am able to blink an LED on PA3 without using an interrupt. However, when I try to make the blink take place in the…
dynamag
  • 127
  • 1
  • 7
2
votes
2 answers

Controller area network received message filtering mechanism

I am working on some CAN communication project which allows us to control some external device attached to one node from some other node. The CAN bus is a broadcast network and hence a message sent by a node will be received by every other CAN node…
amit kr
  • 31
  • 4
2
votes
1 answer

UART receive is not working in STM8S

I am new to stm8 (stm8s003f3p) I have done following code but could not able to find what is wrong with it. UART transmit is working but couldn't able to receive anything. #include #include #include void…
yogesh singh
  • 65
  • 1
  • 8
2
votes
2 answers

STM8L Timer 1 unexpectedly low overflow frequency

I'm running the MCU off the high speed (16MHz, confirmed) internal oscillator and I've configured timer 1 to overflow with maximum overflow frequency: /* No system clock pre-division, overflow upon reaching 0x0001 (starting from 0x0000)…
andrey
  • 504
  • 1
  • 5
  • 18
1
vote
0 answers

STM8L DMA and ADC out of sync

I have STM8LDiscovery (with STM8L152C6T6 CPU). I need to continuously read 2 ADC channels with writing the data to the memory. I'm doing my project in IAR EW for STM8 v. 3.11.4. I run into the problem: channels data (ADC_DATA) continuously…
Roman Matveev
  • 2,942
  • 7
  • 32
  • 75
1
vote
1 answer

STM8S I2C - Stuck while generating START condition

I'm trying to make an i2c scanner (just like the arduino one) for the STM8S005K6 but I can't seem to even generate a start condition for the communication to begin. I have to say, I've never used STM8 or the STVD IDE and I'm learning by myself with…
fpp
  • 159
  • 9
1
vote
0 answers

Interfacing with BME280 via STM8L101F3 via SPI

I'm trying to use the BME280 via an STM8L101F3. However I cannot seem to get any data from the sensor. As a start I would like to read the chip ID to verify that everything is working. However, I have not found a suitable library that works with the…
1
2 3 4 5