Reply
Highlighted
Posts: 12
Registered: ‎02-09-2016

Why does xIDE claim it can't find my license file?

If I add a global memory variable I get this error. 

 

Insufficient RAM available for APPLICATION_CONFIGURATION_HEADER usage (1942 bytes are available but 1958 bytes are required).

 

I am working on a wireless measurments em250 project from year 2011. I'm trying to add something to pan coordinator C source code xIde project  Why is global memory limited to 1942 bytes?

What limits/controls the global memory limit ?  Is there some file I can edit to adjust ?  I searched for APPLICATION_CONFIGURATION_HEADER *.* but nothing comes back.

 

Here is the complete compiler output

 

-------------------- Building firmware-gateway [Release] -----------------------

xapcl -xap2b -pack hal\micro\xap2b\em250\segments.xap -small -alist -aD$DEADSTRIP -aD$PEEPHOLE -aD$STK_STACK_SIZE=850 -aI.\hal\micro\xap2b\em250 -g -O1 -lib C:\Program Files (x86)\Ember\xIDE_EM250\xap2blib\lib -IC:\Program Files (x86)\Ember\xIDE_EM250\xap2blib\include -I. -I.\stack -I.\hal -o .\app\firmware-gateway\build\firmware-gateway -cmdfile .\app\firmware-gateway\build\files.tmp

DeadStrip for mcc-xap2b xap2basm Rev 2.14 [CODE CONST CONSTB CONSTW VAR VARB VARW INIT INITB INITW INITC INITCB INITCW MARKED STUBS MOVED ZCONST ZVAR ZINIT ZINITC 0x0101]

DeadStrip: ./app/firmware-gateway/build/ember-configuration.xap

DeadStrip: ./app/firmware-gateway/build/crc.xap

DeadStrip: ./app/firmware-gateway/build/diagnostic.xap

DeadStrip: ./app/firmware-gateway/build/flash.xap

DeadStrip: ./app/firmware-gateway/build/memory-protection.xap

DeadStrip: ./app/firmware-gateway/build/micro.xap

DeadStrip: ./app/firmware-gateway/build/sim-eeprom.xap

DeadStrip: ./app/firmware-gateway/build/symbol-timer.xap

DeadStrip: ./app/firmware-gateway/build/system-timer.xap

DeadStrip: ./app/firmware-gateway/build/token.xap

DeadStrip: ./app/firmware-gateway/build/uart.xap

DeadStrip: ./app/firmware-gateway/build/adc.xap

DeadStrip: ./app/firmware-gateway/build/serial.xap

DeadStrip: ./app/firmware-gateway/build/zigbee-device-library.xap

DeadStrip: ./app/firmware-gateway/build/trust-center.xap

DeadStrip: ./app/firmware-gateway/build/security-address-cache.xap

DeadStrip: ./app/firmware-gateway/build/zigbee-device-common.xap

DeadStrip: ./app/firmware-gateway/build/network-manager-lite.xap

DeadStrip: ./app/firmware-gateway/build/processMsgs.xap

DeadStrip: ./app/firmware-gateway/build/scan-utils.xap

DeadStrip: ./app/firmware-gateway/build/Wimesh.xap

DeadStrip: ./app/firmware-gateway/build/irq.xap

DeadStrip: ./app/firmware-gateway/build/timer.xap

DeadStrip: ./app/firmware-gateway/build/LorryGateway.xap

DeadStrip: ./app/firmware-gateway/build/Zcoordinator.xap

DeadStrip: ./app/firmware-gateway/build/Base64.xap

DeadStrip: ./app/firmware-gateway/build/SerialComms.xap

DeadStrip: ./app/firmware-gateway/build/mfgLoad.xap

DeadStrip: ./app/firmware-gateway/build/led-noactivity.xap

DeadStrip: ./app/firmware-gateway/build/dan1.xap

DeadStrip: hal/micro/xap2b/em250/mem-util-xap2b.xap

DeadStrip: build/alarm-stub-library-xap2b-em250-em250-debug/alarm-stub-library.xap

DeadStrip: build/binding-table-stub-library-xap2b-em250-em250-debug/binding-table-stub-library.xap

DeadStrip: build/end-device-bind-stub-library-xap2b-em250-em250-debug/end-device-bind-stub-library.xap

DeadStrip: build/cbke-stub-library-xap2b-em250-em250-debug/cbke-stub-library.xap

DeadStrip: build/security-library-core-xap2b-em250-em250-debug/security-library-core.xap

DeadStrip: build/security-library-link-keys-xap2b-em250-em250-debug/security-library-link-keys.xap

DeadStrip: build/zigbee-pro-stack-xap2b-em250-em250-debug/zigbee-pro-stack.xap

 

DEAD CODE 325 syms ~ 4519 instrs

DEAD CONSTB 45 syms ~ 427 bytes

DEAD CONSTW 10 syms ~ 48 bytes

DEAD VARB 8 syms ~ 8 bytes

DEAD VARW 10 syms ~ 28 bytes

DEAD INITB 2 syms ~ 2 bytes

DEAD INITW 2 syms ~ 4 bytes

DEAD INITCB 2 syms ~ 2 bytes

DEAD INITCW 2 syms ~ 4 bytes

DEAD STUBS 60 syms ~ 120 bytes

MOVE 1byteVar 47 syms ~ 884 bytes

PEEP 0 169 * 2 ~ 296 bytes LD#>127 >>> LD@CONST_

PEEP 8 3 * 4 ~ 12 bytes LD1 ADD2 ... ... [LD1 ADD2]

Total Saving: ~ 10873 bytes

 

DeadStrip completed; proceeding with assembly...

 

XAP2b Assembler V1.16 Protected (20 October 2011)

(c) Cambridge Consultants Ltd. 2004-2011

Pass 1, 2(5606), 3(77), 4(0), 5(0), 6(0)

NO ERRORS FOUND

 

XAP Compiler/Linker V1.23 Protected (27 February 2008)

(c) Cambridge Consultants Ltd 1995-2008

Processing command line files ...

Processing library files ...

Packing segments ...

Final assembly ...

NO ERRORS FOUND

 

Project is up to date.

Converting .xpv/.xdv into bootloader .ebl image

"C:/Program Files (x86)/Ember/xIDE_EM250/bin/post_build.bat"

 

c:\emberznet3.4.1\em250>"C:\Program Files (x86)\Ember\xIDE_EM250\bin\em2xx_convert.exe" -DPLAT=xap2b -DMICRO=em250 -DPHY=em250 -DBOARD=dev0455 ".\app\firmware-gateway\build\firmware-gateway.xpv"

 

em2xx_convert.exe Version 3.4 Build 2

Loading code file .\app\firmware-gateway\build\firmware-gateway.xpv...

// ROM START ADDRESS 0

// WORDSIZE 16

Loading data file .\app\firmware-gateway\build\firmware-gateway.xdv...

// ROM START ADDRESS 0

// WORDSIZE 8

Insufficient RAM available for APPLICATION_CONFIGURATION_HEADER usage (1942 bytes are available but 1958 bytes are required).

Failed to create file .\app\firmware-gateway\build\firmware-gateway.ebl in the Ember Bootloader (ebl) format.

FINISHED!

 

-------------------------------- Build finished. ---------------------------------

 

Posts: 104
Registered: ‎11-16-2015

Re: Why does xIDE claim it can't find my license file?

The EM250 is a memory limited processor, with only 5K is availible on chip, much of that occupied by the stack.  The limt of 1942 bytes is really the leftover memory once everything else has been placed.

I would recommend reading this KBA we have which addresses how to reduce RAM usage in applications.  It was writen with the EM250 in mind:

How do I reduce RAM usage in EmberZNet Pro?