Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
2 votes
1 answer
60 views

I am porting the GetCurrentMicro function in the Arduino Core STM8 to my SDCC code and I noticed the Cosmic C Compiler _asm function allows me to return a result as well as an input in a C var. Is ...
Jonas's user avatar
  • 1,239
2 votes
0 answers
116 views

I've been working on a IR based light controller using STM8S microcontroller. Using this blog as reference text I've got the IR to work on pin PA1, according to my use case. The issue I'm facing is ...
1 vote
1 answer
66 views

Timer error 1 in STM8S003F3P I am writing code to create overflow 1s = Timer 1 to reduce the remaining_sec variable from 60 to 1. But the Timer often hangs for a while at random times. For example, ...
thanh cong's user avatar
1 vote
1 answer
54 views

I have been working with the STM8L152R8 development board, but it does not seem to let me blink LD2 (which should be mapped to PB5) or really change any value at all. Here is my code. Thanks! #include ...
0 votes
2 answers
247 views

I'm trying to work make SWIM activation sequence for STM8 by external microcontroller of another company. I use timing diagram from UM0470 In phase 4 STM8 should respond to host by keeping swim pin ...
Markus Klein's user avatar
2 votes
0 answers
64 views

I am writing some firmware for an STM8S, and I want to have my SPI transmissions and receptions be handled in an ISR rather than polling. According to pg. 284 of the reference manual, I should be ...
samcns's user avatar
  • 49
1 vote
1 answer
464 views

I'm new to STM8 programming and I'm using the STM8S/A Standard peripheral library without importing it, that is, copying and pasting the files into my src and inc folders, which I don't think is the ...
1 vote
1 answer
280 views

I am using STVD IDE to write code for STM8 the compiler I am using is Cosmic STM8 C compiler and the standard peripheral library provided for STM8. The problem I have is while evaluating an if ...
1 vote
0 answers
154 views

stm8l151k4 mcu rtc external crystal works stably but returns error when I want to write calibration value. "RTC_SmoothCalibConfig(RTC_SmoothCalibPeriod_32sec, RTC_SmoothCalibPlusPulses_Reset,50);&...
1 vote
1 answer
265 views

I am currently trying to write startup code in assembly for an STM8 without any vendor libraries. More specifically, I am using an STM8S103f3p6. I am still inexperienced in assembly and with startup ...
Alex's user avatar
  • 69
1 vote
0 answers
73 views

this doesn't work: TIM1_CCMR2 = 0b01; //its default input channel TIM1_IER = 0b100; //channel 2 capture interrupt TIM1_CCER2 = 0b1; //channel 2 capture TIM1_CR1 = 0b1; //start counter ...
0 votes
0 answers
148 views

the code is using IAR High Level optimization with STM8L151G3, and I observed some problems on the production unit. In each loop, the code will execute the code below: __IO uint8_t ColorSwapFlag = 0; ...
0 votes
1 answer
874 views

I want to program "Option Byte" on STM8S005k6 without stvp. I do it by programming its code on Option Byte area but this makes it write protected only, not read protected: void ...
sara's user avatar
  • 1
0 votes
1 answer
246 views

I am using STM8S Cosmic C compiler, and I am trying to configure tim2 for 350 μs (350 μs should be the pulse width). As per the reference manual, tim4 is a 16-bit with a prescaler factor of 32768. I ...
nyl's user avatar
  • 13
0 votes
1 answer
323 views

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?...

15 30 50 per page
1
2 3 4 5 6

AltStyle によって変換されたページ (->オリジナル) /