• AVR Freaks

Hot!PIC32MZ using NVM Driver, HTTP and MPFS, Harmony V2.06 Upload problem....

Author
tporter905
Junior Member
  • Total Posts : 42
  • Reward points : 0
  • Joined: 2010/12/06 14:13:54
  • Location: 0
  • Status: offline
2020/09/15 13:46:02 (permalink)
0

PIC32MZ using NVM Driver, HTTP and MPFS, Harmony V2.06 Upload problem....

Hi,
 
I am trying to get my PIC32MZ dev kit up and running serving web pages. Everything works great until my MPFS upload reaches 2KB in size. The default Microchip precompiled webpage example shows up fine, and when I upload my MPFS image that example gets wiped out by mine, up to 2KB in size. After that the entire website is not found and I get a 404 error...
 
I am pretty sure the problem is in the TCPIP_HTTP_MPFSUpload function in the http.c file. The Harmony v2.06 seems to base the web server examples around the PIC32MX which uses a 512B row and 4KB page where the PIC32MZ uses a 2KB row and 16KB page size. The file system seems to fix the block size to 512, however I have changed the media size flash page buffer to 16384. Any help getting this going would be greatly appreciated. 
 
Thanks,
 
Tom 
#1

5 Replies Related Threads

    NKurzman
    A Guy on the Net
    • Total Posts : 18985
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: PIC32MZ using NVM Driver, HTTP and MPFS, Harmony V2.06 Upload problem.... 2020/09/15 14:39:10 (permalink)
    0
    Are your web pages in the PIC32MZ Flash?  Or and external Flash Chip?
    Did you increases the size of the MPFS partition?
    Does the TCP Heap have enough memory? does the TCP/IP Stack have enough sockets and packets allocated?
    #2
    tporter905
    Junior Member
    • Total Posts : 42
    • Reward points : 0
    • Joined: 2010/12/06 14:13:54
    • Location: 0
    • Status: offline
    Re: PIC32MZ using NVM Driver, HTTP and MPFS, Harmony V2.06 Upload problem.... 2020/09/15 18:10:28 (permalink)
    0
    In the PIC32MZ Flash, trhe MPFS partition is 32 blocks large, so should be ok. The default Microchip sample website has space and it is much larger, it gets wiped whenever I upload. The heap has lots of space, have increased it by a lot to see, I increased the sockets, no luck. Couldn't see where to increase # of packets...
     
    Thanks,
     
    Tom 
    #3
    NKurzman
    A Guy on the Net
    • Total Posts : 18985
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: PIC32MZ using NVM Driver, HTTP and MPFS, Harmony V2.06 Upload problem.... 2020/09/16 10:07:53 (permalink)
    0
    The Packets would be covered in the TCP/IP Stack Heap.
    By Upload you mean the PIC32 is a TCP/IP server and you are sending a file to it?   And that file is written to the MPFS Drive?
    If not then what?
    #4
    tporter905
    Junior Member
    • Total Posts : 42
    • Reward points : 0
    • Joined: 2010/12/06 14:13:54
    • Location: 0
    • Status: offline
    Re: PIC32MZ using NVM Driver, HTTP and MPFS, Harmony V2.06 Upload problem.... 2020/09/23 06:12:32 (permalink)
    5 (1)
    Packets didn't help, I am trying to use the MPCHBOARD/mpfsupload utility to upload the bin file generated by the mpfs2.jar program. I am trying to have that bin file upload into the NVM (code space using harmony NVM driver) on the PIC32MZ processor. 
     
    Thanks,
     
    Tom
    #5
    NKurzman
    A Guy on the Net
    • Total Posts : 18985
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: PIC32MZ using NVM Driver, HTTP and MPFS, Harmony V2.06 Upload problem.... 2020/09/23 13:50:01 (permalink)
    0
    I never used that feature My Webpage was in the code.
    You will need to dump the Full Hex File from the  PIC to an intel hex file.  Then you can see what is wrong or missing.
    You MPFS are on the PIC must be Flash erase Page aligned and Be a Multiple of the Flash page in size. This will stop you from erase or over writing adjacent code.
    #6
    Jump to:
    © 2020 APG vNext Commercial Version 4.5