All Forums
 Other Operating Systems
 VxWorks FAQ
 Increasing the image size
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

KnowledgeBase

296 Posts

Posted - 26 Mar 2002 :  08:24:22  Show Profile  Email Poster
Q: How can I increase the VxWorks image size in flash?

You'll need to change two files: The config.h in the BSP and the adsload.hwt file:
  1. ADSLOAD.HWT
    In adsload.hwt, change the amount of flash set aside for the image. The following example changes the amount of flash from 4MB to 7MB:

    from:
    ; Operating System settings
    0x00B00240 0x000000BE ; system is running VxWorks
    0xA110C401 0x00400000 ; flash memory set aside for VXWORKS.BIN (0x00400000 4MB)

    to:
    ; Operating System settings
    0x00B00240 0x000000BE ; system is running VxWorks
    0xA110C401 0x00700000 ; flash memory set aside for VXWORKS.BIN (0x00700000 7MB)

  2. Config.h
    Update config.h in the BSP with the target size of the image. You can use any value for ROM_SIZE smaller than ([flash installed] - 1MB(ADS config files) - 256KB(NVRAM Space)). Again, the example below sets up the image size to be up to 7MB in size.
     /* 
    Attention VxWorks Customers !!!!!
    Only you need to set BUILD_BOOTROM_BIN_FIILE as TRUE when you build VxWorks Bootrom (Bootrom.bin)
    Once you build VxWorks Bootrom, You need to set BUILD_BOOTROM_BIN_FIILE as FALSE

    */

    #define BUILD_BOOTROM_BIN_FIILE FALSE

    #if BUILD_BOOTROM_BIN_FIILE
    #define ROM_BASE_ADRS 0x08000000 /* base of writable Flash */
    #define ROM_TEXT_ADRS 0x08000000
    #define ROM_SIZE 0x00040000 /* MAX BOOTROM: 256 KB */
    #define ROM_COPY_SIZE ROM_SIZE
    #else
    #define ROM_BASE_ADRS 0x08100000 /* base of writable Flash */
    #define ROM_TEXT_ADRS 0x08100000
    #define ROM_SIZE 0x00700000 /* Flash size ( 7 MB) */
    #define ROM_COPY_SIZE ROM_SIZE
    #endif


------------------
ADS Knowledge Base
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.02 seconds. Snitz Forums 2000