Questions tagged [stm8]

The STM8 is an 8-bit microcontroller by STMicroelectronics.

76 questions
1
vote
0 answers

How to make Vector CANOE recognise the STM8 board connected via the interface?

I tried to program the STM8 board to send CAN messages which can be viewed with the help of Vector CANoe. However the messages are in pending state and I am not able to make the Vector CANoe recognise the stm8 board connected via the hardware…
rin
  • 21
  • 4
0
votes
1 answer

stm8s003f3 tim2 configuration

i am using stm8s cosmic c compiler and i am trying to config tim2 for 350uS(350uS should be the pulse width). As per the reference manual tim4 is 16-bit with prescaler factor of 32768. I will be using internal 2mhz clock my calculations are as…
nyl
  • 1
0
votes
1 answer

Stm8 assembly instructions

I am trying to learn some basic fw reverse engineering but I need some help. I am complete novice when it comes to asm but I do have some background on other languages. What does the following line do? I get what cpl does but the instructions after…
FunkyAP
  • 11
  • 4
0
votes
0 answers

How to configurate an external ADC chip in conjunction with stm 8

I am a beginner programmer of microcontrollers. My project uses stm8l051f3 and NSA2860X-QQNR chip. I am trying to get a value from one of the ADC inputs (TDATA) to the microcontroller. I use the SPI interface. It all works on the button. When I…
KSGR
  • 1
  • 1
0
votes
0 answers

How can I Initialize TIM1 as Capture Interrupt at Channel 4 for CD4060 Pressure Sensor using STM8?

I want to INITIALIZE TIM1 as Capture Interrupt for CD4060 Pressure Sensor. Can someone help me with this I wanted to know weather my code is correct or if there are some thigs which need to be changed, for capturing…
Vishnu A S
  • 11
  • 1
0
votes
0 answers

Failed to start GDB

I was trying to debug my project in STM8 STVD today and I got these two error messages. I've never had this problem and I didn't change anything in this project. Some suggest that I should edit the gdb.ini file but I'm not able to edit it. Also I…
user20560622
0
votes
0 answers

SPI communication on STM8 controller doesn't work

I'm trying to send data through spi with the Stm8 controller. The problem is that I can't see anything happening on the oscilloscope (even the SPI clock doesn't show) on the pins 6 and 5 with this code: #include "stm8l15x_spi.h" #include…
user20560622
0
votes
0 answers

Rapberry pi 4 serial communication with STM8S208RB not working properly

I'm trying to connect a raspberry pi 4B to a NUCLEO-8S208RB using serial communication connecting the device through tx/rx pins. Data sent from the STM board gets received by raspberry, but messages from raspberry get lost. Transmission works fine…
Kingsley
  • 25
  • 4
0
votes
1 answer

how to make stm8s003f3 do 38khz frequency on timer1?

i want to do some rc5 transmitter project. i already have a circuit with a stm8s003 to send data and a ne555 to make 38khz frequency. with connect them together and send the specific data my rc5 transmitter works fine and its no word about it. but i…
0
votes
1 answer

Refering in code to section placed in RAM, cause linker error [Lc036]

STM8, IAR compiler. Im trying to place changable interrupt vector table(IVT) in RAM(ram_ivt_section or RAM_IVT), stating from 0x00 address. Prereq: Hardware entry point(base_ivt_section or IVT_TO_RAM block) already replaced and redirects to this RAM…
user7516326
0
votes
1 answer

SDCC generates unnecessary division by zero

I'm using SDCC to compile for a STM8 microcontroller. Compiling the following file results in a seemingly unnecessary div instruction - which is very slow on the STM8. char a[1]; char b; void foo() __interrupt(1) { char c = a[0]; b = c >>…
user2248702
  • 2,741
  • 7
  • 41
  • 69
0
votes
1 answer

How to get STM8 interrupts working properly

I want a main routine that runs continually but can be interrupted. I am at a loss as to how to get the UART or ADC interrupt to work properly. They only behave as expected if my main loop has wait-for-interrupt (i.e. goes into low power mode). I…
manny
  • 1
  • 1
0
votes
1 answer

stm8 uart tx interrupt issue

I am programming a STM8S103F3 to TX on UART via interrupt. I understand a write to DR after "Transmit data register empty interrupt" will start another TX, so I have this in my ISR. But it only works if my main loop spins on wait for interrupt. If…
manny
  • 1
  • 1
0
votes
1 answer

"invalid indirection operand" error when passing a struct to function in Cosmic compiler and STM8

I am writing a firmware for stm8 with Cosmic compiler and in ST Visual Develop. I am using astruct as the following: typedef enum { lcBlack = 0, lcRed, lcGreen, lcOrange } led_color_t; PUBLIC typedef enum { lppEmpty, …
vouria
  • 25
  • 3
  • 9
0
votes
1 answer

Issue in interfacing E-Ink display with STM8S103F3P6 microcontroller

I am using Waveshare 1.54" ePaper Module. Using SPI peripheral: CPU freq is 16Mhz SPI Prescaler DIV by 8 MSB FIRST CPOL=0, CPHA=1 The Display does not response but it respond with TI CC1310 properly. The problem with SPI is after transmitting byte…