1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我是MPLAB X的第一次用户。我正在运行项目和构建错误,它们感觉像配置问题,但我不能确定它们是否与我安装的MPLAB X或我下载的示例项目有关。具体情况:构建平台:MPLAB X IDE V4.20与XC32 V2.05,运行在Mac OS高。目标:好奇心PIC32 MZ EF开发板(DM320104)。示例项目:“PIC32 MZ EF好奇WiFi RGB轻松配置”取自http://www. MICROCHEM.COM/…RoDuttDebug /D320104选项卡“附加资源”。当我将项目加载到MPLAB X时,它立即打印出一组451项目加载错误消息。它们都有相同的形式。前5个是:这不好。尽管如此,我还是尝试过“清洁与建设工程”。当然,它产生了大量的构建错误。所有这些都是在重新安装MPLAB X和工具之后发生的。第一次安装产生了相同的症状,但最初怀疑我做了一些定制,将其扔掉,也就是说,不要让安装更新路径变量。(找不到构建工具链吗?)这次,我基本上是默认的。主要问题是IDE或样例项目的配置有什么问题?第二个问题:我真正想要的是一个非常简单的“Hello World”项目来证明构建环境,例如闪存一个LED一秒钟。那是藏在别的地方的吗?
以上来自于百度翻译 以下为原文 I'm a first-time user of MPLAB X. I'm running into project and build errors which feel like configuration problems, but I can't tell if they're with my install of MPLAB X or with the sample project I downloaded. Some specifics: Build platform: MPLAB X IDE v4.20 with XC32 v2.05, running on macOS High Sierra (10.13.5).Target: Curiosity PIC32 MZ EF Development Board (DM320104).Sample project: "PIC32MZ EF Curiosity WiFi RGB Easy Configuration" taken from http://www.microchip.com/...roductDetails/DM320104 tab "Additional Resource". Error: Project "wifi_rgb_easy_configuration" refers to file "gzlog.h" which does not exist in the disk. The project failed to load. Error: Project "wifi_rgb_easy_configuration" refers to file "crc32.h" which does not exist in the disk. The project failed to load. Error: Project "wifi_rgb_easy_configuers to file "deflate.h" which does not exist in the disk. The project failed to load. Error: Project "wifi_rgb_easy_configuration" refers to file "inffast.h" which does not exist in the disk. The project failed to load. Error: Project "wifi_rgb_easy_configuration" refers to file "inffixed.h" which does not exist in the disk. The project failed to load.This can't be good. Nevertheless, I tried "Clean and Build Project". Of course, it produced a flock of build errors. All this happened after re-installing MPLAB X and tools. The first install produced the same symptoms, but initially suspected I had done some customization that threw it off, i.e., don't let the install update the PATH variable. (Failure to find the build toolchains?) This time, I basically went with defaults. The principal question is: what's wrong with the config for the IDE or sample project? A second question: What I really wanted was in essence a really simple "Hello world" project to prove the build environment, e.g., flash a single LED once second. Is that hidden someplace else? |
|
相关推荐
2个回答
|
|
在Microchip网站和网络上的其他地方,有关于MPLABX的一些教程和其他教学帖子。如果你还没有这样做,你可能会四处浏览,并尝试找到一些适合你的需要和经验。你提到的项目来自一个和谐项目,由我的1247个头文件263个C源代码打印在413个目录中。对于第一次用户来说,这不是最好的地方。然而,它在我的Linux系统中成功地用MPLABX版本4.20构建。因为我没有MAC测试,我无法想象我能给你提供任何帮助。也许一些其他有帮助的帮手可以插手……同时,这里有一个简单的(非和谐的)项目,用一秒钟的节奏将LED D1闪烁在一秒/秒上。如果你有过XC8和/或XC16的经验,你无疑意识到了像“Y-DELAYM”这样的函数。S-(),当用1000的参数调用时,会导致(大约)1秒的延迟。没有这样的编译器提供XC32的功能,所以我用一种方法来获得(大约)给定的毫秒的延迟,使用PIC32设备上存在的系统计时器。为了保持项目简单,我把所有的东西(配置参数,硬件定义等)都放了下来。)在主文件中。在完成工作之后,实验为配置参数、C、HurdRealPr.h等添加单独的文件,以便支持定义和功能可以从主干中移出。C,这是我(通常)组织事物的方式。享受!问候,戴夫
以上来自于百度翻译 以下为原文 There are several tutorials and other instructional postings on the Microchip web site and other places on the web about building projects with MPLABX. If you haven't done so already, you might browse around and try to find some that suit your needs and experience. The project you reference came from a Harmony project consisting of, by my count 1247 header files 263 C source code files sprinkled among 413 directories. Like you, I'm thinking it's probably not the best place for a first-time user to start. However... It built successfully with MPLABX version 4.20 on my Linux system. Since I don't have a Mac to test with, I can't imagine any help I could give you on your installation. Maybe some other helpful helpers can chime in... In the meanwhile, here is a simple (non-Harmony) project that flashes LED D1 on the Curiosity board with a cadence of one second on / one second off. If you have had experience with XC8 and/or XC16, you are undoubtedly aware of functions like __delay_ms(), which, when called with an argument of 1000, causes a delay of (approximately) 1 second. There are no such compiler-supplied functions with XC32, so I show one way to get (approximately) a delay of a given number of milliseconds, using the system timer that is present on PIC32 devices. To keep the project simple I put all of the stuff (configuration parameters, hardware definitions, etc.) in the main file. After getting things working, experiment with adding separate files for ConfigurationParameters.c, HardwareProfile.h, etc., so that supporting definitions and functions can be moved out of Main.c. That's the way I (usually) organize things. Enjoy! Regards, Dave Attachment(s) First_LED_Project.zip (6.57 KB) - downloaded 1 times |
|
|
|
谢谢,戴夫。这是非常有用的。我最终能够使用“制作和编程设备”按钮来获得MPLAB X的代码,编程板,并看到红色LED闪光灯开/关大约每秒一次。奇怪的是,有时编程板工作,并报告“编程/验证完成”。其他时候,它挂在“编程…”;不知道为什么会这样。但这使我比我下载的和声衍生的例子要远得多。对其他任何人来说…我花了很多时间寻找一个非常简单的微芯片,提供了Pic32好奇心在他们的网站上的例子,就像戴夫刚给我的一样。如果有人看到,请分享网址。我正在为我的团队中的开发人员写下笔记,他们支持我,并希望能为他们节省一些悲伤。——瑞克
以上来自于百度翻译 以下为原文 Thanks, Dave. That was much more useful. I was eventually able to use the "Make and Program Device" button to get MPLAB X build the code, program the board, and see the red LED flash on/off about once per second. Strangely, sometimes programming the board worked and reported "Programming/Verify complete". Other times, it hung at "Programming..."; not sure why that is. But this got me a lot farther than the Harmony-derived example I downloaded. For anyone else.... I've spent a lot of time looking for a really simple Microchip-provided example for PIC32 Curiosity on their website like what Dave just gave me. If someone sees such, please share the URL. I'm writing up notes for developers on my team who are following behind me, and would like to save them some grief. --Rick (rocket guy) |
|
|
|
只有小组成员才能发言,加入小组>>
5238 浏览 9 评论
2028 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3204 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
778浏览 1评论
666浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
595浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
677浏览 0评论
576浏览 0评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 06:28 , Processed in 1.333253 second(s), Total 77, Slave 61 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号