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.

Compiler: Start to connect Arduino Due to TMSC2000f28069 via SCI

Other Parts Discussed in Thread: CONTROLSUITE

Tool/software: TI C/C++ Compiler

hello
I am start to  connect   Arduino Due and   TMSC2000f28069  via SCI   
I look up to TI control suite,but there is no  example like this
Is there any example or document to practice?
thankyou!

  • Shawn,

    controlSUITE should have 3 examples for SCI to help you get started. I would suggest starting with "sci_echoback". It can be found in <install_directory>ti\controlSUITE\device_support\f2806x\v151\F2806x_examples_ccsv5. 

    This code will echo received commands, ie if the Arduino sends "AA" the C2000 will reply with "AA".

    Some common mistakes are:

    • Connecting Tx->Tx and Rx->Rx, you need to connect the Arduino's Tx->C2000's Rx and  Arduino's Rx->C2000's Tx
    • Baud Rate mismatches, if the two nodes are communication at different baud rates the messages will be distorted.
    •  Both devices need to have the same Parity(even, odd, none)

    Hope it helps!
    Regards,
    Cody 

  • Thanks Cody 
    I run the example, but I don't know how to adjust the EMU as the following description in the example code.

    As supplied, this project is configured for "boot to SARAM"
    // operation. The F2806x Boot Mode table is shown below.
    // $Boot_Table:
    //
    // While an emulator is connected to your device, the TRSTn pin = 1,
    // which sets the device into EMU_BOOT boot mode. In this mode, the
    // peripheral boot modes are as follows:
    //
    // Boot Mode: EMU_KEY EMU_BMODE
    // (0xD00) (0xD01)
    // ---------------------------------------
    // Wait !=0x55AA X
    // I/O 0x55AA 0x0000
    // SCI 0x55AA 0x0001
    // Wait 0x55AA 0x0002
    // Get_Mode 0x55AA 0x0003
    // SPI 0x55AA 0x0004
    // I2C 0x55AA 0x0005
    // OTP 0x55AA 0x0006
    // ECANA 0x55AA 0x0007
    // SARAM 0x55AA 0x000A <-- "Boot to SARAM"
    // Flash 0x55AA 0x000B
    // Wait 0x55AA Other
    //
    // Write EMU_KEY to 0xD00 and EMU_BMODE to 0xD01 via the debugger
    // according to the Boot Mode Table above. Build/Load project,
    // Reset the device, and Run example
    //
    // $End_Boot_Table
    //

    Moreover, how to do of this setting

    1) Configure hyperterminal:
    // Use the included hyperterminal configuration file SCI_96.ht.
    // To load this configuration in hyperterminal: file->open
    // and then select the SCI_96.ht file.


    I open the terminal, and select the corresponding COM and baud rate, typing the char in toggle command input field, but there is no answer 
    Thank you



  • You should be able to write to EMU_KEY and EMU_BMODE using the memory browser.

    You don't need to use hyperterminal, you can use any terminal program, simply choose the correct com port and UART settings and everything should work.

    What hardware are you using? Some hardware requires you to configure switches to enable the SCI communication. Check the schematic and ensure it is configured correctly.

    Regards,
    Cody
  • Can this issue be closed, or are you still working on it?

    Regards,
    Cody