完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
在写了一篇关于这个主题的耗时且合理的雄辩要求之后,只有让它被拒绝和删除,我才会做出更短的尝试。
是否不可能像ST7系列产品那样为STM8提供直接的汇编程序模板和.asm .inc文件?我在过去多年设计的所有产品(ST驱动... lemaitreltd.com)都使用了这种格式,我很满意。我的研究根本没有找到支持。我真的想继续使用ST设备,因为我决定最初使用ST设备。 拥有这样的格式不仅是一个非常简单的包含,与ST团队技能组合中的权力有关,但对于我们这些希望采用这种方法进行开发的人来说非常有帮助,并且有助于不断避免的学习曲线。 。 我知道C可以包围的优点,但是对于我的要求,我现在更喜欢具有详细和自信的功能意识,并希望继续担任这个职位。您的建议将受到赞赏,因为它将有助于我必须做出的方向性决定。 许多问候 戴夫罗菲 以上来自于谷歌翻译 以下为原文 After having written a time consuming and reasonably eloquent request about this subject, only to have it rejected and erased, I'll make a shorter attempt. Is it not possible to have straight forward assembler templates and .asm .inc files for the STM8 as was for product in the ST7 range? All product that I have designed in the past many years (ST driven...lemaitreltd.com) has used this format, which I am very comfortable with. My research has found no support for this at all. I would really like to continue using ST devices for the very sound reasons I made the decision to use them initially. Having formats like this would not only be a very easy inclusion, relating to the powers within the ST team skillset, but would be very helpful for those of us who desire this approach to development, and assist in the inevitable learning curve that will always exist. I am aware of the advantages that C can envelop, but for my requirements, I presently prefer to have detailed and confident function awareness and would like to continue being in this position. Your advice would be appreciated as it would assist in the directional decisions I have to make. Many Regards Dave Roffey |
|
相关推荐
4个回答
|
|
|
戴夫,
我不明白你对''汇编模板和.asm .inc文件'的意思。 我在汇编程序中编写STM8固件代码,我的主要开发工具是STVD,它支持STM8和ST7。 我的项目分为许多.asm和.inc文件,我使用自动生成的代码(这是一个汇编程序模板?)仅用于错误报告项目。 STVD可能会有所改进,但在我看来,汇编程序模板并不像我需要的某些功能那么重要。 例如,STM8汇编程序无法计算位于不同段中的两个地址之间的差异。有一些解决方法,但我更喜欢使用常量并在汇编程序构建每个源的绝对列表时检查其值。 我将此检查编码为: #IFDEF ADDR_CHECK #IF(MyConstant ne $ abc) %OUT错误:MyConstant值错误 结束 #万一 #万一 为了使这个hack工作,我需要使用外部编辑器编辑.stp文件并在某些地方添加-D ADDR_CHECK,因为STVD不允许我编辑项目的Post-Link命令。 我的代码也使用了许多段,我在项目的“链接”属性中定义了这些段。有时我需要它们的起始(或结束)地址,但STVD仅为RAM0,RAM和STACK段写入此数据。 问候 EtaPhi 以上来自于谷歌翻译 以下为原文 Dave, I don't understand what you mean for ''assembler templates and .asm .inc files''. I code my STM8 firmware in assembler and my main development tool is STVD which supports both STM8 and ST7. My projects are split in many .asm and .inc files and I use auto-generated code (is this an assembler template?) only for bug reporting projects. STVD may be improved, but, in my opinion, assembler templates aren't as important as some features I need. For example, STM8 assembler can't compute a difference between two addresses which lie in different segments. There are some workarounds, but I prefer to use a constant and check its value when the assembler builds the absolute listing of each source. I code this check as: #IFDEF ADDR_CHECK #IF ( MyConstant ne $abc ) %OUT Error: wrong MyConstant value END #ENDIF #ENDIF To make this hack work, I need to edit the .stp file with an external editor and add -D ADDR_CHECK in some places because STVD doesn't allow me edit the Post-Link commands of a project. My code uses also many segments, which I define in the ''Link'' properties of a project. Sometime I need their starting (or ending) address, but STVD writes this data only for the RAM0, RAM and STACK segment. Regards EtaPhi |
|
|
|
|
|
嗨EtaPhi,
感谢EtaPhi的回复。我想我在这里找到了问题。由于某种原因,新的STVD的安装产生了问题,汇编.asm和.inc文件的目录仍然是旧的STVD7,所以看起来STM8 .asm和.inc不可用,给我的印象是所有工作必须使用C. 我仍然遇到构建过程的问题,所以我将进行干净安装并从那里开始。 再次感谢 戴夫罗菲 以上来自于谷歌翻译 以下为原文 Hi EtaPhi, Thanks for the reply EtaPhi. I think I have found the problem here. For some reason the install of the new STVD has created problems, and the directory of assembly .asm and .inc files are still the old STVD7 ones, so it appeared that STM8 .asm and .inc were not available, giving me the impression that all work must be done using C. I am still having an issue with the build process, so I will do a clean install and go from there. Thanks again Dave Roffey |
|
|
|
|
|
嗨再次EtaPhi,
如果可以的话,我还有一个问题。 以前的ST7项目按预期构建正常。 如果我做一个测试。 例如,为STM8105设置一个映射文件,主要的asm文件存在。存在STM8s105c_s asm和inc文件。当我构建它时,Post Link路径被垃圾字符破坏。然后说它找不到exe文件(当然它不会这样做)。 任何帮助,将不胜感激。 戴夫 以上来自于谷歌翻译 以下为原文 Hi again EtaPhi, I have one more question if I may. Previous ST7 projects build ok as expected. If I do a test. Set up a for STM8105 for instance, mapping file present, main asm file present. STM8s105c_s asm and inc files present. When I build it, the Post Link path gets corrupted with a garbage characters. Then says it can't find the exe file (which of course it won't do). Any help would be appreciated. Dave |
|
|
|
|
|
好吧.......答案发现......程序腐败.......
在帖子链接部分,abslist名称已损坏 在批处理或dos窗口中运行一切顺利......真是浪费时间。 以上来自于谷歌翻译 以下为原文 Well....... the answer found...... Program corruption....... In the post link section the abslist name was corrupted Running in batch or dos window all goes well... what a waste of time. |
|
|
|
|
只有小组成员才能发言,加入小组>>
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的开发板烧录不了是哪里出了问题?
663浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
941浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
745浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 09:43 , Processed in 0.748211 second(s), Total 78, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1387