完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛扫一扫,分享给好友
|
我对STM8微控制器系列完全陌生。我打算使用STM8S003F3U控制器进行一个项目,其中将使用ADC和定时器模块。
如果我能找到ADC,定时器等的一些示例代码,将会很有用。有可用的示例代码吗? 我已经下载了ST工具集,其中包括ST visual develop和ST visual programmer。我正在使用cosmic c编译器。 ST link / V2仿真器用于调试目的。我正走在正确的轨道上吗?任何帮助(即使从基础知识)将不胜感激.... #stm8s003f3#stm8#st-visual-develop 以上来自于谷歌翻译 以下为原文 I'm totally new to STM8 microcontroller series. I'm planning to do a project using STM8S003F3U controller in which ADC and timer module will be used. It would be useful if i could find some sample codes for ADC,timers,etc. Is there any sample codes available? I have already downloaded the ST toolset which includes ST visual develop and ST visual programmer. I'm using cosmic c compiler. ST link/V2 emulator is used for debugging purpose. Am i going in the right track? Any help(even from the basics) would be appreciated.... #stm8s003f3 #stm8 #st-visual-develop |
|
相关推荐
3个回答
|
|
|
你好,
从列表中下载STM8S标准外设库(以及您认为可能相关的任何其他库)。 http://www.st.com/stonline/stappl/productcatalog/app?page=partNumberSearchPage&levelid=SS1010&parentid=1754&resourcetype=SW 标准外设库使用ST的API为每个STM8外设提供了一些示例。当然没有理由你不喜欢使用直接寄存器访问,这使你更接近硬件并且读取寄存器描述是一个良好的开端,知道想要将它们设置为 |
|
|
|
|
|
嗨,伊恩,
感谢您的回复。 我使用IAR而不是stvd。我可以创建我的示例项目并成功调试它。它工作正常几天。但是今天调试会话在调试过程中终止(显示的错误表明位置无法访问)。之后,每当我尝试下载代码时都会显示错误。显示的错误是“'无法使用MCU名称STM8S003F3设置配置:SWIM错误[30004]:通信超时'' 是什么解决方案来纠正它? 谢谢... 以上来自于谷歌翻译 以下为原文 Hi Ian, Thanks for your reply. Im using IAR instead of stvd. I could create my sample project and successfully debugged it. It was working fine for few days. But today debug session terminated in the middle of debugging(an error shown saying location cant be accessed). After that, an error is shown whenever i try to download the code. The shown error is ''Failed to set configuration with MCU name STM8S003F3: SWIM error[30004]: comm timeout'' Whats the solution to correct it? Thanks... |
|
|
|
|
|
你好,
我不熟悉IAR,但是来自IAR或ST / Link驱动程序等的错误是什么?你有另一种相同或不同类型的STM8可以正常工作吗?我从未见过这条消息,但我想知道闪存是否已锁定/安全!?!?你能获得芯片的访问权限吗?你能擦掉芯片等吗? 谢谢, 伊恩 以上来自于谷歌翻译 以下为原文 Hello, I'm not familiar with IAR but is the error coming from IAR or the ST/Link driver etc? Do you have another STM8 of the same or different type that works fine? I've never seen this message but I'm wondering if the flash has become locked/secured!?!? Can you get any access to the chip? Can you erase the chip etc? Thanks, Ian |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1453 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1502 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3649 浏览 1 评论
3842 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2461 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
727浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
658浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
940浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
745浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 20:26 , Processed in 1.468650 second(s), Total 74, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
3975