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.

cc2511EMK rf_modem

Other Parts Discussed in Thread: SIMPLICITI, CC-DEBUGGER, CC2511, MAX3221

Hi,

The code that I downloaded from the TI website for cc2511EMK rf_modem is using MRFI.  Is there a version of rf_modem that is using SimpliciTI?

Thanks! 

  • http://www.ti.com/tool/simpliciti

  • Thank you for the succinct answer!  However, under the SimpliciTI folder, I did not find the code for RF_modem for the cc2511EMK,

    which file were you referring to? 

  • Well, I tried to download and debug the UART-Bridge file under the folder RFUSB to the cc2511EMK, I don't have a SmartRF04EB, so I connect the cc2511EMK to a cc-debugger, but the IAR won't let me do it, anyway around?

  • Hi,

    Your setup is verified to work. Using CC Debugger to download/debug on CC2511 is ok.

    Verify that you have the latest firmware for CC Debugger.

  • Hei Len Chei,

    From your screen capture it seems you are selecting the CC2511 directly in the "Target Selection" window. Make sure you select to download the code via the CC Debugger.

    Br,
    ABO 

    --
    PS. Thank you for clicking  Verify Answer  below if this answered your question!

  • Hi,

    After tried couple things, I downloaded UART_Bridge onto the cc2511EMK, only to the realization that it is NOT really the SimpliciTI version for the RF_Modem that is provided as the software example for the cc2511EMK.

    UART_Bridge simply does NOT enable the cc2511emk to communicate with the PC as a COM port device, it requires MAX3221 external translator for that.

    What I need is a simple USB dongle that can receive packet using SimpliciTI protocol, and then be recognized by PC as a serial port device and communicate with PC through the serial port.  The RF_Modem example is almost perfect for that except that the radio portion uses MRFI, and it is a little complicated for me to re-write/re-code the RF_USB example for SimpliciTI.

    Any suggestions?  Thanks a lot!

  • Well, I tried to swap the MRFI with SMPL functions in the example code, and of course added all the NWK c and h files.   After rebuild, the hex file became 48kb, although I could download it to the cc2511EMK.  But when I plugged the dongle into the computer, the windows reported it as an unknown USB device.  I switched back to the original RF_USB hex file, and windows successfully recognized it as the usb-cdc device.

    Really perplexed, I don't know why the windows failed to recognize the dongle as a usb-cdc device after I modified the code, was it because the modified code exceeded the 32kb physical ROM memory space?  The flash programmer did not report an error though.  

  • It's very hard to say why the device is not correctly recognized by Windows, not knowing exactly what you did. Try to backtrace your changes one by one to see where it goes wrong..

    The .hex file is a text file, containing more information than the flash content it represents, and may thus be larger than the size of the device flash. To see the actual code size, look at the bottom of the .map file generated by IAR (must be enabled under Project > Options > Linker > List).

    Br,
    ABO 

  • Hi, thanks for the reply!  The .map file says:

     
    17 202 bytes of CODE memory
    25 bytes of DATA memory (+ 30 absolute )
    1 522 bytes of XDATA memory
    64 bytes of IDATA memory
    8 bits of BIT memory

    Errors: none
    Warnings: none

    So I guess the file size is well within the 32K limit.  Well, I will try to backtrace the changes one by one as you suggested.

  • Hi,

    Lei Chen1 said:
    If I am correct, uint8_t *msg should be the same address as the uint8* buf.

    That sounds correct.

    Lei Chen1 said:
    Now the problem is the "uint16 length" argument in the halUartWrite () function, how should I deal with that?

    The uint16 length parameter is the number of bytes the halUartWrite() function should transmit. I am not familiar with the SMPL_Receive() function, but it looks as if it returns the number of bytes received (uint8_t *len), therefore you can use the len value received from SMPL_Receive() and pass it as the length parameter of halUartWrite().

  • hi,lei chen,recently,I also do the same work as yours.

    I'm trying to use simpliciTI on cc2511EMK and   enable it to communicate with the PC as a COM port device.

    So I was pleasantly surprised when I saw your forums.

    would you give me a version of what you did or give me some suggestion?(I'm still in confusion that if it is possible to solve this problem)