Reply to topic  [ 3 posts ] 
STM8 Development boards (HCDVBD0017 HCDVBD0018 & HCDVBD0019) 
Author Message
Site Admin

Joined: Sun Aug 05, 2012 4:02 pm
Posts: 623
Post STM8 Development boards (HCDVBD0017 HCDVBD0018 & HCDVBD0019)
Image

Description:

These development/breakout boards based the ST STM8 microcontrollers are an ultra low cost solution to embedded control. The board come in a convient 2.54mm pitch DIP format foe easy breadboard or PCB mounting. Besides providing easy access to most of the microcontrollers I/O, there is additionally a microUSB connector for powering from a USB port, and a standard ST SWIM programming/emulation header that allows for easy programming or debugging using a compatible programmer such as our low cost ST-Link compatible USB programmer (HCDVBD0016). The ST tool chain (STVD) for these devices is available as a free download from the ST website and is fully compatible with these devices. There are also additional third party tools such as the Cosmos ANSI C compiler (8K limited) and the SDCC (Small Device C Compiler) which can be downloaded for free. Links to htese tools are provided at the bottom of this post.


STM8 S103F3P6 Development Board (HCDVBD0017)
Image
Order Yours Here.

Key Features
16 MHz advanced STM8 core with Harvard architecture and 3-stage pipeline
Extended instruction set
Program memory: 8 Kbytes Flash; data retention 20 years at 55 °C after 10 kcycles
Data memory: 640 bytes true data EEPROM; endurance 300 kcycles
RAM: 1 Kbytes
2.95 to 5.5 V operating voltage
Flexible clock control, 4 master clock sources:
Low power crystal resonator oscillator
External clock input
Internal,user-trimmable 16 MHz RC
Internal low power 128 kHz RC
Clock security system with clock monitor
Power management:Low power modes (wait, active-halt, halt) Switch-off peripheral clocks individually
Permanently active,low consumption power-on and power-down reset
Nested interrupt controller with 32 interrupts
Up to 27 external interrupts on 6 vectors
Advanced control timer: 16-bit, 4 CAPCOM channels, 3 complementary outputs, dead-time insertion and flexible synchronization
16-bit general purpose timer, with 3 CAPCOM channels (IC, OC or PWM)
8-bit basic timer with 8-bit prescaler
Window watchdog, independent watchdog timers
UART with clock output for synchronous operation, Smartcard, IrDA, LIN master mode
SPI interface up to 8 Mbit/s
I2C interface up to 400 Kbit/s
10-bit, ±1 LSB ADC with up to 5 multiplexed channels, scan mode and analog watchdog
Up to 28 I/Os on a 32-pin package including 21 high sink outputs
Highly robust I/O design, immune against current injection
96-bit unique ID key for each device

Image


STM8 S105K4T6 Development Board (HCDVBD0018)

Image
Order Yours Here.

16 MHz advanced STM8 core with Harvard architecture and 3-stage pipeline
Extended instruction set
Medium-density Flash/EEPROM: Program memory up to 32 Kbytes Flash; data retention 20 years at 55 °C after 10 kcycles Data memory up to 1Kbytes true data EEPROM; endurance 300 kcycles
RAM: Up to 2 Kbytes
2.95 to 5.5 V operating voltage
Flexible clock control, 4 master clock sources: Low power crystal resonator oscillator External clock input Internal,user-trimmable 16 MHz RC Internal low power 128 kHz RC
Clock security system with clock monitor
Power management: Low power modes (wait, active-halt, halt) Switch-off peripheral clocks individually
Permanently active,low consumption power-on and power-down reset
Nested interrupt controller with 32 interrupts
Up to 37 external interrupts on 6 vectors
2x16-bit general purpose timer, with 2+3 CAPCOM channels (IC, OC or PWM)
Advanced control timer: 16-bit, 4 CAPCOM channels, 3 complementary outputs, dead-time insertion and flexible synchronization
8-bit basic timer with 8-bit prescaler
Window watchdog, independent watchdog timers
UART with clock output for synchronous operation, Smartcard, IrDA, LIN master mode
SPI interface up to 8 Mbit/s
I2C interface up to 400 Kbit/s
10-bit, ±1 LSB ADC with up to 10 multiplexed channels, scan mode and analog watchdog
Up to 38 I/Os on a 48-pin package including 16 high sink outputs
Highly robust I/O design, immune against current injection
Embedded single wire interface module (SWIM) for fast on-chip programming and non intrusive debugging
96-bit unique ID key for each device

Image


STM8 S103K3T6 Development Board (HCDVBD0019)

Image
Order Yours Here.

Key Features
16 MHz advanced STM8 core with Harvard architecture and 3-stage pipeline
Extended instruction set
Program memory: 8 Kbytes Flash; data retention 20 years at 55 °C after 10 kcycles
Data memory: 640 bytes true data EEPROM; endurance 300 kcycles
RAM: 1 Kbytes
2.95 to 5.5 V operating voltage
Flexible clock control, 4 master clock sources:
Low power crystal resonator oscillator
External clock input
Internal,user-trimmable 16 MHz RC
Internal low power 128 kHz RC
Clock security system with clock monitor
Power management:Low power modes (wait, active-halt, halt) Switch-off peripheral clocks individually
Permanently active,low consumption power-on and power-down reset
Nested interrupt controller with 32 interrupts
Up to 27 external interrupts on 6 vectors
Advanced control timer: 16-bit, 4 CAPCOM channels, 3 complementary outputs, dead-time insertion and flexible synchronization
16-bit general purpose timer, with 3 CAPCOM channels (IC, OC or PWM)
8-bit basic timer with 8-bit prescaler
Window watchdog, independent watchdog timers
UART with clock output for synchronous operation, Smartcard, IrDA, LIN master mode
SPI interface up to 8 Mbit/s
I2C interface up to 400 Kbit/s
10-bit, ±1 LSB ADC with up to 5 multiplexed channels, scan mode and analog watchdog
Up to 28 I/Os on a 32-pin package including 21 high sink outputs
Highly robust I/O design, immune against current injection
96-bit unique ID key for each device

Image


Software Tools:

Development tools can be downloaded from the ST website here: http://www.st.com/web/en/catalog/tools/ ... 807/SS1747

A direct link to the STVD development environment is available for download here: http://www.st.com/web/catalog/tools/FM1 ... 7/PF210567

And the STVP programming software is available for download here: http://www.st.com/web/catalog/tools/FM1 ... 7/PF210568

A free 8K limited version of the Cosmos C compiler which is supported by the STVD development environment is available for download here: http://www.cosmic-software.com/eval_kit ... m_eval.exe
We recommend installing the Cosmos C compiler before installing the STVD development environment.

Alternatively SDCC (Small Device C Compiler) is a free compiler that is compatible with the STM8 microcontrollers and can be downloaded here: http://sdcc.sourceforge.net/



Example 'Blink' test program for HCDVBD0018:

Code:
/* HCDVBD0018 'BLINK' Example */

#include "stm8s.h"

int main(void) {
   
    // Reset ("de-initialise") GPIO port E.
    GPIO_DeInit(GPIOD);
   
    // Initialise pin 5 of port E.
    GPIO_Init(GPIOD, GPIO_PIN_0, GPIO_MODE_OUT_PP_LOW_FAST);
   
    // Infinite loop.
    for(;;) {
       
        // Delay for a short while.
        u16 d;
        for (d = 0; d < 50000; ++d) {
            // Without a nop() in here, the entire loop would be optimised away!
            nop();
        }
       
        // Invert the LED pin's state to flash it.
        GPIO_WriteReverse(GPIOD, GPIO_PIN_5);
    }
}


Example 'Blink test program for HCDVBD0017 & HCDVBD0019 :

Code:
/* HCDVBD0017 / HCDVBD0019 'BLINK' Example
   Remember to select correct device version in Project->Settings-MCU Selection */
#include "stm8s.h"

int main(void) {
   
    // Reset ("de-initialise") GPIO port E for  HCDVBD0019 for Port B for HCDVBD0017.
    //GPIO_DeInit(GPIOE); // Uncomment for HCDVBD0019
      GPIO_DeInit(GPIOB); // Uncomment for HCDVBD0017
   
    // Initialise pin 5 of port E for HCDVBD0019 or port B pin 5 for HCDVBD0017.
    //GPIO_Init(GPIOE, GPIO_PIN_5, GPIO_MODE_OUT_PP_LOW_FAST); // Uncomment for HCDVBD0019
    GPIO_Init(GPIOB, GPIO_PIN_5, GPIO_MODE_OUT_PP_LOW_FAST); // Uncomment for HCDVBD0017
      
    // Infinite loop.
    for(;;) {
       
        // Delay for a short while.
        u16 d;
        for (d = 0; d < 50000; ++d) {
            // Without a nop() in here, the entire loop would be optimised away!
            nop();
        }
       
        // Invert the LED pin's state to flash it.
        //GPIO_WriteReverse(GPIOE, GPIO_PIN_5); // Uncomment for HCDVBD0019
            GPIO_WriteReverse(GPIOB, GPIO_PIN_5); // Uncomment for HCDVBD0017
    }
}


Example blink project (requires STVD and Cosmos C compiler to be installed):

These project folders also include the STM8S-Discovery firmware library

Attachment:
STM8S105_Blink_Example.zip


Attachment:
STM8S103_Blink_Example.zip



Datasheets:

Attachment:
CD00194637.pdf

Attachment:
CD00200092.pdf


FAQ:

When trying to use the debug feature in the STVD development environment I get the following error: gdi-error [40201]: can't access configuration database

Go to C:\Program Files (x86)\STMicroelectronics\st_toolset\stvd\dao\ and install the ST Toolset.msi

If you are running 64 bit versions of Windows 8/10 and installing the toolset above did not resolve the problem open up a DOS command prompt in admin mode and issue the following two commands:

Regsvr32 /u "C:\Program Files (x86)\Common Files\Microsoft Shared\DAO\DAO350.DLL"
Regsvr32 "C:\Program Files (x86)\Common Files\Microsoft Shared\DAO\DAO350.DLL"


You do not have the required permissions to view the files attached to this post.


Tue Apr 29, 2014 6:00 pm
Profile

Joined: Fri Jul 31, 2015 2:08 pm
Posts: 2
Post Re: STM8 Development boards (HCDVBD0017 HCDVBD0018 & HCDVBD0
I wrote a few tutorials for various STM8 boards at
http://colecovision.eu/stm8/
while none of those tutorials is written for the boards mentioned above in particular
(I do not have any of those boards yet), they might still be useful to
get started with STM8 development using SDCC with any board.

Philipp


Fri Jul 31, 2015 2:11 pm
Profile

Joined: Fri Jul 31, 2015 2:08 pm
Posts: 2
Post Re: STM8 Development boards (HCDVBD0017 HCDVBD0018 & HCDVBD0
I recently bought the HCDVBD0017 and HCDVBD0019 boards, and wrote tutorials for them that use free tools only (the C compiler SDCC and stm8flash).

One tutorial uses a timer to blink the LED exactly once per second:
For the HCDVBD0017: http://www.colecovision.eu/stm8/HCDVBD0017%20LED.shtml
For the HCDVBD0019: http://www.colecovision.eu/stm8/HCDVBD0019%20LED.shtml

The other tutorial prints "Hello, world" via RS232 (the tutorials use the HCCABL0015 USB to RS232 TTL Serial Interface Cable):
For the HCDVBD0017: http://www.colecovision.eu/stm8/HCDVBD0017%20Serial.shtml
For the HCDVBD0019: http://www.colecovision.eu/stm8/HCDVBD0019%20Serial.shtml

Philipp

P.S.: At the time I write this post, images are still missing in the tutorials for the HCDVBD0017 and HCDVBD0019 boards. I will create and add them when I find time while the weather gives me suitable lighting conditions.


Thu Dec 24, 2015 3:39 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Thank you to phpBB.com & phpBB.ro.
Design created by Florea Cosmin Ionut.
© 2011 All contents of this site are © Hobby Components LTD