完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我使用最新的MPLAB和和声。新的嵌入式编程。我发现IDE发现有很多问题,包括用于库的苍蝇(在这个特定的情况下用于SPI)。当我使用一个项目将SPI功能添加到一个项目中时,我应该期望它能够正确地设置包含文件的路径吗?这是一个新安装的MPLAB,和谐和XC32(演示现在,将购买,如果我能让这个东西工作)在Windows上。一切都在默认目录中。奇怪的是,我正在搜索磁盘以查找包含文件,然后尝试将目录添加到路径中。是否有一个简单的写/示例演示如何为和声库添加正确的目录?我觉得我缺少一些关于如何使用这个系统的东西。HORIN的目录结构相当拜占庭,但我希望我不需要为我添加的每一个模块挖掘它。在这种情况下,我只是将SPI添加到了项目中。当我构建我的GETRVVSPISPIN SCONSACS号时,在DRVYSPI中未声明。C包含了“驱动程序/SPI/SRC/DRVIXSPILIN .H”,但是它找不到。哦,等一下,如果我退出并重新启动MPLAB,现在它找到了包含文件,但不是DVVISPILIN SCONSCONSONSUBY,那在哪里?与ADC子系统有类似的问题。它看起来很脆弱。似乎是在重新启动之后找不到的东西。我在这里做了什么错事?
以上来自于百度翻译 以下为原文 I'm using the latest MPLAB and HARMony. New to embedded programming. I seem to be having a lot of problems with the IDE finding include flies for libraries (for SPI in this particular case). When I add SPI functionality to a project using Harmony, should I expect it to set up the path for include files correctly? This is a fresh install of MPLAB, Harmony and XC32 (demo for now, will buy if I can get this thing to work) on windows. Everything is in the default directories. It seems strange that I'm searching the disk to find the include files then trying to add the directories to the path. Is there a simple writeup / example that shows how to add the right include directories for Harmony libraries? I feel like I'm missing something about how to use this system. Harmony's directory structure is rather Byzantine, but I was hoping that I didn't need to dig through it for every module that I add. In this case I've just added SPI to the project with Harmony. When I build I get DRV_SPI_INSTANCES_NUMBER" undeclared in drv_spi.c drv_spi.c includes #include "driver/spi/src/dynamic/drv_spi_internal.h" But it can't find it. OH WAIT, if I exit and restart MPLAB, now it finds the include file, but not DRV_SPI_INSTANCES_NUMBER So where is that?? Had a similar problem with the adc subsystem. It just seems flaky. Seems to find things after a restart that it couldn't find before. What am I doing wrong here? |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
5166 浏览 9 评论
2000 浏览 8 评论
1928 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3174 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2226 浏览 5 评论
733浏览 1评论
615浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
505浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
631浏览 0评论
528浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-24 11:05 , Processed in 1.182863 second(s), Total 76, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号