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/CC2650MODA: cc2650moda

Part Number: CC2650MODA
Other Parts Discussed in Thread: CC2650

Tool/software: Code Composer Studio

Hi,

 I'm trying to program to CC2650 boosterpack (without launchpad). Is there any sample code to program cc2650moda.? Ti resource explorer has sample codes but using launchpad.

Thanks in advance

Aditya Adiga

(don't send the link of TI resource explorer having source code related to any launch pad)

  • Hi Aditya,

    If you don't have a Launchpad you could program the CC2650moda through the bootloader (UART or SPI). 

    Please take a look at this application report:

    http://www.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=swra466

    Best Regards,

    R.M 

  • Hi,

      Thanks for the link (technical reference manual). I tried to use gpio's pins using direct assigning values to hardware registers in ccs but got error: those registers are unidentified. What is the way to use hardware registers and What are the header files to be included to write values on hardware registers directly to cc2650moda in ccs??

    for example: IOCFG1 = 0x30;

    Thanks in advance

    Aditya Adiga

  • Hi,

    To write and read registers you can use the HWREG macros (found in hw_types.h):

    // Word (32 bit) access to address x
    // Read example  : my32BitVar = HWREG(base_addr + offset) ;
    // Write example : HWREG(base_addr + offset) = my32BitVar ;
    #define HWREG(x)                                                              \
            (*((volatile unsigned long *)(x)))
    
    // Half word (16 bit) access to address x
    // Read example  : my16BitVar = HWREGH(base_addr + offset) ;
    // Write example : HWREGH(base_addr + offset) = my16BitVar ;
    #define HWREGH(x)                                                             \
            (*((volatile unsigned short *)(x)))
    
    // Byte (8 bit) access to address x
    // Read example  : my8BitVar = HWREGB(base_addr + offset) ;
    // Write example : HWREGB(base_addr + offset) = my8BitVar ;
    #define HWREGB(x)                                                             \
            (*((volatile unsigned char *)(x)))

    Best Regards,

    R.M