large preload includes


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838

    Default large preload includes

    HI guys

    had an need to preload a pic with an include , that has a lot of preset serial strings and other data that the pic processes and then places the data into external flash chip in the areas and format needed

    the problem is the include is now bigger than the pic can handle and exceed the complie size for the pic(128k)

    simple answer is just devide the include into smaller parts , and then load /compile smaller includes files
    how ever management of the include when i need to add/ change things is a bit of pain as well when having to deal with multi files of the same base large include

    but would be nice to keep the large include as 1 file and allow the compiler to take selected sections of it to the max compile size and then generate multi hex files

    is that at all possible

    cheers

    Sheldon

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,383


    Did you find this post helpful? Yes | No

    Default Re: large preload includes

    get one of these

    http://www.autoelectric.cn/en/tl866_main.html

    and put a header on your board for the programmer to access the flash chip

    or

    add a routine to read in the flash data from an external source.

    my tft stuff included a flash routine to load images serially@38kbaud to a windbond 32meg chip, tested to do 100k files no problem
    Warning I'm not a teacher

  3. #3
    Join Date
    Sep 2009
    Posts
    737


    Did you find this post helpful? Yes | No

    Default Re: large preload includes

    It can be done with #IF ....
    Look manual for conditional compile in manual.
    I would suggest to you that you download data using serial port, or similar. So you don't have need to load multiple hex into pic.

  4. #4
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Talking Re: large preload includes

    ok cheers guys ,

    i have spi port on the flash chip for programming , so dont have to load multi hex files to pic after the end hex file is made for the flash, just copy it to the other flash chips as needed

    i have seperate compiles for the code as it was best to manage them that way from the start
    but now the includes on the 1 of them is grown and i rather not separate that to another install

    a structured #if would be good for those sections that could be loaded first , with a separation of the flash blocks done

    the pic install also install some information that is generated from flash info into the external EE chip sets after the external flash has loaded , so some consideration is required if the separating the install of the flash data

    fun stuff

  5. #5
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: large preload includes

    yep the #if works well enough

    just need to make sure the #define is placed prior to the includes , which makes sense

    saving the file a dif name for when the define is 0 and again when it 1 is fine

    the files now under 80k which gives the include a bit more space to grow

Similar Threads

  1. includes?
    By keithv in forum PBP3
    Replies: 2
    Last Post: - 23rd September 2014, 23:44
  2. Project Includes
    By Demon in forum General
    Replies: 2
    Last Post: - 7th October 2012, 22:33
  3. T1 interrupt and preload confusion
    By amgen in forum General
    Replies: 2
    Last Post: - 14th September 2011, 04:24
  4. Large LCD ID and datasheet
    By skimask in forum Off Topic
    Replies: 2
    Last Post: - 17th May 2008, 16:44
  5. large displays
    By George in forum Off Topic
    Replies: 2
    Last Post: - 18th March 2007, 22:56

Members who have read this thread : 2

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts