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.

CCS/CC1350: CC1350 RGZ AND CC1350 RHB

Part Number: CC1350
Other Parts Discussed in Thread: CC1310

Tool/software: Code Composer Studio

Hello all, I have a GPIO toggling code. I am toggling DIO 1 AND DIO 4. That i tested on RGZ package. Its working fine. But its not working on RHB package. Is package is causing any problem.

  • The RGZ package is 7 mm x7 and have 30 GPIOs while the RHB package is 5 mm x 5 and have 15 GPIOs. You therefore have to update your board files and CC1350_LAUNCHXL.h/v fles to reflect your HW.
  • EXPORT.zipHello siri,

    Thanks for your valuable input. What i have done is ...i have exported the rx example code  from project explorer and commented-out RF portion. I think This example is meant to RGZ package. In that  i have commented out other DPIOs. My target is to toogle DIO1 And DIO4 for RHB package. I am attaching the project file. please once see...am i doing correct or not.

    Thanks & Regards

    Vikas

  • Hi Vikas

    I tried to build your project but was not able to due to multiple errors, and I did not have the time to try to figure out what was wrong.

    What I would recommend you to do is to start by something very simple and then add functionality as you go, but do not proceed with a new feature before you have something that works.

    Instead of using one of the rf examples as a starting point, I would start off with the empty project.

    Then, make sure that you have your pins working, before implementing code from the timer.

    From what you are writing, it is not possible to know where exactly the problem is, as you do not say anything about what is failing.

    Does the code build OK?

    Do you get your timer interrupts?

    I took the empty project for the CC1310LP (this was the HW I had to test on) and made a very simple example:

    /*
     *  ======== empty.c ========
     */
    
    /* For usleep() */
    #include <unistd.h>
    #include <stdint.h>
    #include <stddef.h>
    
    /* Driver Header files */
    #include <ti/drivers/PIN.h>
    #include <ti/drivers/pin/PINCC26XX.h>
    
    /* Board Header file */
    #include "Board.h"
    
    
    /* Pin driver handle */
    static PIN_Handle ioPinHandle;
    static PIN_State ioPinState;
    
    PIN_Config pinTable[] =
    {
         Board_PIN_X | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,
         PIN_TERMINATE
    };
    /*
     *  ======== mainThread ========
     */
    void *mainThread(void *arg0)
    {
        ioPinHandle = PIN_open(&ioPinState, pinTable);
        if (ioPinHandle == NULL)
        {
            while(1);
        }
    
        while (1) {
            sleep(1);
            PIN_setOutputValue(ioPinHandle, Board_PIN_X,!PIN_getOutputValue(Board_PIN_X));
        }
    }

    in Board.h:

    #define Board_PIN_X             CC1310_LAUNCHXL_PIN_X

    and in CC1310_LAUNCHXL.h

    #define CC1310_LAUNCHXL_PIN_X                   IOID_6

    I have tried to change CC1310_LAUNCHXL_PIN_X to other IOIDs and that works fine. Just make sure that the IOIDs are not already defined and used by some other driver.

  • Hi siri,

    Thank you for giving your valuable time. The code Which i shared with you is working fine on CC1350LP 7x7 PACKAGE. I am getting proper timer interrupts. But when i am flashing the same code to the my custom board that have 5X5 package. Its not working.

    I think you are facing problem may due to different path. My target is to just toggle DIO1 AND DIO4 at the interval of 1 seconds.

    I will come to you after doing the way you adviced.

    Thanks & Regards

    Vikas

  • Hi Siri,

    I have done as per your advice. I have changed the files u mentioned. I am sharing that project. In this project i am toggling dio1 to dio14 at the interval of 1 sec. Its working fine with the 7X7 package. What could be the reason of not working with 5X5 . I think have to change board file. Can you please share me the complete board file for 5X5 package of cc1350.  In smart rf studio i observed there is option to select 7X , 5X5. I checked through smartrf ...i am to DIO TO high or low.

    gpio_toggle_31aug.zip

  • I took the empty project from simplelink_cc13x0_sdk_2_20_00_38 for CC1350_LAUNCXL and modified the example as shown in the attached files.

    I tested the code on the CC13xxEM_5XD connected to the SmartRF06 EB (Schematics attached).

    I have not made a complete board file, just tested that I can toggle different IOs (I tested IOID 3 and IOID14).

    CC13xxEM_5XD_4251_schematic_1_1_0.pdf

    modifiedFiles.zip

    Siri

  • Thanks a lot siri, i am able to toggle GPIO and UART transmit receive activity. If possible plz help me for RF TX and RX RX related modification according to the schematic u have shared. 

  • You do not have to do any changes to the board files to get the radio up and running.

    Siri
  • Thanks siri,

    Now i am able to do RF TX and RF RX. I want to make my board files according to schematic. Please guide me in creation of complete board file as per schematic you shared.

  • Unfortunately I do not have the bandwidth to do this and test that everything work as expected. This you will need to do yourself. I strongly recommend to do things step by step, and to test new pins/peripherals one at a time.
    If you run into any specific problems, please post a new thread where you describe exactly what you are not able to get to work.

    Good luck with your project.

    BR

    Siri
  • Thanks siri for your valubale time and input. I Will try and come up to E2E if i run into any problem.