Cannot boot NK.bin larger than 64MB in debug mode using loadcepc.exe in Wec7 RRS feed

  • Question

  • Hi All,

    I'm currently using loadcepc.exe to boot windows embedded compact 7 NK.bin, but when image is larger than 64MB in debug build, it is showing the following error message : 

    Error image sectin doesnot fit in allocated block
    block allocated at 0x110000,size=67107840
    section physical start=0x040A9000,size=788740

    I'am not able to download the imge. Has anyone encountered this issue in WEC7? Any suggestions are appreciated!


    Monday, May 22, 2017 12:58 PM

All replies

  • My suspicion is you have a problem with IMG Environment Variables.  Which IMGRAM setting are you using?
    Monday, May 22, 2017 11:58 PM
  • Hi Prabhu,

    this is known restriction of loadcepc. It uses DOS XMS functionality to allocate memory higher 1MB boundary, function 09h. Memory block size in Kbytes is defined by DX register (16-bit), so we have got 64MB limit. Use Biosloader (DiskPrep) instead.

    Ref - 

    XmsAllocateExtendedMemory() @ platform\CEPC\src\bootloader\dos\loadcepc\xmsapi.c

    Best regards, Igor

    Tuesday, May 23, 2017 7:49 AM