http://sam3s-demo-source.googlecode.com ... rc/delay.c
там правда для STM8L, для STM8S должно подойти
В ST Visual Develop + бесплатный Cosmic можно прошиватьDownload
Commands for flash download and erase. Note that these menu commands are not available in IAR Embedded Workbench for STMicroelectronics STM8.
параметры такие:STVP_CmdLine version 1.6
Verbose ON
Log activity ON
Display Progress OFF
Message box warning if protect option byte ON
Loop mode ON
Erase device OFF
Blank check device OFF
Verify device ON
Configuration:
BoardName=ST-LINK ST-LINK_ID=0 Device=STM8S003F3 Port=USB ProgMode=SWD
>>> Filling PROGRAM MEMORY image in computer with Blank Value
<<< Filling PROGRAM MEMORY image in computer succeeds
>>> Loading file d:\Work\STM8.wrk\Proj\TrDsTi20STM8S003F3P6\Release\Exe\TrDsTi20STM8S003F3P6.hex in PROGRAM MEMORY image in computer
<<< Loading file succeeds
Hit 'Esc' key to abort during communication.
>>> Programming PROGRAM MEMORY
(API) ERROR : Cannot communicate with the device !
Check the SWD cable connection and check all the needed pin connections on the SWD connector.
Reboot the ST-Link with USB cable.
<<< Programming PROGRAM MEMORY fails
Хорошая идея, но вот зайти по ссылке не получаетсяEugenyAM писал(а):Первая статья опубликована, ждем комментариев...Сейчас готовим цикл статей об освоении STM8 с нуля на личных примерах, скоро будет первая - про мигание светодиодом
http://eugenemcu.ru/publ/11-1-0-66