Other Parts Discussed in Thread: UNIFLASH, AWR1843
Tool/software:
Hello,
I am using the AWR1843 EVM for a parking assist solution. I am deploying both DSS and MSS applications (Demo application provided by TI ) using Code Composer Studio and Uniflash. I can start the radar successfully using a Python script that sends configuration commands over UART. However, I want to auto-start the radar on boot without requiring an external script.
To achieve this, I attempted to send the necessary configuration and sensorStart
command within the CLI init() function as follows:
// 1. Set Data Output Mode
sprintf(cmd, "dfeDataOutputMode 1\n");
UART_writePolling(gMmwMssMCB.loggingUartHandle, cmd, strlen(cmd));
// 2. Configure Channels
sprintf(cmd, "channelCfg 15 3 0\n");
UART_writePolling(gMmwMssMCB.loggingUartHandle, cmd, strlen(cmd));
// 3. ADC Configuration
sprintf(cmd, "adcCfg 2 2\n");
UART_writePolling(gMmwMssMCB.loggingUartHandle, cmd, strlen(cmd));
// 4. Profile Configuration
sprintf(cmd, "profileCfg 0 60.25 100 5 40 0 0 20 1 256 5000 0 0 30\n");
UART_writePolling(gMmwMssMCB.loggingUartHandle, cmd, strlen(cmd));
// 5. Chirp Configuration
sprintf(cmd, "chirpCfg 0 0 0 0 0 0 0 0\n");
UART_writePolling(gMmwMssMCB.loggingUartHandle, cmd, strlen(cmd));
// 6. Frame Configuration
sprintf(cmd, "frameCfg 0 1 128 0 40\n");
UART_writePolling(gMmwMssMCB.loggingUartHandle, cmd, strlen(cmd));
// 7. Low Power Mode
sprintf(cmd, "lowPower 0 0\n");
UART_writePolling(gMmwMssMCB.loggingUartHandle, cmd, strlen(cmd));
// 8. GUI Monitor
sprintf(cmd, "guiMonitor 0 1 1 0 0 0 0\n");
UART_writePolling(gMmwMssMCB.loggingUartHandle, cmd, strlen(cmd));
// 9. CFAR Configuration
sprintf(cmd, "cfarCfg 0 0 2 8 4 3 0 15.0 1\n");
UART_writePolling(gMmwMssMCB.loggingUartHandle, cmd, strlen(cmd));
// 10. Multi-Object Beamforming
sprintf(cmd, "multiObjBeamForming 0 1 0.5\n");
UART_writePolling(gMmwMssMCB.loggingUartHandle, cmd, strlen(cmd));
// 11. Clutter Removal
sprintf(cmd, "clutterRemoval 0 0\n");
UART_writePolling(gMmwMssMCB.loggingUartHandle, cmd, strlen(cmd));
// 12. Calibration
sprintf(cmd, "calibDcRangeSig 0 0 -5 5 8\n");
UART_writePolling(gMmwMssMCB.loggingUartHandle, cmd, strlen(cmd));
// 13. Start Sensor
sprintf(cmd, "sensorStart\n");
UART_writePolling(gMmwMssMCB.loggingUartHandle, cmd, strlen(cmd));
CLI_write("Sensor started via UART commands\n");
However, this does not work, and the radar does not start automatically on boot.
I am using SDK version 3.06.02.
Could you please guide me on correctly auto-start the radar on boot? Are there specific functions or hooks that I should modify, or any known limitations in the CLI init process?
Thanks in advance!