STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Why getting such error though code looks error free ? #error cpstm8 ..\..\src\main.c:350(0+6) misplaced local declaration #error cpstm8 ..\..\src\main.c:411 static function monitor_express_open_input_button undefined

static bool isEOBtnPressed = FALSE;static bool isECBtnPressed = FALSE;static void monitor_d_input_button(void); /*PB1 pin as input pin pull-up mode*/static void monitor_o_input_button(void);/*PB2 pin as inputpin pu;;-up mode*/static void monitor_c_in...

AAnsa.2 by Associate
  • 1154 Views
  • 2 replies
  • 0 kudos

How to connect st-link v2 with Tag-connect cable

HiI plan to program my MCU using a Tagconnect cable. I haven't bought the Tagconnect cable yet, nor the st-link v2, and I would like some recommendations.Is anybody using this setup? What are your thoughts?It also seems there are different versions o...

0693W00000Lwl4pQAB.jpg 0693W00000Lwl8lQAB.jpg
lyoy by Associate III
  • 3571 Views
  • 4 replies
  • 0 kudos

Another problem with the problematic STM8L050J3

Hi there,I have made changes to the firmware and , via ST-Link V2, I would like to reprogram an STM8L050J3, which I had previously programmed with the Active Halt function enabled, but SVP does not allow it and responds with this message as the attac...

Resolved! No output from TIM2 in compare mode on STM8L101F3

I am trying to get a pulse out of TIM2 in compare mode but I see no output. Here is my snippet of code:#include "iostm8l101f3.h" void main( void ) { CLK_CKDIVR = 0x01; // 8MHz PA_CR1 = 0xFF; // all pullups PB_DDR = 0x01; // 0000 0001...

AMacd.1 by Associate III
  • 885 Views
  • 1 replies
  • 0 kudos

CLK_AdjustHSICalibrationValue, STVD Error

Hello,I am developing a project with STM8L050J3 microcontroller using Evaluation Board STM8-S08-DISCO and STVD version 4.3.12.I need to calibrate the internal HSI oscillator, but for some reason that I have not been able to identify, although I compi...

Resolved! Unable to write to TIM2 Registers

I have this little project for the STM8L101F3 that just writes an arbitrary value to TIM2_CCR1H and TIM2_CCR1L and then tries to start the timer but I get nothing from the timer output.If I run the project with a debugger and inspect the contents of ...

AMacd.1 by Associate III
  • 1710 Views
  • 8 replies
  • 0 kudos