• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Low Power RF & Wireless Connectivity » Low Power RF ZigBee® Software & IEEE 802.15.4 Forum » cannot set breakpoint in ZDNwkMgr.c
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

cannot set breakpoint in ZDNwkMgr.c

cannot set breakpoint in ZDNwkMgr.c

This question is answered
John Xu
Posted by John Xu
on Apr 11 2012 23:09 PM
Prodigy210 points

Hi

I modified Sensor Demo application and  am using IAR Embedded Workbench to debug it.

I try to set a breakpoint in ZDNwkMgr.c and cannot do it.  And it seems like I cannot set any breakpoint in that file.  I did not modify ZDNwkMgr.c and I can set breakpoints in Collector.c and some other files.

I wonder what is going on and how can I set breakpoint in ZDNwkMgr.c?

Thanks

John

 

Z-Stack ZigBee PRO cc2530zdk ZigBee 2006 SampleApp Sample code iar ZStack ZigBee project z_stack cc2530 iar ZStack 2.3.0 SensorDemo Z-Stack 2.3.0 Z-Stack 2.3.0 CC2530 CC2530 Z-Stack ZigBee СС2530
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • YiKai Chen
    Posted by YiKai Chen
    on Apr 12 2012 00:24 AM
    Mastermind9150 points

    Hi John,

    How may breakpoints do you set in total? I think you can only set 4 or 5 at most in IAR. You can try to remove some of your breakpoints and try to set one in ZDNwkMgr.c.

    Regards!

    YK Chen

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Felix Bruckmüller
    Posted by Felix Bruckmüller
    on Apr 12 2012 00:52 AM
    Verified Answer
    Verified by Dirty Harry
    Intellectual835 points

    Hi,

    maybe the network manager isn't enabled.

    Check your OSAL_xxx.c file, there you should find something like this:

    void osalInitTasks(void)
    {
      ...
    #if defined ( ZIGBEE_FREQ_AGILITY ) || defined ( ZIGBEE_PANID_CONFLICT )
      ZDNwkMgr_Init( taskID++ );
    #endif
      ...
    }

    So you have to define at least one of the two preprocessor symboles and then it should work.

    Felix

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • John Xu
    Posted by John Xu
    on Apr 12 2012 00:59 AM
    Prodigy210 points

    Hi, YK & Felix,

    Thanks for reply!  I made sure all breakpoints are removed before I try to set one in ZDNwkMgr.c.

    Felix is correct!  I don't think ZDNkMgr_Init is used by Sensor Demo application at all....  But somehow it is still compiled in... I can see the object files...

     

    Now I still don't know who updates/modifies _NIB?  The only place I see _NIB is updated is in ZDNwkMgr.c...

     

    Thanks

    John

    Z-Stack ZigBee PRO cc2530zdk ZigBee 2006 SampleApp Sample code iar ZStack ZigBee project z_stack cc2530 iar ZStack 2.3.0 SensorDemo Z-Stack 2.3.0 Z-Stack 2.3.0 CC2530 CC2530 Z-Stack ZigBee СС2530
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • YiKai Chen
    Posted by YiKai Chen
    on Apr 12 2012 01:06 AM
    Verified Answer
    Verified by Dirty Harry
    Mastermind9150 points

    Hi John,

    I think _NIB is updated/modified under ZStack library and application programmer like you and me are not allowed to access it.

    Regards!

    YK Chen

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dirty Harry
    Posted by Dirty Harry
    on Apr 12 2012 11:09 AM
    Mastermind19350 points

    You are correct - the _NIB should be left to the Z-Stack library use only. There are API's to get access to what is in the _NIB, like NLME_GetRequest() and NLME_SetRequest(). Directly accessing the _NIB is similar to mucking with the registry on a Windows PC - once you get familiar enough, even though you shouldn't, eventually you do ;)

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • John Xu
    Posted by John Xu
    on Apr 12 2012 11:34 AM
    Prodigy210 points

    I did look into NLME_GetRequest.  However, it does not provide me enough information.

    Here is the link to my other question:

    http://e2e.ti.com/support/low_power_rf/f/158/t/181925.aspx#656038

    For coordinator, I initially set ZCD_NV_CHANLIST to include all channels for scan when forming the network.  Once it successfully forms the network, I try to find out what channel Z-Stack picks.  From Z-Stack API document, it seems I cannot find this out through NLME_GetRequest().  The only way seems to be accessing _NIB.LogicalChannel after the network is formed...

    So I wonder how can I find out which channel the device is used to form the network? if I should not access _NIB directly...

    ZigBee PRO zigbee cc2530zdk ZigBee 2006 ZStack PAN ID ZigBee project z_stack z_stack cc2530 ZStack 2.3.0 SensorDemo Z-Stack 2.3.0 CC2530 СС2530
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dirty Harry
    Posted by Dirty Harry
    on Apr 12 2012 11:54 AM
    Verified Answer
    Verified by John Xu
    Mastermind19350 points

    Okay, then - I'll post a detailed answer to your other question.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use