The manual says:
To set UART communication status, use “UART ”,
• where value:
– 0: disables communication using UART,
– 1: enables
with the note
Note: The “UART” command is not available when the compile flag “USB_ENABLE” was removed from the project.
I finally got the project to compile and found the .hex file. I first tried the CLI version. Worked fine, got two red and one green LEDs, and it measures distance ok.
How do I turn on the UART command, and what precisely does it do? I was rather hoping that it would let me type in one terminal and receive the text on the other.
I tried removing the ‘D’ from the "CMAKE_CUSTOM_C_FLAGS " line in “project_common.cmake” and the unit no longer worked at all. Only one red blinking LED and no command menu.
Hi @pblase!
What you have done so far seems fine.
How do I turn on the UART command, and what precisely does it do? I was rather hoping that it would let me type in one terminal and receive the text on the other.
Besides the USB CDC, the CLI app implements communication over the dev board UART terminals, which can be used instead. Is useful if you wanna send commands from another microcontroller device.
The UART
command deactivates the USB CDC and forwards the communication to the UART port, so if you type UART 1
in the CLI, the terminal will stop responding as the communication is now redirected to the UART. To test it, you’ll need a USB-to-Serial converter.
Kind regards!
Ah, thanks. I should be able to simply use another USB cable and port and a virtual COM port, yes?
Of course, if I unplug J20 and plug in J9 to access that DWM3001CDK port,. I restart the CPU. There isn’t a problem with plugging both USB ports in simultaneously, is there?
Hi @pblase!
J9 is the Embedded JLink port only, and despite appearing on Windows as a COM Port, it is used only for flashing and debugging. You can’t get communication with the board through there.
J20 is the User USB, where the CLI application implements the Virtual COM Port, this is the one you’re using to send commands.
Yes, you can have both plugged at the same time. I do this when developing for DWM3001CDK. If only using CLI or UCI, I only plug J20.
Kind regards!
So what is the UART that is activated with the “UART 1” command? And how is that used?
Ah, it’s the raw UART port to the Raspberry PI connector. Having a schematic for the DWN3001CDK would be very useful!
Hi @pblase!
Ah, it’s the raw UART port to the Raspberry PI connector.
Exactly, the RPi connector. Useful for connecting to a Raspberry Pi or a secondary board.
Having a schematic for the DWN3001CDK would be very useful!
Unfortunately, this info was removed from recent versions, but you can find old versions online, like from the Mouser DWM3001CDK product page:
Qovro_7_7_2022_DWM3001CDK_Quick_Start_Guide-2998998.pdf (see page 4).
Kind regards!