Search found 98 matches

by king2
Mon Jun 11, 2012 1:56 pm
Forum: General Support
Topic: STM8S active halt under ChibiOS
Replies: 5
Views: 1882

STM8S active halt under ChibiOS

I developing device that can lost power at any moment, if this happens, I should not turn on some device for at least two minutes. So, I placed diode and big capacitor to MCU, so MCU can work without main power and can detect this situation via EXTI interrupt. After this was detected, I want to chan...
by king2
Sat Jun 09, 2012 6:00 pm
Forum: Development and Feedback
Topic: STM8S clock HSE init is wrong!
Replies: 1
Views: 1135

STM8S clock HSE init is wrong!

hal_lld.c: /* SYSCLK switch to the selected source, not necessary if it is HSI.*/ #if STM8S_SYSCLK_SOURCE != CLK_SYSSEL_HSI /* Switching clock (manual switch mode).*/ CLK->SWR = STM8S_SYSCLK_SOURCE; while ((CLK->SWCR & CLK_SWCR_SWIF) == 0) ; CLK->SWCR = CLK_SWCR_SWEN; #endif This is wrong! Accor...
by king2
Fri Jun 08, 2012 11:15 am
Forum: Development and Feedback
Topic: I2C implementation for STM8
Replies: 6
Views: 3127

Re: I2C implementation for STM8

Ok, I have made something, and it works (but I'm not sure that all code is absolutely fine :) ). Also I have made port for IAR compiler for STM8S, and it works too. May be I have broken some rules, but this was urgent task, and I had no time (all this including debugging was done in one night)... I ...
by king2
Tue May 29, 2012 4:52 pm
Forum: Development and Feedback
Topic: I2C implementation for STM8
Replies: 6
Views: 3127

I2C implementation for STM8

I trying to write I2C implementation for I2C/STM8. I started with reading STM32 implementation, and found something strange, so can you tell me if I wrong? 1. Template and STM32 implementation differs, even in function names. Then, /hal/src/i2c.c uses names from STM32 implementation, not from templa...
by king2
Mon May 28, 2012 9:57 pm
Forum: General Support
Topic: Novice questions
Replies: 4
Views: 1041

Another question

So, now I have two threads - one for UART communications, and another one - for 1wire. When 1wire transfers started - I have UART thread pseudo-suspended, as you can see on picture (red - 1wire, yellow - UART). When I changed prescaler of system timer to lower value (from 16 to 4) - this effect was ...
by king2
Mon May 28, 2012 7:27 pm
Forum: General Support
Topic: Novice questions
Replies: 4
Views: 1041

Re: Novice questions

Ok, thank you for answers. I tried to compile ChibiOS in IAR, and now I have two threads running together on STM8S-DISCOVERY board. I will try to make HAL drivers for it later (what means or as I will need some driver, or never, if I will not start ChibiOS with my project :) ) If you interested, I c...
by king2
Mon May 28, 2012 2:35 pm
Forum: General Support
Topic: No SPI output - beginner issue?
Replies: 11
Views: 2209

Re: No SPI output - beginner issue?

STM8, for example even in master mode looks on SPI_NSS pin and block communication in some cases.
So, be sure that you have configured software slave management (SSM and SSI bits).
by king2
Mon May 28, 2012 2:23 pm
Forum: General Support
Topic: Novice questions
Replies: 4
Views: 1041

Novice questions

I just selecting RTOS suitable for me, so I have some questions (search doesnt work for me :( ) I using STM8 for my projects for now. 1. STM8 does not have much HAL drivers, such as CAN, I2C, ADC and so on. Do you plan to implement it? If yes, when? :) 2. STM8 does not have support for IAR, which I'...

Go to advanced search