完善资料让更多小伙伴认识你,还能领取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. |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
454 浏览 0 评论
5793 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3529 浏览 3 评论
1121浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1095浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
872浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
473浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 18:33 , Processed in 0.763421 second(s), Total 50, Slave 43 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2236