完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
在我发疯并粉碎STM8s发现板之前,有人可以帮我一些基本的代码启动和运行,Grom确实设法在经过多次尝试后让PWM代码在单元上工作...... 我需要的是一些基本代码来设置Uart2并发送和接收来自超级终端的命令,然后我需要的是让ADC接收来自热敏电阻的输入.... 没有什么太复杂,但这是我从未能从盒子里直接工作的唯一处理器...... 以上来自于谷歌翻译 以下为原文 Hi there, Before I go mad and smash up the STM8s Discovery Board, could someone please help me get some basic code up and running, Grom did manage to get the PWM code to work on the unit after many attempts... All I require is some basic code to set up the Uart2 and transmit and recieve commands to and from hyperterminal, then all I require is to get the ADC to recieve an input from a thermister.... Nothing too complicated, but this is the only processor that I have never been able to get working straight from the box... |
|
相关推荐
4个回答
|
|
你好,
现在花了2天时间试着让一段示例代码工作(UM0884)我现在决定在线发布代码... 对我来说似乎缺少一些文件,这些文件会阻止代码编译。然而,如果这意味着工作代码,我会认为所有必要的文件都会存在...... 以上来自于谷歌翻译 以下为原文 Hi there, After spending now 2 days solid trying to get a piece of example code to work (UM0884) I've now decided to post the code online... To me there seems to be a number of files missing, that prevent the code from compiling. Yet if this is meant to be working code I would have thought that all necessary files would be there... |
|
|
|
这些是我得到的错误消息......
任何人都可以帮助我们吗? 我正在使用STVD版本4.1.15 自Grom帮助我编译第一个我无法编译的示例代码之后,没有任何改变...... 似乎是出现在这里的模式,我的设置肯定有问题... 任何帮助或对此的忠诚将不胜感激...... ----------- Project stvd_project - STM8 Cosmic - 配置调试------------- 删除中间文件......完成! ----------- Project stvd_project - STM8 Cosmic - 配置调试------------- 编译.. .. src main.c ... cxstm8 -i''.. .. .. temp sensor rs232 - um0884 libraries stm8s_stdperiph_driver inc''+ mods0 -pp -i .. .. .. discover inc -i .. .. .. .. libraries stm8_touchsensing_driver inc -i .. .. .. .. libraries stm8s_stdperiph_driver inc -i .. .. inc -i''E:程序文件 COSMIC CXSTM8_32K Hstm8'' - clRelease -coRelease .. .. src main.c .. .. SRC main.c中: 编译.. .. src stm8_interrupt_vector.c ... cxstm8 -i''.. .. .. temp sensor rs232 - um0884 libraries stm8s_stdperiph_driver inc''+ mods0 -pp -i .. .. .. discover inc -i .. .. .. .. libraries stm8_touchsensing_driver inc -i .. .. .. .. libraries stm8s_stdperiph_driver inc -i .. .. inc -i''E:程序文件 COSMIC CXSTM8_32K Hstm8'' - clRelease -coRelease .. .. src stm8_interrupt_vector.c .. .. SRC stm8_interrupt_vector.c: 编译.. .. src stm8s_it.c ... cxstm8 -i''.. .. .. temp sensor rs232 - um0884 libraries stm8s_stdperiph_driver inc''+ mods0 -pp -i .. .. .. discover inc -i .. .. .. .. libraries stm8_touchsensing_driver inc -i .. .. .. .. libraries stm8s_stdperiph_driver inc -i .. .. inc -i''E:程序文件 COSMIC CXSTM8_32K Hstm8'' - clRelease -coRelease .. .. src stm8s_it.c .. .. SRC stm8s_it.c: 运行链接器 clnk -l''E: Program Files COSMIC CXSTM8_32K Lib'' - o Release stvd_project.sm8 -mRelease stvd_project.map Release stvd_project.lkf stvd_project.elf - 18个错误,0个警告 以上来自于谷歌翻译 以下为原文 These are the error messages that I get... Can anyone help us out? I am using STVD Version 4.1.15 Nothing has changed since Grom helped me compile the first example code that I could not get to also compile... Seems to be a pattern appearing here, something must be wrong with my settings... Any help or adivise on this would be greatly appreciated... ----------- Project stvd_project - STM8 Cosmic - Configuration Debug ------------- Removing intermediate files ... Done! ----------- Project stvd_project - STM8 Cosmic - Configuration Debug ------------- Compiling ....srcmain.c... cxstm8 -i''......temp sensorrs232 - um0884librariesstm8s_stdperiph_driverinc'' +mods0 -pp -i......discoverinc -i........librariesstm8_touchsensing_driverinc -i........librariesstm8s_stdperiph_driverinc -i....inc -i''E:Program FilesCOSMICCXSTM8_32KHstm8'' -clRelease -coRelease ....srcmain.c ....srcmain.c: Compiling ....srcstm8_interrupt_vector.c... cxstm8 -i''......temp sensorrs232 - um0884librariesstm8s_stdperiph_driverinc'' +mods0 -pp -i......discoverinc -i........librariesstm8_touchsensing_driverinc -i........librariesstm8s_stdperiph_driverinc -i....inc -i''E:Program FilesCOSMICCXSTM8_32KHstm8'' -clRelease -coRelease ....srcstm8_interrupt_vector.c ....srcstm8_interrupt_vector.c: Compiling ....srcstm8s_it.c... cxstm8 -i''......temp sensorrs232 - um0884librariesstm8s_stdperiph_driverinc'' +mods0 -pp -i......discoverinc -i........librariesstm8_touchsensing_driverinc -i........librariesstm8s_stdperiph_driverinc -i....inc -i''E:Program FilesCOSMICCXSTM8_32KHstm8'' -clRelease -coRelease ....srcstm8s_it.c ....srcstm8s_it.c: Running Linker clnk -l''E:Program FilesCOSMICCXSTM8_32KLib'' -o Releasestvd_project.sm8 -mReleasestvd_project.map Releasestvd_project.lkf stvd_project.elf - 18 error(s), 0 warning(s) |
|
|
|
编译没问题。您需要打开工作区,或将项目添加到您自己的工作区。
不过,stvd是一只可以使用的熊。 以上来自于谷歌翻译 以下为原文 no problem compiling here. you need to open up the workspace, or add the project to your own workspace. stvd is a bear to work with, though. |
|
|
|
STM8S-Discovery的系统要求包括STVD版本4.1.2或更高版本。您应该将STVD升级到最新版本。
以上来自于谷歌翻译 以下为原文 The system requirements for STM8S-Discovery include STVD version 4.1.2 or later. You should upgrade your STVD to the latest version. |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2644 浏览 1 评论
3209 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1784 浏览 1 评论
3613 浏览 6 评论
5990 浏览 21 评论
940浏览 4评论
1317浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
585浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
1304浏览 3评论
1362浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-25 16:13 , Processed in 1.438093 second(s), Total 85, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号