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.

About CC2533 SDK

Other Parts Discussed in Thread: CC2533, REMOTI, TUSB3410

Dear Sir, 

We have bought CC2533 RF4CE DK , http://www.ti.com/tool/cc2533dk-rf4ce-ba

Our host is ARM based embedded system, we target to communicate the device via UART interface to achieve the RF4CE feature, but we cannot find much information how to achieve that, for example the hardware connection and the software stack involved, would you please give us a direction? Thanks.

Regards,

Ivan

  • Hi Ivan,

    If you download the RemoTI installer you will find documentation in the <install_dir>/Documents. I recommend "Network Processor Developer's Guide" and the "Network Processor Interface Specification". Those two documents cover what you are looking for.

  • Hi Torbjorn Sorby,

    Thank you for your information, I try to follow the specification, but I got the compilation error. 

    Building configuration: rnp_cc2533 - CC2533F96
    Updating build tree...

    32 file(s) deleted.
    Updating build tree...
    OSAL.c
    OSAL_Clock.c
    Remark[Pe1873]: comparison between signed and unsigned operands C:\Texas Instruments\RemoTI-CC253xDK-1.3.1\Components\osal\common\OSAL_Clock.c 278
    OSAL_Math.s51
    OSAL_Memory.c
    OSAL_PwrMgr.c
    OSAL_Timers.c
    gdp.c
    hal_aes.c
    hal_assert.c
    hal_batmon.c
    hal_ccm.c
    hal_dma.c
    hal_drivers.c
    hal_flash.c
    hal_i2c.c
    hal_sleep.c
    hal_spi.c
    hal_startup.c
    hal_uart.c
    hal_vddmon.c
    mac_rffrontend.c
    np_main.c
    npi.c
    osal_snv.c
    rcn_config.c
    rcns.c
    rti.c
    rti_testmode.c
    rtis_np.c
    zid_adaptor.c
    zid_class_device.c
    zid_common.c
    Linking
    Error[e16]: Segment ISTACK (size: 0xc0 align: 0) is too long for segment definition. At least 0xa more bytes needed. The problem occurred while processing the
    segment placement command "-Z(IDATA)ISTACK+_IDATA_STACK_SIZE#08-_IDATA_END", where at the moment of placement the available memory ranges
    were "IDATA:4a-ff"
    Reserved ranges relevant to this placement:
    IDATA:8-1f VREG
    IDATA:21-40 VREG
    IDATA:41-42 XSP
    IDATA:43-49 DATA_Z
    IDATA:4a-ff ISTACK
    BIT:0-7 BREG
    BIT:80-87 SFR_AN
    BIT:90-97 SFR_AN
    BIT:a0-af SFR_AN
    BIT:b8-c7 SFR_AN
    Error while running Linker

    Total number of errors: 1
    Total number of warnings: 1

    Regards,

    Ivan

  • Hi Ivan,

    I also got this issue and I fixed that by setting Number of Virtual Registers to 8 (Right click on Project Name -> Target)

    Regards.

    H. L.

  • Hey guys,

    What version of the compiler are you running?

  • Hi Torbjorn Sorby

    It should be 8.30.3 and 6.5.11.2738 correspondingly. 

    Regards,

    Ivan

  • Hi Ivan,

    Ok, that should still work, however RemoTI-1.3.1 was built with 8.10.4, and works without errors and warnings with 8.11.

  • Hi Torbjorn, 

    From xlink.ENU.pdf, there is explanation for the error e[16]

    16 Segment segment is too long for segment definition
    The segment defined does not fit into the memory area reserved for it. XLINK
    aborts immediately.

    But I not yet find the information how to configure the stack size, do you know that?

    Regards,

    Ivan

  • Hi Torbjorn Sorby,

    I try with IAR version 8.11, there is no previous error, I will move forward, thanks.

    Regards,

    Ivan

  • Ivan,

    You can configure the stack size in the Stack/Heap tab of General Options. Be careful when modifying stack sizes. Make sure you have margin as there is no hardware trigger to detect stack overflow.

  • Hi Torbjorn, 

    I have connected PC com port to TICC2533EM TX/RX pins correspondingly, 

    The RNP project can be rebuild and download without error with IAR 8.11, 

    but when using Target enulator and use com port as interface, it report the following error. 

    Do you know what could be the problem? 

    Regards,

    Ivan

  • Hi Ivan,

    Would you please provide a complete screenshot including the log area of Target Emulator?

  • Hi Torbjorn, 

    Here is the log, please take a look, thanks.

    ----------------------------------------------------------------------------------------------------
    Starting The Emulator...
    Initialize RTI Library...COM1...
    Done
    ----------------------------------------------------------------------------------------------------
    Getting Startup Info...
    ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_ReadItem
    Item = 0xA0 (RTI_CP_ITEM_STARTUP_CTRL)
    Length = 0x01
    ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_ReadItem
    Status = 0xFF (Synchronous Npi Timeout)
    Data(0x) = 00
    <Error> - RtiManaged_SafeReadItem #2 Call Failed
    Error 0xFF
    Synchronous Npi Timeout

    Location:
    TargetEmulatorForm
    SetupSerialPortTarget
    <Warning> - Failed Starting The Emulator

    Regards,

    Ivan

  • Hi Ivan,

    Would you please provide the Target Emulator version you're using? You will get this error if you connect to a serial port that doesn't actually have a valid RNP connected to it. Would you please make sure that you are connecting to a valid RNP? (RNP - RemoTI Network Processor).

  • Hi Torbjorn, 

    The Target Emulator is v1.3.1d , and I have attached the connection.

    Regards,

    Ivan

  • Thanks Ivan,

    Have you verified that the CC2533EM is running a valid RNP image, and that you select the comport enumerated by TUSB3410?

  • Hi Torjborn, 

    Yes, I try the usb emumerated com port, it works. I have attached the log. 

    7384.ti_emulator_usb_emur.txt
    RemoTI Target Emulator - v1.3.1d
     ----------------------------------------------------------------------------------------------------
    Initialize User's Components...
    Done
     ----------------------------------------------------------------------------------------------------
    Starting The Emulator...
    Initialize USB HID Device...
    <Error> - No USB HID Devices Were Found
    <Error> - Failed
    <Warning> - Failed Starting The Emulator
     ----------------------------------------------------------------------------------------------------
    Starting The Emulator...
    Initialize USB HID Device...
    <Error> - No USB HID Devices Were Found
    <Error> - Failed
    <Warning> - Failed Starting The Emulator
     ----------------------------------------------------------------------------------------------------
    Starting The Emulator...
    Initialize USB HID Device...
    <Error> - No USB HID Devices Were Found
    <Error> - Failed
    <Warning> - Failed Starting The Emulator
     ----------------------------------------------------------------------------------------------------
    Starting The Emulator...
    Initialize RTI Library...COM6...
    Done
     ----------------------------------------------------------------------------------------------------
    Getting Startup Info...
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_ReadItem
     Item	 = 0xA0 (RTI_CP_ITEM_STARTUP_CTRL)
     Length	 = 0x01
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_ReadItem
     Status	 = 0x00 (Success)
     Data(0x)	 = 01 
     State	 = 0x01 (CLEAR_STATE)
    Getting Startup Info...Done
     ----------------------------------------------------------------------------------------------------
    Device Initialization Required
    Press Ok To Initialize
     ----------------------------------------------------------------------------------------------------
    Set Device Config...
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_WriteItem
     Item	 = 0xA1 (RTI_CP_ITEM_NODE_CAPABILITIES)
     Length	 = 0x01
     Data(0x)	 = 0F 
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_WriteItem
     Status	 = 0x00 (Success)
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_WriteItem
     Item	 = 0xA4 (RTI_CP_ITEM_APPL_DEV_TYPE_LIST)
     Length	 = 0x03
     Data(0x)	 = 02 00 00 
     Type1	 = 0x02 (Television)
     Type2	 = 0x00 (Reserved Invalid)
     Type3	 = 0x00 (Reserved Invalid)
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_WriteItem
     Status	 = 0x00 (Success)
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_WriteItem
     Item	 = 0xA2 (RTI_CP_ITEM_NODE_SUPPORTED_TGT_TYPES)
     Length	 = 0x06
     Data(0x)	 = 01 00 00 00 00 00 
     Type1	 = 0x01 (Remote Control)
     Type2	 = 0x00 (Reserved Invalid)
     Type3	 = 0x00 (Reserved Invalid)
     Type4	 = 0x00 (Reserved Invalid)
     Type5	 = 0x00 (Reserved Invalid)
     Type6	 = 0x00 (Reserved Invalid)
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_WriteItem
     Status	 = 0x00 (Success)
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_WriteItem
     Item	 = 0xA3 (RTI_CP_ITEM_APPL_CAPABILITIES)
     Length	 = 0x01
     Data(0x)	 = 22 
     String	 = 0x00 (False)
     Devices	 = 0x01 (1)
     Profiles	 = 0x02 (2)
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_WriteItem
     Status	 = 0x00 (Success)
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_WriteItem
     Item	 = 0xA5 (RTI_CP_ITEM_APPL_PROFILE_ID_LIST)
     Length	 = 0x07
     Data(0x)	 = 02 01 02 00 00 00 00 
     Number	 = 0x02 (2)
     Profile1	 = 0x01 (ZRC)
     Profile2	 = 0x02 (ZID)
     Profile3	 = 0x00 (Unknown)
     Profile4	 = 0x00 (Unknown)
     Profile5	 = 0x00 (Unknown)
     Profile6	 = 0x00 (Unknown)
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_WriteItem
     Status	 = 0x00 (Success)
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_WriteItem
     Item	 = 0xA8 (RTI_CP_ITEM_VENDOR_ID)
     Length	 = 0x02
     Data(0x)	 = 07 00 
     Id	 = 07 (Texas Instruments)
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_WriteItem
     Status	 = 0x00 (Success)
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_WriteItem
     Item	 = 0xA9 (RTI_CP_ITEM_VENDOR_NAME)
     Length	 = 0x07
     Data(0x)	 = 54 49 20 49 6E 63 00 
     Name	 = TI Inc
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_WriteItem
     Status	 = 0x00 (Success)
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_WriteItem
     Item	 = 0x6F (RTI_SA_ITEM_USER_STRING)
     Length	 = 0x0F
     Data(0x)	 = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_WriteItem
     Status	 = 0x00 (Success)
    Set Device Config...Done
     ----------------------------------------------------------------------------------------------------
    Get Device Config...
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_ReadItem
     Item	 = 0xA1 (RTI_CP_ITEM_NODE_CAPABILITIES)
     Length	 = 0x01
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_ReadItem
     Status	 = 0x00 (Success)
     Data(0x)	 = 0F 
     String	 = 0x00 (False)
     Devices	 = 0x01 (1)
     Profiles	 = 0x02 (2)
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_ReadItem
     Item	 = 0xA4 (RTI_CP_ITEM_APPL_DEV_TYPE_LIST)
     Length	 = 0x03
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_ReadItem
     Status	 = 0x00 (Success)
     Data(0x)	 = 02 00 00 
     Type1	 = 0x02 (Television)
     Type2	 = 0x00 (Reserved Invalid)
     Type3	 = 0x00 (Reserved Invalid)
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_ReadItem
     Item	 = 0xA2 (RTI_CP_ITEM_NODE_SUPPORTED_TGT_TYPES)
     Length	 = 0x06
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_ReadItem
     Status	 = 0x00 (Success)
     Data(0x)	 = 01 00 00 00 00 00 
     Type1	 = 0x01 (Remote Control)
     Type2	 = 0x00 (Reserved Invalid)
     Type3	 = 0x00 (Reserved Invalid)
     Type4	 = 0x00 (Reserved Invalid)
     Type5	 = 0x00 (Reserved Invalid)
     Type6	 = 0x00 (Reserved Invalid)
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_ReadItem
     Item	 = 0xA3 (RTI_CP_ITEM_APPL_CAPABILITIES)
     Length	 = 0x01
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_ReadItem
     Status	 = 0x00 (Success)
     Data(0x)	 = 22 
     String	 = 0x00 (False)
     Devices	 = 0x01 (1)
     Profiles	 = 0x02 (2)
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_ReadItem
     Item	 = 0xA5 (RTI_CP_ITEM_APPL_PROFILE_ID_LIST)
     Length	 = 0x07
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_ReadItem
     Status	 = 0x00 (Success)
     Data(0x)	 = 02 01 02 00 00 00 00 
     Number	 = 0x02 (2)
     Profile1	 = 0x01 (ZRC)
     Profile2	 = 0x02 (ZID)
     Profile3	 = 0x00 (Unknown)
     Profile4	 = 0x00 (Unknown)
     Profile5	 = 0x00 (Unknown)
     Profile6	 = 0x00 (Unknown)
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_ReadItem
     Item	 = 0xA8 (RTI_CP_ITEM_VENDOR_ID)
     Length	 = 0x02
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_ReadItem
     Status	 = 0x00 (Success)
     Data(0x)	 = 07 00 
     Id	 = 07 (Texas Instruments)
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_ReadItem
     Item	 = 0xA9 (RTI_CP_ITEM_VENDOR_NAME)
     Length	 = 0x07
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_ReadItem
     Status	 = 0x00 (Success)
     Data(0x)	 = 54 49 20 49 6E 63 00 
     Name	 = TI Inc
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_ReadItem
     Item	 = 0x6F (RTI_SA_ITEM_USER_STRING)
     Length	 = 0x0F
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_ReadItem
     Status	 = 0x00 (Success)
     Data(0x)	 = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
    Get Device Config...Done
     ----------------------------------------------------------------------------------------------------
    Initialize RTI Stack...
    Done
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_StandbyReq
     Mode	 = 0x01 (Off)
     ----------------------------------------------------------------------------------------------------
    <Tx> - Set Frequency Agility
     State	 = 0x01 (On)
     ----------------------------------------------------------------------------------------------------
    Display Remote Controller = True
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_StandbyCnf
     Status	 = 0x00 (Success)
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_InitCnf
     Status	 = 0x00 (Success)
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_WriteItem
     Item	 = 0xA0 (RTI_CP_ITEM_STARTUP_CTRL)
     Length	 = 0x01
     Data(0x)	 = 00 
     State	 = 0x00 (RESTORE_STATE)
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_WriteItem
     Status	 = 0x00 (Success)
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_ReadItem
     Item	 = 0xB0 (RTI_SA_ITEM_PT_NUMBER_OF_ACTIVE_ENTRIES)
     Length	 = 0x01
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_ReadItem
     Status	 = 0x00 (Success)
     Data(0x)	 = 00 
     Paired	 = 0x00
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_ReadItem
     Item	 = 0x85 (RTI_SA_ITEM_PAN_ID)
     Length	 = 0x02
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_ReadItem
     Status	 = 0x00 (Success)
     Data(0x)	 = EF BA 
     Pan Id	 = 0xBAEF
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_ReadItem
     Item	 = 0x86 (RTI_SA_ITEM_SHORT_ADDRESS)
     Length	 = 0x02
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_ReadItem
     Status	 = 0x00 (Success)
     Data(0x)	 = 0E 33 
     SAddr	 = 0x330E
     ----------------------------------------------------------------------------------------------------
    <Tx> - RTI_ReadItem
     Item	 = 0x61 (RTI_SA_ITEM_CURRENT_CHANNEL)
     Length	 = 0x01
     ----------------------------------------------------------------------------------------------------
    <Rx> - RTI_ReadItem
     Status	 = 0x00 (Success)
     Data(0x)	 = 14 
     Mac Ch	 = 20
    

    Regards,

    Ivan

  • Hi Ivan,

    You can find Linux driver for RF4CE here RemoTI-Linux. It's using standard TTY driver for UART.

  • Hi Torbjorn, 

    Yes, I have already download it and used in our SOC, but there is no signal between UART. 

    Is this mean that we cannot simulate the UART on window PC?

    Regards,

    Ivan