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.

EndDeviceDB base on cc2430db

There is usually a warning When I run the SerialApp`s enddeviceDB on CC2430DB.

"Warning:Possible IDATA stack overflow detected.Reset target to re-able overflow check"

Why?I re-install the "\ZStack-1.4.3-1.2.1",but it is not useful.

I modified the "INT_HEAP_LEN=4096" to "xINT_HEAP_LEN=4096",it is usually not useful.

Can anyone tell me how to do it?

It is very terrible.

Thanks.

  • Hello Weiguo,

    A couple comments here

    1) I would not recommend using an end device with the serial app.   Simply because serial data is typically a stream which conflicts with the typical poliing behaviour of an end device.    This is likely causing your stack overflow as I have seen similar behaviour.    The build up of serial data between ED polls can cause this problem.

    I would recommend building a router instead.   If you need an end device two things you can do

    -  turn polling off if possible

    - use a very short polling rate and that should help at least minimize the problem.  this is changed in the configuration file.

    I hope this helps.

    Cheers,
    Yoda

  • Thank you.I will try it.And back again.

  • weiguo yu:

    Any progress on the reported problem? I am facing the exact probelm as yours and so far i am at a loss.

    Dear Yoda:

    Let me explain the scenario that i am facing: 

    1. I am trying to run the SerialApp program found in the utilities section of ZStack.

     

    2. My EB board can be configured as an Enddevice and my DB board can be configured as a Coordinator. Like this they are able to function normally. I am able to configure the EB board as coordinator too. It is able to power up normally and start a ZigBee network.

     

    3. However I cannot configure my DB board as an Enddevice. After I download the program and turn on the board there is no LED turned on or any response from the board. I tried running in the IAR debugger and once I press the ‘Go’ button I get a warning “Possible  IDATA Stack Overflow detected”.

    The strange thing is, LED 3 must turn on once the DB has joined the network. This is not happening. So polling or streaming of data cannot be an issue.

     

    I did not do any modifications to the SerialApp. I even tried to uninstall and reinstall ZStack but the problem persists. I have tried different DB boards but no luck.

     

    Other Apps like SampleApp is able to run fine w.o any issues.

     

    My IAR version is 7.51A/32 (7.51.13)

    Zstack version is 1.4.3-1.2.1

     

    It would be helpful If you can shed some light on this issue.

     

  • As I remember, I had the same problem long time ago. You must play with the options of heap, idata,... in IAR. Also, there's a configuration file that you must specify for the ZStack.

     

    Bye!

  • Aright folks, i managed to overcome this issue.

    There is a Macro called FREE_OTABUF defined in the SerailApp.c file. I commented out this macro as well as the associated macro calls and the problem disappears. Looks this this macro is causing some stack overflow.

    So temporarily you might want to try this method to overcome ths issue. However the repurcussion of not using macro is something one needs to take care of.