ST意法半导体
直播中

朱志兴

8年用户 298经验值
私信 关注
[问答]

如何从scartch编程stm8s003f3p6?

我正在学习自己用嵌入式C编程,我已经购买了一台stm8s003f3P6微控制器和一台STLINKV2编程器来编程设备,我可以使用STVISUAL DEVELOPE代码或IAR EMBEDDED WORKBENCH,但我还是无法绕过哪个是atmel工作室用于atmel设备的最佳和简单的环境。我有atmel设备的经验,我能够编程,但我还不能理解st。


如果有人可以指导我从scartch编程stm8s003f3p6设备的方式,或者可以指向我一个有用的教程。那对你很好。谢谢你


#stm8s003f3 #stvd# - #iar-workbenc

以上来自于谷歌翻译


以下为原文




i am learning to program in embedded C by myself and i have bought an stm8s003f3P6 microcontroller and  a STLINKV2 programmer to program device and i under i can use STVISUAL DEVELOPE code or IAR EMBEDDED WORKBENCH but still i am not able to wrap my head around about which is the best and simple enviroment to use like atmel studio for atmel devices. I have experience with atmel devices and i am able to program them but i am not able to understand st just yet.


Please if somebody could guide me the way to program stm8s003f3p6 device from scartch or could point me to an useful tutorial . that would be very kind of you .thank you

  
#stm8s003f3 #stvd #- #iar-workbenc

回帖(1)

李青

2019-7-3 10:33:05
你好,
 
 
 您也可以将COSMIC(编译器)与STVD或开源SDCC(编译器)一起使用,但与Atmel或S08设备的环境相比,STVD有点陈旧/笨重可能是公平的。
 
 如果我没记错的话,SDCC网站上有一些示例程序,但您也可以考虑STM8S外设库,它往往使用API​​调用,或者您可以选择直接注册访问。库中的每个外设也有示例。
 
 您可以通过Google找到一些示例,但自然不会出现在Arduinos附近的任何地方!
 
 希望有所帮助,
 
 伊恩

以上来自于谷歌翻译


以下为原文





Hello,


You can also use COSMIC (compiler) with STVD or the open source SDCC (compiler) but it's probably fair to say STVD is a bit old/clunky compared to environments for Atmel or S08 devices.

There are some example programs on the SDCC website if I remember correctly but you could also consider the STM8S peripheral library, which tends to use API calls or you can opt for direct register access. There are also examples for each peripheral in the library.

There are also some examples that you can find via Google but naturally not anywhere near what you can find for Arduinos!

Hope that helps,

Ian
举报

更多回帖

发帖
×
20
完善资料,
赚取积分