• AVR Freaks

Hot!to increase web page

Author
LECAT
Junior Member
  • Total Posts : 116
  • Reward points : 0
  • Joined: 2012/01/24 03:23:44
  • Location: MONTPELLIER FRANCE
  • Status: offline
2019/08/18 01:59:08 (permalink)
0

to increase web page

Hello
I use the curiosity card PIC32MZ wifi easy configuration
I would like to put a file of 156KB in the web pages but I have a problem of compilation that I can not solve
 
const uint8_t __attribute__((space(prog),address(DRV_NVM_MEDIA_START_ADDRESS))) __attribute__((keep)) NVM_MEDIA_DATA[DRV_NVM_MEDIA_SIZE*1024] = { \
 
Thanks a lot of
 
Franck
#1

15 Replies Related Threads

    maxruben
    Super Member
    • Total Posts : 3354
    • Reward points : 0
    • Joined: 2011/02/22 03:35:11
    • Location: Sweden
    • Status: offline
    Re: to increase web page 2019/08/18 02:39:01 (permalink)
    0
    Use an external SPI flash chip for web pages.
     
    /Ruben
    #2
    LECAT
    Junior Member
    • Total Posts : 116
    • Reward points : 0
    • Joined: 2012/01/24 03:23:44
    • Location: MONTPELLIER FRANCE
    • Status: offline
    Re: to increase web page 2019/08/18 03:15:58 (permalink)
    0
    how to make it fit into EEPROM memory
    #3
    maxruben
    Super Member
    • Total Posts : 3354
    • Reward points : 0
    • Joined: 2011/02/22 03:35:11
    • Location: Sweden
    • Status: offline
    Re: to increase web page 2019/08/18 03:48:34 (permalink)
    0
    You need more memory which is why an external memory chip is needed. Perhaps you can also use a processor chip with more memory.
     
    Maybe you could also download data from an external link on a server.
     
    /Ruben
     
    #4
    LECAT
    Junior Member
    • Total Posts : 116
    • Reward points : 0
    • Joined: 2012/01/24 03:23:44
    • Location: MONTPELLIER FRANCE
    • Status: offline
    Re: to increase web page 2019/08/18 06:52:16 (permalink)
    0
    I do not understand I use a PIC32MX with the stack 5.21 it works very well and the PIC32MZ with two times more memory it does not work
    DATA = 18% and program 23% there is still room!
     
    Franck
    #5
    NKurzman
    A Guy on the Net
    • Total Posts : 17709
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: to increase web page 2019/08/18 08:36:26 (permalink)
    0
    You say you have a compiling problem. What is it ? Where did you change the size?
    In the code or MHC? What version of Harmony are using ?
    #6
    LECAT
    Junior Member
    • Total Posts : 116
    • Reward points : 0
    • Joined: 2012/01/24 03:23:44
    • Location: MONTPELLIER FRANCE
    • Status: offline
    Re: to increase web page 2019/08/18 10:53:41 (permalink)
    0
     
    I use the Harmony 5.05

    GENERATED MPFS2 IMAGE: 89317 bytes

    the result of the compilation gives :
     
    ../src/mpfs_img2.c:46:1: error: excess elements in array initializer [-Werror]
     const uint8_t __attribute__((space(prog),address(DRV_NVM_MEDIA_START_ADDRESS))) __attribute__((keep)) NVM_MEDIA_DATA[DRV_NVM_MEDIA_SIZE*1024] = { \
     ^
    ../src/mpfs_img2.c:46:1: error: (near initialization for 'NVM_MEDIA_DATA') [-Werror]
     
    thank you
    #7
    LECAT
    Junior Member
    • Total Posts : 116
    • Reward points : 0
    • Joined: 2012/01/24 03:23:44
    • Location: MONTPELLIER FRANCE
    • Status: offline
    Re: to increase web page 2019/08/18 11:00:56 (permalink)
    0
     
     
    I just added a charts.Js file

    Attached Image(s)

    #8
    NKurzman
    A Guy on the Net
    • Total Posts : 17709
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: to increase web page 2019/08/18 11:20:29 (permalink)
    0
    You need to increase the size of NVM in The microchip Harmony configurator (MHC). 5.5 is your version on MPLABX, not Harmony. And your version of Harmony and MHC must match. The “ latest” may not work.
    You can try changing the size manualy in the program, i’m not 100% positive that will work
    #9
    LECAT
    Junior Member
    • Total Posts : 116
    • Reward points : 0
    • Joined: 2012/01/24 03:23:44
    • Location: MONTPELLIER FRANCE
    • Status: offline
    Re: to increase web page 2019/08/19 03:57:35 (permalink)
    0
    Hello
    I updated mplabx to the latest version

    I tried to change the size of NVM MEDIA SIZE  and also change the start of START MEDIA but nothing works anymore

    I tried
    #define DRV_NVM_MEDIA_SIZE              64 
    #define DRV_NVM_MEDIA_START_ADDRESS     0x9C000000
    it compiles well but the program does not work
    and
    #define DRV_NVM_MEDIA_SIZE              127 
    #define DRV_NVM_MEDIA_START_ADDRESS     0x1D000000
     
    it compiles well but the program does not work
     
    DEFAULT
    #define DRV_NVM_MEDIA_SIZE              64 
    #define DRV_NVM_MEDIA_START_ADDRESS     0x9D000000
     
    Thanks
    #10
    NKurzman
    A Guy on the Net
    • Total Posts : 17709
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: to increase web page 2019/08/19 04:04:54 (permalink)
    0
    I did not say you need to install a MPLabX
    I am assuming you are using Harmony. Are you? What version? Do you know how to use MHC?
    #11
    LECAT
    Junior Member
    • Total Posts : 116
    • Reward points : 0
    • Joined: 2012/01/24 03:23:44
    • Location: MONTPELLIER FRANCE
    • Status: offline
    Re: to increase web page 2019/08/19 05:40:40 (permalink)
    0
    If I use Harmony 2.0.52
     
     
    #12
    LECAT
    Junior Member
    • Total Posts : 116
    • Reward points : 0
    • Joined: 2012/01/24 03:23:44
    • Location: MONTPELLIER FRANCE
    • Status: offline
    Re: to increase web page 2019/08/19 05:46:27 (permalink)
    0
    I tried several changes but it does not work can you help me
    thank you

    Attached Image(s)

    #13
    LECAT
    Junior Member
    • Total Posts : 116
    • Reward points : 0
    • Joined: 2012/01/24 03:23:44
    • Location: MONTPELLIER FRANCE
    • Status: offline
    Re: to increase web page 2019/08/19 07:29:16 (permalink)
    0
     
     
    can this be from the parameter
    --defsym = _ebase_address = 0x9D010000
     
    thanks
    #14
    LECAT
    Junior Member
    • Total Posts : 116
    • Reward points : 0
    • Joined: 2012/01/24 03:23:44
    • Location: MONTPELLIER FRANCE
    • Status: offline
    Re: to increase web page 2019/08/19 08:36:09 (permalink)
    0
    HI
     
    I found the problem

    I changed the value  --defsym = _ebase_address = 0x9D050000 of and everything works fine
     
    #define DRV_NVM_INSTANCES_NUMBER         1
    #define DRV_NVM_CLIENTS_NUMBER            2
    #define DRV_NVM_BUFFER_OBJECT_NUMBER      10
    #define DRV_NVM_INTERRUPT_MODE            true
    #define DRV_NVM_INTERRUPT_SOURCE          INT_SOURCE_FLASH_CONTROL

    #define DRV_NVM_MEDIA_SIZE              140
    #define DRV_NVM_MEDIA_START_ADDRESS     0x9D000000

    thank you so much
    #15
    NKurzman
    A Guy on the Net
    • Total Posts : 17709
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: to increase web page 2019/08/19 10:27:53 (permalink)
    0
    If I use Harmony 2.0.52  That would be the MHC version.  That would be correct IF you are using Harmony 2.00
    If you are you may want to move to the Latest released version of Harmony 2.05.  You will need to amnaul update MHC to the 2.05.XX that that version needs.
    #16
    Jump to:
    © 2019 APG vNext Commercial Version 4.5