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

Debugging problem of STM8

Posted on April 30, 2015 at 08:21I'm doing a project on STM8S003F3. Im using IAR instead of stvd for developmeant purpose. I could create my sample project and successfully debugged it. It was working fine for few days. But today debug session termi...

STM8 startup bug Timer 2 input capture

Posted on April 28, 2015 at 12:50 Hi, I wanna make a frequency pulse counter with an STM8. The counter is based on the input capture of the STM timer 2. The frequency is a frequency with a range of 1 Hz - 20 kHz. With the following ...

mitchell by Associate
  • 551 Views
  • 0 replies
  • 0 kudos

Bit Variables ISR Safe?

Posted on April 24, 2015 at 20:43I am using the Cosmic compiler and I want to read and write bit variables in an ISR.  I am wondering if there is a guarantee that ALL bit variable manipulations are atomic (ie using bitwise instructions).  If not - s...

[HELP] Question about Illegal Opcode Reset

Posted on April 22, 2015 at 05:15Hello everyone! I am using STM8S105 and I don't understand the Illegal Opcode Reset function yet. How does it work? What is its function exactly? And which case do we use it? Thanks and best regards!

Resetting the beCAN error counters

Posted on April 20, 2015 at 14:28I'm in the process of implementing a CAN-based ad-hoc communication protocol on the STM8S208C8 MCU. Slave devices in this systems perform auto-baud detection by monitoring the receive error counter and trying the nex...

johanf by Associate
  • 874 Views
  • 0 replies
  • 0 kudos

the reset output pin!

Posted on April 12, 2015 at 18:55we have adopted stm8 in our application and get into production a year ago, which seemed ok, in reasonablly sum of quantity.but recent two batch of chips, mainly stm8s208, also messed up with stm8s105, give us big he...

STM8S swim error 30100: can't load library

Posted on April 08, 2015 at 19:39I have a new STM8S-Discovery board. When conneting it to PC USB port and loading ''discovery'' project and using STVD to start debugging, I got this error message:  ** Connection error (usb://usb) [30100]: can't load...

[HELP]Question about HSIRDY, HSERDY, LSIRDY flag

Posted on March 26, 2015 at 09:32Hello, I have a question that don''t find the answer yet. Does the HSIRDY, HSERDY, LSIRDY flag go low level logic when I switch off HSE, HSI, LSI oscillator? I see they don't go off in debug mode. I use STM8S105C6. T...

STVD + Cosmic. Heap Size?

Posted on March 19, 2015 at 14:53Hello i am using STVD + Cosmic with stm8s105k4t6. And i have a problem. I need to allocate an array with 612 cells but:current_packet.data = (uint8_t*)malloc(current_packet.size+2);if (current_packet.data == 0)byteco...

__iar_program_start

Posted on March 21, 2015 at 18:28Hello when use standart main no problem but when use __iar_program_start() vector table is lost. (no reset or another vectors address in the beginning of hex file, there is only main code in hex file) . Is there anyo...

upamir by Associate
  • 613 Views
  • 0 replies
  • 0 kudos