完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,
我被告知,当使用COSMIC编程我的STM8S003F3时,我的代码大小应该是8千字节。目前我的代码大小是3846,我的文本大小溢出。 8千字节不是真正的代码大小还是我缺少的东西? 非常感谢你! 查尔斯 #codesize #cosmic 以上来自于谷歌翻译 以下为原文 Hey guys, I've been told that when using COSMIC to program my STM8S003F3 I should have a code size of 8 kilobytes. Currently my code size is at 3846 and I am getting a text size overflow. Is the 8 kilobytes not the true code size or is there something that I am missing? Thank you very much! Charles #codesize #cosmic |
|
相关推荐
6个回答
|
|
有两种可能性:
- 32k免费版本的最大''应用程序大小''是根据代码+常量+ ram计算的 - 如果以某种方式为链接器文件中的给定段指定最大大小(例如,8k)并且段大于该值,则可能会出现类似的错误(大小溢出):在这种情况下,只需更改链接器文件即可。 问候。 以上来自于谷歌翻译 以下为原文 There are 2 possibilities: - the maximum ''application size'' of the 32k free version is calculated on the code+constants+ram - you might have a similar error (size overflow) if you somehow specify a maximum size (for example, 8k) for a given segment in the linker file and the segment gets bigger than that: in this case just change your linker file. Regards. |
|
|
|
嗨查尔斯,
我认为(?)之前已经问过这个问题,似乎Cosmic在计算中也包含了RAM足迹! 谢谢, 伊恩 以上来自于谷歌翻译 以下为原文 Hi Charles, I think(?) this question has been asked before and it seems that Cosmic includes the RAM footprint in its calculation too! Thanks, Ian |
|
|
|
嘿,
我很擅长使用ST Visual Develop。我正在查看我的链接器信息,似乎输入选项卡指定了我的代码的放置位置。我已经附上了我当前屏幕的图片,我应该更改什么才能安全地增加我的代码大小? 再次感谢! 查尔斯 以上来自于谷歌翻译 以下为原文 Hey, I'm pretty new to using ST Visual Develop. I'm looking at my linker information and it seems that the Input tab is specifying where to put my code. I've attached my a picture of my current screen, what exactly should I change to safely be able to increase my code size? Thanks again! Charles |
|
|
|
您显示的stvd设置生成一个链接器文件,将代码大小限制为8k。
如果你使用这个链接器文件获得.text大小溢出,这意味着你的代码(+常量)大于8k,而不是你在第一篇文章中所说的3k(顺便说一下,你在哪里得到那些信息?) 问候。 以上来自于谷歌翻译 以下为原文 the stvd settings that you show generate a linker file that will limit the code size at 8k. If you get a .text size overflow with this linker file it means that your code (+constants) is bigger than 8k and not 3k something as you say in the first post (by the way, where did you get that info?) Regards. |
|
|
|
嘿卢卡,
我实际上最终切换环境并让它工作,所以这个问题现在解决了,谢谢你的帮助! 当我尝试编译错误时,我得到的是我的代码不合适。我很可能误读了它,并且说我在超过8千字节的限制时会超过3000?当我在其他环境中编译时,代码肯定小于8千字节。我认为如果我的代码实际上使用ST Visual Develop在其他环境中低于8千字节的情况下实际上是11千字节,那么它们必须进行大量编译。 无论哪种方式,非常感谢你的帮助! 查尔斯 以上来自于谷歌翻译 以下为原文 Hey Luca, I actually ended up switching environments and got it to work, so this problem is now solved, thank you for your help! When I tried to compile the error I got was that my code did not fit. It's very possible that I misread it and that it was saying I was going 3000 over the 8 kilobyte limit? The code is definitely less than 8 kilobytes when I compile it in the other environment though. I assume they must compile drastically differently if my code was actually turning out to be 11 kilobytes using ST Visual Develop when it is well under 8 kilobytes in the other environment. Either way, thank you very much for your help! Charles |
|
|
|
嘿查尔斯,
你切换到哪个环境?我面临着同样的问题并且停滞不前。 请帮忙。 以上来自于谷歌翻译 以下为原文 Hey Charles, Which environment you switched to? I am facing the same problem and stuck big time. Please help. |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2724 浏览 1 评论
3237 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1807 浏览 1 评论
3646 浏览 6 评论
6034 浏览 21 评论
1334浏览 4评论
209浏览 3评论
197浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
350浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
442浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 00:29 , Processed in 1.066722 second(s), Total 55, Slave 48 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号