完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,我刚开始使用C18编译器,我的程序运行得很好,但是相同的程序根本不用XC8运行。原因何在?
以上来自于百度翻译 以下为原文 Hello all, I was using C18 compiler since beginning and my programs were running nice on it but the same programs are not running at all using XC8. What could be the reasons? |
|
相关推荐
5个回答
|
|
海宝翻译!在从C18迁移到XC8时,有几个细节需要调整,主要是PIC硬件定义和其他一些细节。在进行这种迁移时,很容易犯一些小错误并且很难发现错误。
以上来自于百度翻译 以下为原文 Hi Bad translation! BTDT. There are several details that need adjustments to migrate from C18 to XC8, mostly the PIC hardware definitions and a few other details. And its very easy to make some minor and hard to find mistakes when doing this kind of migration. Best regards Jorge |
|
|
|
|
|
|
|
C18从来没有符合标准的XC8 ISC18支持递归XC8不支持。C18具有传统风格,但模拟堆栈。XC8有编译的堆栈。C18需要内存特定指针XC8不需要。我认为Car的默认类型是不同的。迁移是你正在移植的错误词,它可以做很多工作。你有建立问题或运行问题吗?如果建立POST错误,从顶部开始。如果运行错误,则需要进行调试。
以上来自于百度翻译 以下为原文 C18 was never standards complient XC8 is C18 supports recursion XC8 does not. C18 has traditional style but simulated stack. XC8 has a compiled stack. C18 requires memory specific pointers XC8 does not. I think the default type for char is different. Migrate is the wrong word you are porting and it can be a lot of work. Are you having build issues or run issues? If build post the errors, starting from the top. If it is run errors , then you need to debug. |
|
|
|
实际上它构建得很好,之后我在MCU上加载.hex文件。
以上来自于百度翻译 以下为原文 Actually it is building the project well, After that I load .hex file on the MCU.. After I load the file on MCU the hardware does not work as per I wrote the program... |
|
|
|
下一步是让你确切地解释“不工作”是什么意思。
以上来自于百度翻译 以下为原文 The next step is for you to explain exactly what "Does not work" means. |
|
|
|
只有小组成员才能发言,加入小组>>
5160 浏览 9 评论
1998 浏览 8 评论
1927 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3170 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2225 浏览 5 评论
729浏览 1评论
613浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
503浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
628浏览 0评论
526浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 14:30 , Processed in 1.391903 second(s), Total 87, Slave 70 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号