完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我一直在努力获得一个版本的MLA MSdSimeLeMo演示在我自己的硬件上没有成功。在调试器下运行(或下载下载运行时程序崩溃)时,我不断获得“由于用户代码中的软件断点而停止目标”的消息。最后,我用PIC24FJ256GB110 PIM回溯到Explorer 16,PICTHOST硬件和示例MLA MSDSimple EXEDE DEMO代码,但结果完全相同。当使用“调试主项目”按钮时,在C之后不久,我就得到了“由于用户代码中的软件断点而停止的目标”。ODE开始运行。当使用“制作和编程设备主项目”时,程序加载但出现崩溃。(在我自己的硬件,在相同的情况下,我可以看到微控制器重新启动,一旦它到执行USB任务的点)。尝试设置断点赶上事情出错了没有工作。我使用ICD3,MPLAB X IDE 4.10,XC16 V1.26,MLA V2017Y03Y06,并利用了所有。适当的文件(据我所知)来自MLA ApvsUSB 主机 MSDY SimuleMeDo和Fielo和USB框架。我的项目有3个逻辑FrutssFielo中的头文件:FILIO.H.FILIOOLLFN.H(可能不需要)FILIOOIMENTA.HSRC:AppIHOSTHOMMSDYORUNION.H FILIOOXCONFIG.H St.HythySoCyFig .hUBSCONtiON.HUBB:U.BBSCH9.H UBSU.H.UbByHal.H.UbjHID.h(可能不需要)UBSHEST.H.UBSHOSTHOMDSM.H.UBSHOSTOMSTMSDYSCSI .H.UBJStrutStQueLay.类似地,我已经将项目源文件组织成3个逻辑FLDRESFILIO:FILIOO.CSRC:AppHythMasdMSUnLim.C St.CC.UbjHalpPix.fc.UbbHyPIC24f.c UbxHooStMDS.C UbxHooStMsdssi.C.这些文件都是MLA V2017Y03Y06中未更改的副本,除了对UbjalHalpPi24f.c的一些小改变,其中I1)将“BOOL USBSleepOnSuspend(无效)”改为“bool USBSleepOnSuspend(无效)2)CH。由于BoL和true是未定义的,在“最后一行”中返回“true”到“返回true”。对我可能做的错误的任何建议都将非常感谢!安得烈
以上来自于百度翻译 以下为原文 Hi, I've been battling to get a version of the MLA msd_simple_demo working on my own hardware without success. I keep getting the "Target halted due to Software Breakpoint in user code" message when running under the debugger (or program crash when downloading to run). I eventually backtracked all the way back to an Explorer 16 with PIC24FJ256GB110 PIM, PICtail hardware and sample MLA msd_simple_demo code, but with exactly the same results. When using the "Debug Main Project" button, I get "Target halted due to Software Breakpoint in user code" shortly after the code starts running. When using the "Make and Program Device Main Project", the program loads but appears to crash. (On my own hardware, in the same situation, I could see the microcontroller restarting once it got to the point of executing the USB tasks). Trying to set breakpoints to catch where things go wrong has not worked. I am using ICD3, MPLAB X IDE 4.10, xc16 V1.26, MLA v2017_03_06 and have made use of all appropriate files (as far as I know) from MLA appsu***hostmsd_simple_demo and from the fileio and u*** framework. My project has Header Files in 3 logical folders fileio : fileio.h fileio_lfn.h (probably not needed) fileio_media.h src : app_host_msd_simple.h fileio_config.h system.h system_config.h u***_config.h u*** : u***.h u***_ch9.h u***_common.h u***_hal.h u***_hal_pic24f.h u***_hid.h (probably not needed) u***_host.h u***_host_msd.h u***_host_msd_scsi.h u***_struct_queue.h Similarly, I have organised the project Source Files into 3 logical folders fileio : fileio.c src : app_host_msd_simple.c system.c main.c u***_config.c u*** : u***_hal_pic24f.c u***_host.c u***_host_msd.c u***_host_msd_scsi.c These files are all unaltered copies of what is in MLA v2017_03_06 except for a couple of minor changes to u***_hal_pic24f.c where I 1) Changed "BOOL USBSleepOnSuspend(void)" to "bool USBSleepOnSuspend(void)" 2) Changed "return TRUE" to "return true" in the last line of USBSleepOnsuspend() due to BOOL and TRUE being undefined. Any suggestions on what I might be doing wrong would be very much appreciated! Andrew |
|
相关推荐
2个回答
|
|
你是说你不能在Explorer 16上运行演示吗?你修改了MLA中的任何文件吗?它对我在Explorer 16/32与24EP512GU810 PIM,没有修改很好。
以上来自于百度翻译 以下为原文 Are you saying you couldn't get the demo to run on the Explorer 16? Have you modified any files in the MLA? It worked fine for me on an Explorer 16/32 with the 24ep512gu810 PIM with no modifications. |
|
|
|
感谢回答- MLA文件未修改,但我把它们一起从一个项目从头开始。我通过使用未修改的,现成配置的演示项目在MLav2016G04Y27(来自USB主机MSDYSimuleSemo)工作。它直接运行,并且有效地(对于PIC24F)MLav2016G04Y27、USB、FILIO文件和MLav2017J03Y066中的文件没有区别。他们惊讶地从最近的MLA中删除了这些现成的项目。因此,错误必须位于我创建项目Uin的某个地方。2017年03Y06源文件。我会检查并汇报。
以上来自于百度翻译 以下为原文 Thanks for replying - the MLA files were unmodified, but I put them together into a project from scratch. I got things working by using an unmodified, ready-configured demo project in MLAv2016_04_27 (from u***hostmsd_simple_demo). It worked straight away and there is effectively (for PIC24F) no difference between MLAv2016_04_27 u*** + fileio files and those in MLAv2017_03_06 I'm surprised that they removed these ready-made projects from the more recent MLA. So the error must lie somewhere in my attempts to create a project using the 2017_03_06 source files. I'll check and report back. Cheers |
|
|
|
只有小组成员才能发言,加入小组>>
5161 浏览 9 评论
1999 浏览 8 评论
1928 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3171 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2226 浏览 5 评论
731浏览 1评论
613浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
503浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
629浏览 0评论
527浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 21:45 , Processed in 1.444150 second(s), Total 80, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号