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

@svlreg missing function error

Hello,I am trying to rebuild STM8A discovery project(AN4101). After building I got the error ''#error clnk Debug\stm8af_discover.lkf:1 @svlreg missing for function f_CAN_RX_IRQHandler''. Similar post about this issue were answered as write '@svlreg' ...

STM8 SPI slave device data read

Hi,I want to read more than one byte of data from slave device. I am using STM8AF family micrcontroller in master mode and pressure sensor SMP580 is a slave device. Master will send command which is of 1-byte to read 16 bit data from slave device. An...

DOman.1 by Associate II
  • 593 Views
  • 0 replies
  • 0 kudos

How protect GPIOs from ISO7637-3 Pulses?

Hi,I would like to protect my GPIOs from ISO7637-3 pulses with a rail to rail diode solution. But I have seen that the GPIOs already have a intern rail to rail protection with a forward voltage Vf_int = 0.6V (Datasheet Fig. 43). To protect my GPIOs w...

TLich.1 by Associate
  • 682 Views
  • 2 replies
  • 0 kudos

Using SPI Read more than one byte of data from slave device

Hi,I want to read more than one byte of data from slave device. I am using STM8AF family micrcontroller in master mode and pressure sensor is a slave device. Master will send command which is of 1-byte to read data from slave device. And slave will ...

DOman.1 by Associate II
  • 1402 Views
  • 3 replies
  • 0 kudos

"Read access out of stm8 address range" error during debugging

Map file:BYTES ; The following addresses are 8 bits long segment byte at 0-ff 'ram0' WORDS ; The following addresses are 16 bits long segment byte at 100-1ff 'ram1' WORDS ; The following addresses are 16 bits long segment byte at 200-3ff 'stack...

HTiwa.11 by Associate II
  • 544 Views
  • 0 replies
  • 0 kudos

what does the line 6 wait do?

void sEE_ReadBuffer(uint8_t* pBuffer, uint16_t ReadAddr, uint16_t* NumByteToRead) { //__IO uint32_t timeout = 0xFFFF; __IO uint32_t timeout = 0xf00; /*!< Wait the end of last communication */ for (;timeout > 0; timeout--);   /* Set the poin...

can't find the Device at IAR.

hello,i use IAR EW for STM8 3.11.1(latest version on IAR website)​but i can't find STM8L050J3M3 Model at "General Options - Target - Device"so.. which one should i choose?Thank you.bast regards.Device : STM8L050J3M3 C Compiler : IAR EW for STM8 3.11....

KTAEW.1 by Associate
  • 686 Views
  • 0 replies
  • 0 kudos

How PVD interrupt when in Active-halt mode

Hi,STM8L152 with buttons and LCD, using CR2032 battery. Most of time MCU is in Active-halt mode and keep LCD display. Now I want PVD low voltage interrupt to inform user to change battery in LCD.​So my question is, can PVD interrupt work in active-ha...

usart wakeup from halt

stm8L152 PC2 is USART rx,1 rx to exit before halt() USART_DeInit(USART1); GPIO_Init(GPIOC, GPIO_Pin_3, GPIO_Mode_Out_PP_Low_Slow); GPIO_Init(GPIOC, GPIO_Pin_2, GPIO_Mode_In_PU_IT); RX_EXTI_setup(); EXTI_ClearITPendingBit(EXTI_IT_Pin2);2, pc2 exit han...