完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛扫一扫,分享给好友
|
是否有人在MLA中使用USB实现并将其移植到他们的客户设计中。我一直在努力和努力解决建筑错误。这是一种贫民窟的方式接近它,但我不能想出一个更好的方式来做。我对如何处理下面的问题或启动一个更好的方法有任何想法。步骤:1)使用MCC来创建我的项目(包括USB)2,使用DIFF函数,比较所有的USB和Fielo.h和.c文件,以区别从MLA到自定义创建的项目。转移的USB配置从MLA到定制。3)将所有相关文件从MLA移动到自定义文件指导4)解决了新项目5中所有文件包含的错误。我不知道如何解释这些错误。最新的错误(抱歉的长度)://////////c“程序文件(x86) Microchip xC16v1.33 bin xx16gcc.exe”-o DIST/Deule/PudioOD1P75.x.Studio.ELF构建/默认/生产/ MCCH生成的文件/中断管理器。Entult/McCyGudioDyFrase/MCC.O构建/默认/MulcCudioType文件/SPI1.O构建/默认/生产/ MCCH生成文件/Pin管理器.O构建/默认/生产/MCCH生成文件/SPI2 .O构建/默认/生产/MCCH生成文件/I2C2. O构建/默认/生产/ OLED显示.O构建/默认/生产/Ext//Ext//UbjHoothMDS.O构建/默认/生产/OXBEXTEX/MSDDSSCSI。O构建/默认/生产/主。O构建/默认/生产/第2142726457 / 1949333609 /文件。O构建/默认/生产/第2142726457 / 2142726457 /UBSHOST。E/Outs/MulcCudioDyFrase/UBS/HalpPIC24.O构建/默认/生产/ McCyGudioDyFrase/UBS/UBJHOSTYORIONS .O-MCPU= 24FJ64 GBB44-OFF = ELF-DXPRJIORADY =默认-遗留-LBCC-Wl,,-DeSyMm=Y-MPLABBULL=1,,-脚本=P24FJ64 GBB4.4.GLD,堆=6000,堆栈=16,检查部分,数据init,-打包数据,句柄,-ISR,没有GC区段,-填充上=0,-STACKGARID=16,-智能IO,-MAP=“DIST/Deule/PudioOD1P75 .x.Puth.map”,报告MeM-,MeMyType,DIST/Deule/Studio / MeMyFieldFiel.xml NbPosi/MaFaMeCurrime.MK:331:目标“DIST/DEBP/P”的配方RoutuoTe/Poodio1P7.x.Engult.HEX’FrimeDebug [2 ]:离开目录'C:/MyCHIPIPRJ/PRODIONO1P75 / PRODIONO1P75 .x′/////-感谢-t
以上来自于百度翻译 以下为原文 Has anyone ever taken the USB implementation in the MLA and ported it to their customer design. I have been trying and working really hard to resolve build errors. This is a bit of a ghetto way to approach it but, I can't come up with a better way to do it. I'm open to any ideas of how to work through the below issues or start over with a better approach. Steps: 1) Used MCC to create my project (including USB) 2) Using the diff function, compared all USB and fileio .h and .c files for differences from the MLA to the custom created project. Transferred USB configs from the MLA to the custom. 3) Moved all related files from MLA to custom file directories 4) Resolved all file include errors in the new project 5) I'm now seeing make file errors. I don't know how to interpret these errors to resolve them. latest error (sorry for the length): //////////// "C:Program Files (x86)Microchipxc16v1.33binxc16-gcc.exe" -o dist/default/production/ProAudio1p75.X.production.elf build/default/production/mcc_generated_files/interrupt_manager.o build/default/production/mcc_generated_files/mcc.o build/default/production/mcc_generated_files/spi1.o build/default/production/mcc_generated_files/pin_manager.o build/default/production/mcc_generated_files/spi2.o build/default/production/mcc_generated_files/i2c2.o build/default/production/OLED_Display.o build/default/production/General_Tools.o build/default/production/_ext/2142726457/u***_host_msd.o build/default/production/_ext/2142726457/u***_host_msd_scsi.o build/default/production/main.o build/default/production/_ext/1949333609/fileio.o build/default/production/_ext/2142726457/u***_host.o build/default/production/mcc_generated_files/u***/u***_hal_pic24.o build/default/production/mcc_generated_files/u***/u***_host_events.o -mcpu=24FJ64GB004 -omf=elf -DXPRJ_default=default -legacy-libc -Wl,,,--defsym=__MPLAB_BUILD=1,,--script=p24FJ64GB004.gld,--heap=6000,--stack=16,--check-sections,--data-init,--pack-data,--handles,--isr,--no-gc-sections,--fill-upper=0,--stackguard=16,--no-force-link,--smart-io,-Map="dist/default/production/ProAudio1p75.X.production.map",--report-mem,--memorysummary,dist/default/production/memoryfile.xml nbproject/Makefile-default.mk:331: recipe for target 'dist/default/production/ProAudio1p75.X.production.hex' failed make[2]: Leaving directory 'C:/MicrochipPrj/ProAudio1p75/ProAudio1p75.X' /////// Thanks -T |
|
相关推荐
12个回答
|
|
|
查看ItnBPix/MaMeFiel-Debug .MK:缺少链接的一些先决条件。可能是来自MLA的库文件(又名“Obj'的集合”),因为有这样一个LIB的引用:“……-传统LIBC……”
以上来自于百度翻译 以下为原文 Look into nbproject/Makefile-default.mk: some precondition for the linkage is missing. Might be a library file (aka "collection of obj's) from the MLA as there is some reference to such a lib to be seen: "... -legacy-libc ..." |
|
|
|
|
|
我已经为主机和设备做了这件事。找到一个示例项目(它们对于主机和设备都存在),并查看是否可以使其工作。你只需要改变你的处理器类型和一些定义来让它工作。也许是链接脚本。一旦你这样做,出口(包)你的项目,以摆脱所有多余的废话。从那里开始为你的应用程序提供支持。它不应该花很长时间。
以上来自于百度翻译 以下为原文 I've done this for both host and device. Find a sample project (they exist for both host and device) and see if you can get it to work. You should only have to change your processor type and a few #defines to get it to work. Maybe a linker script. Once you have that going, export (package) your project to get rid of all of the extraneous crap. From there, start bolting things for your application. It shouldn't take long at all. |
|
|
|
|
|
我有简单的MSD MLA与我的自定义代码工作得很好。我遇到的麻烦是当我试图定制我的自定义板时,它不会生成。我不知道如何把它从开发板上的PIM中分离出来。这是为什么我认为启动一个新的项目会更容易……[DIST/PIC24FJ46GB44/生产/Exp16PIC24FJ46BB44PiM.x.Proto.HEX-TUST-F NBProj/MaFe文件-PIC24FJ64 GBB4.4.MK DIST/PIC24FJ64 GB9004/Proto/Exp16PIC24FJ64 GBB44PIM.X.Projut.HEX
以上来自于百度翻译 以下为原文 I have the simple MSD MLA working well with my custom code. The trouble I'm having is when I attempt to target my custom board, it won't build. I can't figure out how to detach it from the PIM on the development board. That's why I thought starting a fresh project would be easier.... make[2]: 'dist/PIC24FJ64GB004/production/exp16_pic24fj64gb004_pim.x.production.hex' make -f nbproject/Makefile-PIC24FJ64GB004.mk dist/PIC24FJ64GB004/production/exp16_pic24fj64gb004_pim.x.production.hex |
|
|
|
|
|
找到LIB有多难?我四处游逛,什么也没看见。
以上来自于百度翻译 以下为原文 du00000001, How difficult is it to find the -lib? I've poked around and see nothing. |
|
|
|
|
|
你用同一张照片吗?MLA MSD简单演示只使用USB引脚,除了添加自己的应用程序逻辑外,几乎不需要改变任何东西。访问拇指驱动文件?当我使用MLA演示作为我的项目的基础时,我通常把它复制到一个不同的目录中,或者我使用“包”工具来把演示文稿存档并解压缩到一个不同的目录中。我没有建立任何问题。
以上来自于百度翻译 以下为原文 Do you use the same PIC? The MLA MSD simple demo only uses USB pins, you pretty much don't need to change anything except for adding your own application logic. What's your project about? Accessing thumb drive files? When I used the MLA demo as the base for my project, I usually copied it to a different directory or I used the "package" tool to archive the demo and unzip it into a different directory. I didn't have any problems building it. |
|
|
|
|
|
如果你仍然有MLA配置构建:检查链接器输出文件(包括地图文件)以获得对LIB的任何指示:要么不是来自项目目录的对象,要么是某个库的直接“提及”(扩展。A可能适用)。不幸的是,我没有。让任何MLA项目做一些快速检查。
以上来自于百度翻译 以下为原文 If you still have the MLA configuration building: check the linker output files (including the map file) for any indication for a lib: either objects not coming from your project directories or maybe the direct "mention" of some library (the extension .a might be applicable). Unfortunately I do not have any MLA project to do some quick check. |
|
|
|
|
|
我试图移动到我的硬件,但是当我尝试启动调试会话时,我正在接收一个错误。你以前见过这个吗?它建造得很干净。这只是调试阶段,我无法启动。时钟频率和引脚对于两个电路板都是相同的。我正试着在这个时候什么也不做。我只想看到MLA项目运行在我的硬件上…编程/验证完成,目标设备还没有准备好调试。请检查配置位设置并在继续之前对设备进行编程。这种故障最常见的原因是振荡器和/或PGC/PGD设置。
以上来自于百度翻译 以下为原文 I've attempted to move to my hardware but am receiving an error when I attempt to start a debug session. Have you seen this in the past? It does a clean build. It's only the debug session I can't get started. The clock freq. and pins are the same for both boards. I'm attempting to get nothing else operating at this time. I only want to see the MLA project running onb my hardware.... Programming/Verify complete The target device is not ready for debugging. Please check your configuration bit settings and program the device before proceeding. The most common causes for this failure are oscillator and/or PGC/PGD settings. |
|
|
|
|
|
当将板连接到程序员/调试器进行调试时,PGECX/PGEDX引脚必须匹配CW1:ICSX配置位中的定义。你能再核对一下吗?
以上来自于百度翻译 以下为原文 When you connect your board to the programmer/debugger for debugging, the PGECx/PGEDx pins have to match the definition in the CW1:ICSx configuration bits. Can you double-check it? |
|
|
|
|
|
我不知道那件事。如何设置/控制“CW1:ICSX配置位”?
以上来自于百度翻译 以下为原文 I didn't know about that one. How do I set/control the "CW1:ICSx configuration bits"? |
|
|
|
|
|
用MLA 2017.03.06,MSD简单演示,配置位在系统C中定义。
以上来自于百度翻译 以下为原文 With MLA 2017.03.06, the msd simple demo, the configuration bits are defined in system.c. #pragma config ICS = PGx1 |
|
|
|
|
|
谢谢,我的项目在我的硬件上工作。现在是困难的部分(我试图避免)。我在看MLA项目系统C,看到PrGrMA的,我看不出它的定义。你知道我会在哪里找到PS1或PR32的定义吗?我对这些寄存器是很酷的,只是不清楚在哪里定义了引用。
以上来自于百度翻译 以下为原文 Thanks, I got the project working on my hardware. Now the tough part (I was trying to avoid). I'm looking at MLA projects system.c and see pragrma's I don't see the definition for. Do you know where I would find the definition for PS1 or PR32? I'm cool with what registers these are, just not clear where the references are defined. #pragma config WDTPS = PS1 #pragma config FWPSA = PR32 #pragma config ICS = PGx3 |
|
|
|
|
|
信息在数据表中,或者在MPLAB X中,您可以在[菜单]窗口中设置它,pic内存视图& gt;配置位,然后“生成源代码输出”。
以上来自于百度翻译 以下为原文 The information is in the datasheet, or in MPLAB X, you can set it up in [Menu] Window > PIC Memory Views > Configuration Bits Then "Generate Source Code to Output" |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
473 浏览 0 评论
5793 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3530 浏览 3 评论
1124浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1095浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
873浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
475浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 02:50 , Processed in 0.908889 second(s), Total 96, Slave 79 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2955