• 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 Proprietary Software & SimpliciTI Forum » MSP430EXP5438A and CC2520 MAX_HOP undefined CCStudio Simpliciti sample program
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

MSP430EXP5438A and CC2520 MAX_HOP undefined CCStudio Simpliciti sample program

MSP430EXP5438A and CC2520 MAX_HOP undefined CCStudio Simpliciti sample program

This question has suggested answer(s)
Vidya Sagar Kantamneni
Posted by Vidya Sagar Kantamneni
on Jun 21 2012 10:35 AM
Intellectual935 points

Dear all, 

I am working with MSP5438A experimenter boards, each mounted with CC2520 RF transceivers. I wanted to execute a simpliciti sample program. However I have created the project from scrap, I have added the necessary files into the project. When I build the project, I get the following errrors:

identifier "MAX_HOPS" is undefined wings mrfi_radio.c line 403 1340290751156 2429
identifier "mrfiSpiIState_t" is undefined wings mrfi_spi.c line 180 1340290751156 2456
identifier "mrfiSpiIState_t" is undefined wings mrfi_spi.c line 301 1340290751171 2465
identifier "mrfiSpiIState_t" is undefined wings mrfi_spi.c line 391 1340290751171 2474

I know that these errors come from two important files smpl_config.dat and smpl_nwk_config.at, I have added them into the project, but I am not quite sure if I have to follow a different way of adding dat files into the project. I have adding a figure regarding the following. 

Any help or advice regarding the same is appreciated. 

Thank you.

Best regards, 

Vidya.

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Leo Hendrawan
    Posted by Leo Hendrawan
    on Jun 22 2012 02:46 AM
    Suggested Answer
    Mastermind27635 points

    Vidya,

    Vidya Sagar Kantamneni

    I know that these errors come from two important files smpl_config.dat and smpl_nwk_config.at, I have added them into the project, but I am not quite sure if I have to follow a different way of adding dat files into the project. I have adding a figure regarding the following. 

    Please refer to the following wiki page to create SimpliciTI project in CCS:

    http://processors.wiki.ti.com/index.php/Creating_CCS_Project_using_SimpliciTI

    Basically besides adding/inserting the .dat files into the project, you need also to add the path of the files inside the project configuration setting.

    Regards,

    Leo Hendrawan

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Vidya Sagar Kantamneni
    Posted by Vidya Sagar Kantamneni
    on Jun 22 2012 06:48 AM
    Intellectual935 points

    Dear Ihend, 

    I appreciate your support. I have found out this link earlier, but I was quite confused as I was working with recent version of Simpliciti SimpliciTI_RF_Stack 1_x_x_5. Here support for MSP430EXP5438A is included. 

    In the link you have provided, there are no files related to any board are included in the project. Can this be the problem? I have created a very fresh project with all the instructions in the link, and I get the following errors:

    unresolved symbol MRFI_BOARD_CONFIG_RADIO_GPIO, first referenced in ./SMPL/mrfi/mrfi.obj work line 0 1340365121968 2878
    unresolved symbol MRFI_CLEAR_RX_INTERRUPT_FLAG, first referenced in ./SMPL/mrfi/mrfi.obj work line 0 1340365121968 2879
    unresolved symbol MRFI_CONFIG_FIFO_AS_INPUT, first referenced in ./SMPL/mrfi/mrfi.obj work line 0 1340365121984 2881
    unresolved symbol MRFI_CONFIG_FIFOP_AS_INPUT, first referenced in ./SMPL/mrfi/mrfi.obj work line 0 1340365121984 2880
    unresolved symbol MRFI_CONFIG_RESETN_PIN_AS_OUTPUT, first referenced in ./SMPL/mrfi/mrfi.obj work line 0 1340365121984 2882
    unresolved symbol MRFI_CONFIG_TX_FRAME_DONE_AS_INPUT, first referenced in ./SMPL/mrfi/mrfi.obj work line 0 1340365121984 2883
    unresolved symbol MRFI_CONFIG_VREG_EN_PIN_AS_OUTPUT, first referenced in ./SMPL/mrfi/mrfi.obj work line 0 1340365121984 2884
    unresolved symbol MRFI_DISABLE_RX_INTERRUPT, first referenced in ./SMPL/mrfi/mrfi.obj work line 0 1340365121984 2885
    unresolved symbol MRFI_DRIVE_RESETN_PIN_HIGH, first referenced in ./SMPL/mrfi/mrfi.obj work line 0 1340365121984 2886
    unresolved symbol MRFI_DRIVE_RESETN_PIN_LOW, first referenced in ./SMPL/mrfi/mrfi.obj work line 0 1340365121984 2887
    unresolved symbol MRFI_DRIVE_VREG_EN_PIN_HIGH, first referenced in ./SMPL/mrfi/mrfi.obj work line 0 1340365121984 2888
    unresolved symbol MRFI_DRIVE_VREG_EN_PIN_LOW, first referenced in ./SMPL/mrfi/mrfi.obj work line 0 1340365121984 2889
    unresolved symbol MRFI_ENABLE_RX_INTERRUPT, first referenced in ./SMPL/mrfi/mrfi.obj work line 0 1340365121984 2890
    unresolved symbol MRFI_GpioIsr, first referenced in ./SMPL/mrfi/mrfi.obj work line 0 1340365121984 2891
    unresolved symbol MRFI_SPI_CHIP_SELECT_IS_OFF, first referenced in ./SMPL/mrfi/mrfi.obj work line 0 1340365121984 2892
    unresolved symbol MRFI_SPI_SET_CHIP_SELECT_OFF, first referenced in ./SMPL/mrfi/mrfi.obj work line 0 1340365121984 2893
    unresolved symbol MRFI_SPI_SET_CHIP_SELECT_ON, first referenced in ./SMPL/mrfi/mrfi.obj work line 0 1340365121984 2894
    unresolved symbol MRFI_TX_DONE_STATUS, first referenced in ./SMPL/mrfi/mrfi.obj work line 0 1340365121984 2895

     Thanks again. Best regards, 

    Vidya.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Vidya Sagar Kantamneni
    Posted by Vidya Sagar Kantamneni
    on Jul 03 2012 04:24 AM
    Suggested Answer
    Intellectual935 points

    Vidya Sagar Kantamneni
    In the link you have provided, there are no files related to any board are included in the project. Can this be the problem?

    i have recently found in other thread (http://e2e.ti.com/support/microcontrollers/msp43016-bit_ultra-low_power_mcus/f/166/t/19233.aspx) that there are some missing defintions for the CC2520 family. Can you please suggest where/how I can add these defintions? Can you please also suggest how I can  acquaint myself working with RF and MSP430.

    Appreciate any help in advance. Thank you. 

    Best regards, 

    Vidya. 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Vidya Sagar Kantamneni
    Posted by Vidya Sagar Kantamneni
    on Jul 03 2012 04:58 AM
    Intellectual935 points

    Hi.

    there is some improvement in my case. I have resolved some symbols, by copying necessary symbols from the following link: http://yawing.googlecode.com/svn/trunk/yawing/Components/bsp/boards/SRF05EB/bsp_external/mrfi_board_defs.h

    However I couldnt resolve one symbol called MRFI_Gpioisr. However i have seen that this is part of interrupt service between MSP430 and CC2500. Is it also available in CC2520? Can you please also suggest me how I can resolve this symbol?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Leo Hendrawan
    Posted by Leo Hendrawan
    on Jul 04 2012 02:34 AM
    Mastermind27635 points

    Hi,

    Sorry for the late response.

    MRFI_GpioIsr is per default defined in mrfi_radio.c. However mrfi_radio.c shall not be included directly to the project, since it is mrfi.c 's job to do that (see implementation of mrfi.c which includes the mrfi_radio.c depending on the radio configuration). This is also the same for mrfi_f1f2.c. What you shall do is only to include mrfi.c in your CCS project and define MRFI_RADIO_FAMILY3 in your CCS project.

    Please look at this thread where i made an example how to create CCS project with the source linked statically:

    http://e2e.ti.com/support/low_power_rf/f/156/p/190673/683384.aspx#683384

    Anyway, i am wondering why you are using SimpliciTI on MSP430+CC2520. Even tough the solution is available, i think it makes more sense to run Zigbee on this platform since CC2520 is a zigbee radio. If you want to work on propietary 2.4 GHz radio, i would suggest to use CC2500 instead.

    Regards,

    Leo Hendrawan

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Vidya Sagar Kantamneni
    Posted by Vidya Sagar Kantamneni
    on Jul 04 2012 19:32 PM
    Intellectual935 points

    Dear Ihend, 

    many thanks for taking time and support. 

    lhend
    MRFI_GpioIsr is per default defined in mrfi_radio.c.

    Unfortunately I dont find mrfi_gpioisr defined in mrfi_radio.c. here I am providing the link of very similar file i have in my project: http://wsn.eecs.berkeley.edu/svn/ezwsn/source_code/drivers/mrfi/radios/family3/mrfi_radio.c

    I am not quite sure if it is proper to add these definitions from cc2500 radio. I have just copied the stuff related to gpioisr into the cc2520 radio (as I know there is no harm in defining them unless otherwise called or?). But this does not solve the error. I still have to face unresolved symbol. 

    lhend
    What you shall do is only to include mrfi.c in your CCS project and define MRFI_RADIO_FAMILY3 in your CCS project.

    I feel it sorry to ask one basic thing: what do you mean by include? You mean to add the file to the CCS project by using add files option. I have already linked the file like as it is mentioned in the TI wiki link. Should I delete the linked file and manually add it? 

    lhend
    Anyway, i am wondering why you are using SimpliciTI on MSP430+CC2520

    As part of my thesis, I should create a smart meter network where two or quite a few number of devices that share information. I thought I could do it easier with simpliciti (compacter compared to zigbee). With CC2530(the intial decision) I had to face quite a huge number of troubles, and with your advice to take up cc2500, I turned to CC2520. The idea was only that I dont need any new hardware to implement Zigbee as an alternative (which would not be the case if I chose CC2500 that doesnt support zstack). Also some bias from the following link: http://e2e.ti.com/support/low_power_rf/f/155/t/60810.aspx

    Please correct me if I am wrong. I will be glad to hear from you. 

    Best regards, 

    Vidya. 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Leo Hendrawan
    Posted by Leo Hendrawan
    on Jul 05 2012 02:48 AM
    Suggested Answer
    Mastermind27635 points

    Hi Vidya,

    so here's the thing: i am the one who wrote the porting guideline in the TI processors wiki site, and actually i only tested it using the family1 radios (CC2500 and CC1101), and i have modified the wiki page to explain this. However after looking into the code of family3 (CC2520), i do see some slight different (i haven't gone through all the codes, but basically the codes are different).

    Therefore i think the guideline can't be applied as it is for porting the CC2520 code. What i would suggest you to do is to apply the guideline in general (in terms of which code shall be modified), but use the code under:

    SimpliciTI-IAR-1.1.1\Components\bsp\boards\SRF05EB 

    instead of :

    SimpliciTI-IAR-1.1.1\Components\bsp\boards\EXP461x

    which i took for the guideline. Sorry for the confusion again here, but i believe the SimpliciTI code is well written so the portation shouldn't be that difficult to do the portation for the family3 radio (i actually did the portation for the family1 radio without knowing anything about SimpliciTI - just by seeing the file structure and guessing which files are hardware dependent and need to be ported). 

    If you decide to do the portation, it would be nice maybe if you can also contribute by writing the experience in the processor wiki.  I could basically do it (would take me a 2-3 days maybe), but at the moment i don't have the time to do it.

    Regarding your argument about using the CC2520 for the ease of changing the protocol stack later on, i think i can understand it quite well. 

    Regards,

    Leo Hendrawan

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Vidya Sagar Kantamneni
    Posted by Vidya Sagar Kantamneni
    on Jul 10 2012 10:19 AM
    Intellectual935 points

    Dear Ihend, 

    thanks for writing. I was out of station and had no possibility to write you. I will be working intensively again on this issue. I will create a page as you have suggested.

    best regards, 

    Vidya. 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Vidya Sagar Kantamneni
    Posted by Vidya Sagar Kantamneni
    on Jul 11 2012 03:22 AM
    Intellectual935 points

    lhend

    apply the guideline in general (in terms of which code shall be modified), but use the code under: SimpliciTI-IAR-1.1.1\Components\bsp\boards\SRF05EB 

    instead of : SimpliciTI-IAR-1.1.1\Components\bsp\boards\EXP461x

    Dear Ihend, 

    I have followed your suggestion to use the code from SRF05EB. I am stuck with two new errors. I tried to resolve the undefined symbols but there is quite litle information regarding the same. 

    Errors:

    identifier "UCB1RXIFG" is undefined

    identifier "UC1IFG" is undefined

    My guess regarding the errors is that as I have used some code from SRF05EB (which might be equipped with MSP430x26xx processor as these pins belong to these processor or?). Your suggestions would be helpful in this regard. 

    Thank you. 

    Kind regards, 

    Vidya. 

    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