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.

Routers Build Network

Other Parts Discussed in Thread: Z-STACK

Hi, 

When I shut down the coordinator for test purposes; one of the routers start acting like a coordinator and the other devices join that network. Then I turn on the coordinator but network is not restored. What is the reason for that and how can I fix this problem?

Best Regards,

Necdet

  • Hi Necdet,

     

    NV_RESTORE=TRUE and NV_INIT=TRUE compile flags should solve your problem

    (and again, I don't know if these options exist in Z-stack 1.4.3).

    One more thing, it's not a good idea to shut down coordiantor as long as it used as one

    of the routers in the network, however such things are application specific so you probably

    know better what's going on there. 

  • Hi Igor,

    Thanks for the answer. How do I set those flags ?

    Best Regards,

    Necdet

  • Hi,

    I added -DNV_RESTORE=TRUE and -DNV_INIT=TRUE in f8wConfig.cfg file and also tried to add them on compile options in the compiler. I had the following error on both of them.

    Error[e16]: Segment CODE_C (size: 0x4ae align: 0) is too long for segment definition. At least 0x1a more bytes needed. The problem occurred while 
    processing the segment placement command "-Z(CODE)CODE_C=_CODE_START-_CODE_END", where at the moment of placement the available 
    memory ranges were "CODE:246c-28ff"
    Error while running Linker

    Any suggestions?

    Regards,

    Necdet

  • Hi Necdet, 

     

    Do you have any of these documents:

    1. Z-Stack Developer's Guide.pdf
    2. Z-Stack Compile Options.pdf

    Such options (compilation flags) have to be documented.

  • Hi Igor,

    Yes, I have those documents. I have added the compile options. But, the above problem has occured.

    Edit: There is no problem in rebuilding the files. I can download the files to battery boards without LCD support. I changed the compile options as xLCD_SUPPORT=DEBUG and it downloads, now.

    Thanks for the help again :)

    Best Regards,

    Necdet