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.
Hi Experts,
Good day. Seeking assistance on this.
We want to use UART send command to EVM device, from its EVM user's guide, I know different bytes related to different commands, but I'm not sure how to use it. Do I need to setup the port first, how to realize this? And also, if I want to use command "Erase all stored scan configurations" "NNO_CMD_SCAN_CFG_ERASEALL" for example, should I directly send the byte value to code composer studio
" 65, 66, 67, 68, (start bytes)
240, 0, 0, 0, (checksum)
192 (flags)
0(sequence)
2,0,(length)
33,2,(commands)
68, 67, 66, 65,(end)"
I am not sure if this correct. Can you help me with the UART communication?
Thank you very much!
Regards,
Archie A.
Hi Archie,
Welcome back to the E2E forum!
Can you say from where you are getting the above values and where you have found the documentation on the "erase all stored scan configurations" command?
Regards,
Austin
Hi Archie,
Please refer to threads: https://e2e.ti.com/support/dlp-products-group/dlp/f/dlp-products-forum/1084892/dlpnirnanoevm-no-response-over-uart-with-arduino
For your reference.
I am not sure what you mean by : "should I directly send the byte value to code composer studio".
We send UART commands to TIVA controller in the EVM. The TIVA firmware is developed using Code Composer Studio(CCS). And the commands protocol is defined in the Secion I of User's guide: https://www.ti.com/lit/ug/dlpu030g/dlpu030g.pdf?ts=1656319195651&ref_url=https%253A%252F%252Fwww.ti.com%252Ftool%252FDLPNIRNANOEVM
Regards,
Akhil
Hello Akhil,
Thanks for your response.
I found it in the user guide, from page 88 to page 91. I have attached this file before. And the problem I meet is I don't know how to use this command, because my device cannot be connected by USB or BLE, so I am trying to use UART, but the manual doesn't say use what software to send the commands and how to send this command?
We set up the hardware connection as shown in picture below, with the intention to update the Tiva firmware with a good one through UART.
I want to better understand the colleague instructions “Then setup the serial port using the the Serial.c functions from the link below and send commands such as NNO_CMD_EEPROM_TEST, NNO_CMD_ADC_TEST, and NNO_CMD_DLPC_ENABLE to DLPNIRNANOEVM.”
*******
Then setup the serial port using the the Serial.c functions from the link below and send commands such as NNO_CMD_EEPROM_TEST, NNO_CMD_ADC_TEST, and NNO_CMD_DLPC_ENABLE to DLPNIRNANOEVM.
Also, please advise:
Please advise:
[1] Should I use code composer IDE to compile and build the testdlpserial.c to generate an .bin file first, then download this .bin file to DLP Nano EVM through the software DLP NIRScan Nano GUI?
[2] When sending commands to UART port, which software interface shall I use? Is there an embedded serial-read-write function inside Code Composure to do this job?
[3] To fix the malfunction, which UART commands do you suggest us use?
Here is a list of components we use, for your reference.
1.USB to TTL Serial 3.3V Adapter Cable: www.amazon.com/.../ref=ox_sc_act_title_1
2.PC: running windows 10;
3.Code composer IDE V 11.2.0
4.DLP NIRScan Nano GUI V2.1.0
Appreciate your inputs.
Thank you very much.
Regards,
Archie A.
Hello Archie,
To interface the PC and NIRScan Nano EVM you need a USB to TTL converter and makes sure the connections are proper.
Then you can use any of the serial terminal tool based on your preference like Teraterm, Putty and mmay tools like that are avaialbale.
If you want to use some scripting/automation you can create using python and pyserial library.
Regards,
Akhil
Hello Archie,
Thank you for your feedback. We will investigate the mentioned behavior and get back to you.
Regards,
John
Hi Archie
I personally use Docklight or YAT serial terminal tools for UART debug purposes. You can search for any open source serial terminal supported for your platform(OS) for write and read.
Also Please follow the UART command format as described in Secion I of User's guide: https://www.ti.com/lit/ug/dlpu030g/dlpu030g.pdf?ts=1656319195651&ref_url=https%253A%252F%252Fwww.ti.com%252Ftool%252FDLPNIRNANOEVM
and list of supported UART commands can be seen in Table I.3 in user's guide
You could also refer to Table G.3 for all supported commands via USB and UART.
Setting the controller to Bootloader command is only supported via USB and not UART
Regards,
Akhil