This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EEcounterd error when compiling Z-stack sample code

Other Parts Discussed in Thread: Z-STACK, CC2430, CC2530

Hi

When I was compiling the z-stack, I got 2 errors.

The errors are:

Error[PE095]: arry too large
Error while running C/C++ Comiler

I have got 3 warnings as well regaring coversion.

 

Does anyone know how I can overcome this? Please help!

I am using CC2430EM and IAR Embedded Workbench 8051.

  • Hi,

     

    It depends on size of the array you have declared. Since cc2430 is very short on

    available RAM, you should be careful on the size of declared variables.

    What is exactly the line in the code causing this error. From the error I can see

    that some array is too large, but I actually have to see the declaration of this

    specific array to tell what is the problem.

  • Hi Igor

     

    This is the screenshot of the error. Not sure if you can see the declaration. These files are original files from the z-stack, did not make any significant changes to them.

    Thank you in advance!!

  • Hi,

     

    You are right, I can't see a thing. You can copy and post these lines, plus those

    variable/constants that defines the length of the array.

     

    One more thing, what is the version of IAR compiler and Z-Stack you are using?

  • The line is:

    static halDataAlign_t _theHeap [ MAXMEMHEAP / size of (halDataAlighn_t)];

    This error line seem to generate both of the errors.

    I am using ZStack - 1.4.3-1.2.1. I am not sure if it is the original copy because I obtained it from my senior who was working on the same project a couple of years ago. Do you have a copy of ZStack?

    I am using IAR EW8051-750A.

    Thank you for your replies!

  • Hi,

     

    I'm very sorry, but this version of stack is very old and I'm not familiar with it,

    so my help here is very limited.

    I have only one suggestion, to search for the MAXMEMHEAP value, may be

    it exceeds some limit (probably).

  • Hi

    Thanks a lot for your input!

    Do you have a newer version of Z-stack that I can work with, if you don't mind sending it to me.

    Thank you once again.

  • Hi,

     

    I'm pretty sure that new version of Z-stack isn't supported by cc2430.

    I have previous versions; 2.3.0, 2.3.1, 2.4.0 and 2.5.0, where 2.5.0

    can be downloaded directly from TI website, but all of these versions

    are for cc253x devices and aren't supported by the earlier cc243x family.

    Is there a chance you can upgrade your hardware to cc253x family 

    (that is of course you still interested in ZigBee solution)? 

  • Hi

    There is also a set of cc2530 in my lab which one of my colleagues is experimenting with.

    May I know how can I use the z-stack? It's an executable file and it always has a message that states 'no device found' even when the evaluation board is connected.

    Thank you for your advices so far!

    And oh, do you have a copy of z-stack for cc2430? I have gotten my z-stack from my senior who was working on it so I'm not sure if he made any changes that caused the memoy error.

    Thank you once again

  • Hi,

     

    tok quine said:
    May I know how can I use the z-stack? It's an executable file and it always has a message that states 'no device found' even when the evaluation board is connected.

    Well, first of all after you have downloaded and installed the latest Z-stack version (you can download it here),

    you can open one of the example projects with IAR EW and later edit it, for your own purposes. If you

    experiencing any problems with it, let me know (what steps you did and what isn't working) so I can help you.

     

    Regarding Z-stack for cc2430, I have no copy of this Stack, but you can check out this link, I'm not sure if this

    is what you need though. I've taken this link from another thread (page 2), may be you will be interested in

    reading this thread too.