Microchip
直播中

叶亮

7年用户 225经验值
私信 关注
[问答]

HTTP NET加载错误

我正在使用:MZ-EF启动器套件W/Cuto。MPLABX 4、和声2.04、XC32 1.44 HTTPNEti编译、加载并运行NETXWebJoServer演示。好的。然后,我从头开始了一个项目,从演示中复制了MHC设置,并尝试加载项目。获得以下错误:NbProj/MaFixIMP.MK:39:目标''.Buff-IMPL ''失败链接错误的配方:无法在0x990000大小的65536链接错误中分配节'nvMyMyaLaDea.NvMyMediaLaDATA:不能分配程序内存.如果我删除MPFSIMIG2.C文件,项目加载OK .如果我查错了NGE的NVM媒体开始地址到0x9D010000在MHC(驱动/ NVM),我得到同样的错误(为什么不在0x9D010000?)我错过了一些东西,有人有什么建议吗?

以上来自于百度翻译


      以下为原文

    I am using: MZ-EF Starter Kit w/crypto. MPLABX 4.00, HARMony 2.04, XC32 1.44 HTTP_NET
I have compiled, loaded, and run the net_web_server demo. All OK.
Then, I started a project from scratch, copied the MHC settings from the demo and tried to load the project. Got the following error:
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
Link Error: Could not allocate section '.NVM_MEDIA_DATA.NVM_MEDIA_DATA' at 0x9d000000 SIZE 65536
Link Error: Could not allocate program memory

If I remove the mpfs_img2.c file, the project loads OK.
If I change the NVM Media Start Address to 0x9D010000 in MHC (drivers/NVM), I get the same error (why not at 0x9D010000?).

I am missing something here - does anyone have a suggestion where to look?

回帖(2)

王雪

2018-12-19 16:05:52
我把问题简化成一个简单的测试:1。使用PIC32 MZ2048 EFH144设备生成一个新项目-使用NVM驱动程序,设置NVM媒体启动地址=0x9d00,NVM媒体大小=64,启用擦除仪式功能,注册文件系统-系统服务/使用文件系统服务,微芯片文件系统-BSP配置,使用BSP= PIC32 MZ EF S塔特KIT2。MHC生成3。从“WebSythNETServer NVMMMPFS”演示项目4复制MPFSI.IMG2.C。生成主投影加载错误!更改NVM媒体启动地址=0x9D010000,负载错误消失。演示加载OK和这个简单的示例如何不?

以上来自于百度翻译


      以下为原文

    I reduced the problem to a simple test:
1.  Generate a New Project with the PIC32MZ2048EFH144 device
  -Use NVM Driver, set NVM Media Start Address = 0x9D000000, NVM Media Size = 64, Enable Erase Rite Function, Register with File System
  - System Services/Use File System Service, Microchip File System
  - BSP Configuration, Use BSP = PIC32MZ EF Starter Kit
2.  MHC Generate
3.  Copy mpfs_img2.c from “web_net_server_nvm_mpfs” demo project
4.  Build Main Project
 
Load Error!
Change NVM Media Start Address = 0x9D010000, and the load error goes away.
 
How does the demo load OK and this simple example does not?
 
举报

王雪

2018-12-19 16:12:28
更新:我在POST 1中发现了一个错误,因此0x9D010000的负载会加载,但不起作用,因为NVM媒体覆盖了那个位置的程序。在NVM媒体与程序不冲突的情况下,我必须不断增加加载起始地址。我使用的值是0x9D08000。虽然我可以破解负载,我想知道为什么和在哪里正确地修复它。黑客MHC使装载机工作不是一个好的解决方案。此外,演示项目为什么在0x990000中加载OK,而我的简单测试没有?有人吗?

以上来自于百度翻译


      以下为原文

    Update: I found an error in post #1, so that the load at  0x9d010000 does load but does not work because the NVM Media overlays the program at that location.  I had to keep upping the load start address until the NVM Media did not conflict with the program.  The value I used was 0x9D080000.  
 
Although I can hack the load, I would like to understand why and where to fix it correctly.  Hacking MHC to make the loader work is not a good solution. Also, why does the demo project load OK at 0x9D000000 and my simple test does not?  Anyone?
举报

更多回帖

发帖
×
20
完善资料,
赚取积分