• 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 » Microcontrollers » Stellaris® ARM® Microcontrollers » Stellaris® ARM® LM3S Microcontrollers Forum » Stellaris LM3S9D96 CC2530DK demo project ASSERTs
Share
Stellaris® ARM® Microcontrollers
  • Forum
Options
  • Subscribe via RSS

Forums

Stellaris LM3S9D96 CC2530DK demo project ASSERTs

This question is answered
Terry Biberdorf
Posted by Terry Biberdorf
on Aug 03 2012 08:25 AM
Intellectual310 points

I have the Stellaris 2.4Ghz ZigBee Wireless Kit and cannot get the demo application to run.

I've built the zstack_collector code with CCSv5 (Version: 5.2.0.00069)

I've installed the following applications:

SW-DK-LM3S9B96-EM2-CC2520-ZStack-9107
SW-DK-LM3S9D96-EM2-8555
SW-DK-LM3S9D96-8555
I've followed the steps provided in the Readme First manual.

The output I receive from my com port is as follows:

Z-Stack Collector App
---------------------
========================================
Z-Stack LED state change
----------------------------------------
LED1 is OFF
----------------------------------------
========================================
Z-Stack LED state change
----------------------------------------
LED2 is OFF
----------------------------------------
========================================
Z-Stack LED state change
----------------------------------------
LED3 is OFF
----------------------------------------
========================================
Z-Stack LED state change
----------------------------------------
LED4 is OFF
----------------------------------------
hold start canceled?

****************************************
ASSERTION FAILURE in Z-Stack: C:\StellarisWare\ZStack\Components\mac/low_level/srf04/dual_chip/mac_dualchip.c, 149
****************************************

The line of code that's triggering the ASSERT is:
/* make sure correct radio chip is attached */
MAC_ASSERT(macSpiReadReg(CHIPID) == CHIPID_RESET_VALUE); /* incorrect radio chip or SPI not operating */

Now searching for this error within the forum suggests that I must have a jumper out of place. I've re-read the readme several times and reviewed my board, but I believe that all jumper are in place.

From review of the pictures from my board, any suggestions as to what I've done wrong?

Thanks

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Lela Garofolo
    Posted by Lela Garofolo
    on Aug 03 2012 16:25 PM
    Genius17450 points

    Terry,

    I will have to go through a setup here and see if I have the same issue.

    Lela

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Terry Biberdorf
    Posted by Terry Biberdorf
    on Aug 05 2012 23:06 PM
    Intellectual310 points

    Hi Lela

    I've updated my system to the following releases:

    • SW-DK-LM3S9D96-9107
    • SW-DK-LM3S9D96-EM2-9107

    and I still get the same ASSERT failure returned.

    Terry

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Terry Biberdorf
    Posted by Terry Biberdorf
    on Aug 05 2012 23:13 PM
    Intellectual310 points

    For further reference, attached is a copy of my project.

    3817.zstack_AssertFailure.zip

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Terry Biberdorf
    Posted by Terry Biberdorf
    on Aug 06 2012 22:53 PM
    Intellectual310 points

    Hi Lela

    Could the problem be rooted in that all the example code was built for the LM3S9B96 and not the LM3S9D96?  I did notice this as an issue when I attempted to build the provided examples.  I had to made several small updates in the search path and re-pathing to the needed drivers to get the code to build.

    Terry

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Andy Neil
    Posted by Andy Neil
    on Aug 07 2012 02:51 AM
    Guru32055 points

    Terry Biberdorf

    The line of code that's triggering the ASSERT is:
    /* make sure correct radio chip is attached */
    MAC_ASSERT(macSpiReadReg(CHIPID) == CHIPID_RESET_VALUE); /* incorrect radio chip or SPI not operating */

    If the ASSERT fails, that means macSpiReadReg(CHIPID) is returning some value other than CHIPID_RESET_VALUE

    So, what value is it returning?

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Terry Biberdorf
    Posted by Terry Biberdorf
    on Aug 07 2012 07:30 AM
    Intellectual310 points

    macSpiReadReg(CHIPID) calls spiSendBytes(&buf[0], len) which returns a value of 0xFF.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Andy Neil
    Posted by Andy Neil
    on Aug 07 2012 13:34 PM
    Guru32055 points

    so what does a return value of 0xFF from spiSendBytes() signify?

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Lela Garofolo
    Posted by Lela Garofolo
    on Aug 07 2012 17:26 PM
    Genius17450 points

    Terry,

    In trying to get a setup going, and have run into fundamental issues of missing kit parts.  Have you made any code modifications or board modifications?  I am still going through and trying to validate what you are seeing...

    Lela

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Terry Biberdorf
    Posted by Terry Biberdorf
    on Aug 07 2012 17:26 PM
    Intellectual310 points

    My first guess would be that the SPI port is not communicating.  Bases on the pictures of my lab setup, can you tell me if I have a jumper in the wrong spot?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Terry Biberdorf
    Posted by Terry Biberdorf
    on Aug 07 2012 19:51 PM
    Intellectual310 points

    Lela

    I have made no board modifications.  I did rebuild my project to the most recent version available. (I did link my project to this forum, please see earlier post)

    • SW-DK-LM3S9D96-9107
    • SW-DK-LM3S9D96-EM2-9107
    • SW-DK-LM3S9B96-EM2-CC2520-ZStack-9107

    From the provided project code, I did find that the example project would not build until I updated to match my LM3S9D96.  The example code appears to be built for the LM3S9B96 development board.

    Terry

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Lela Garofolo
    Posted by Lela Garofolo
    on Aug 08 2012 00:37 AM
    Genius17450 points

    Terry, 

    The example was built for the LM3S9B96, but it shouldn't make a difference.  It should have also been tested when we released to the LM3S9D96 kit...Unfortunately...I haven't been able to verify that either. 

    To eliminate the SPI connection, you can download stellarware example sd_card and see if that gives any errors.  If yes, then it is likely the cause.

    I have looked at your picture, it appears that you have all of your jumpers correct.  Do you have the CC2530EM nodes running?  Does the LCD display anything?

    Lela

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Andy Neil
    Posted by Andy Neil
    on Aug 08 2012 04:10 AM
    Guru32055 points

    Terry Biberdorf
    My first guess would be that the SPI port is not communicating

    Well, that is one of the 2 possibilities specifically noted in the code you posted earlier:

    Terry Biberdorf
    The line of code that's triggering the ASSERT is:
    /* make sure correct radio chip is attached */
    MAC_ASSERT(macSpiReadReg(CHIPID) == CHIPID_RESET_VALUE); /* incorrect radio chip or SPI not operating */


    So,  I would suggest that you step through that code to see exactly where it is failing; ie, is it reading a wrong "CHIPID", or is the read failing completely?

    You've already noted that spiSendBytes() returns a value of 0xFF - is that the expected return code?

    Have you checked SPI operation on an oscilloscope?

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Terry Biberdorf
    Posted by Terry Biberdorf
    on Aug 08 2012 23:26 PM
    Intellectual310 points

    I was able to run the sd_card demo without any problems.

    I will step through the code as suggested.  I will also review the schematics for the expansion board to determine if the SPI communication is getting to the zigbee module.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Andy Neil
    Posted by Andy Neil
    on Aug 09 2012 00:43 AM
    Guru32055 points

    Sheck the SPI lines on an oscilloscope.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Andy Neil
    Posted by Andy Neil
    on Aug 09 2012 00:47 AM
    Guru32055 points

    Andy Neil
    Well, that is one of the 2 possibilities specifically noted in the code you posted earlier:

    Terry Biberdorf
    The line of code that's triggering the ASSERT is:
    /* make sure correct radio chip is attached */
    MAC_ASSERT(macSpiReadReg(CHIPID) == CHIPID_RESET_VALUE); /* incorrect radio chip or SPI not operating */

    Note to TI:

    Double-meaning errors like this are really unhelpful!!

    The ASSERT should really distinguish whether it's a comms failure, or a wrong-value.

     

    Unhelpful errors
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
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