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.

CCS/IWR1642BOOST: Automatic data output on Demo Visualizer project

Part Number: IWR1642BOOST

Tool/software: Code Composer Studio

Hello everybody.

I'm using the Demo Visualizer, I need to load the configuration directly on the firmware (I've already changed the mmw_mss project to get baudrate I need).

I want that device begines immediately to send data when it's supplied.

So I'd like to add the external commands for configurations directly in the firmware, included sensorStart.

What should I do?

Thanks.

Regards.

  •     /*****************************************************************************
         * Launch the mmWave control execution task
         * - This should have a higher priority than any other task which uses the
         *   mmWave control API
         *****************************************************************************/
        Task_Params_init(&taskParams);
        taskParams.priority = 6;
        taskParams.stackSize = 3*1024;
        Task_create(MmwDemo_mmWaveCtrlTask, &taskParams, NULL);

        /*****************************************************************************
         * Create a data path management task to handle data Path events
         *****************************************************************************/
        Task_Params_init(&taskParams);
        taskParams.priority = 2;
        taskParams.stackSize = 3*1024;
        Task_create(MmwDemo_mssCtrlPathTask, &taskParams, NULL);

        /*****************************************************************************
         * Create a GPIO switch task to handle events related to pressing GPIO switch
         *****************************************************************************/
        Task_Params_init(&taskParams);
        taskParams.priority = 3;
        taskParams.stackSize = 1024;
        Task_create(MmwDemo_gpioSwitchTask, &taskParams, NULL);
        
        /*INIZIO CODICE DI TEST*/
        /*MmwDemo_notifySensorStop();
        gMmwMssMCB.cfg.ctrlCfg.dfeDataOutputMode = MMWave_DFEDataOutputMode_FRAME;
        gMmwMssMCB.cfg.openCfg.chCfg.rxChannelEn = 15;
        gMmwMssMCB.cfg.openCfg.chCfg.txChannelEn = 3;
        gMmwMssMCB.cfg.openCfg.chCfg.cascading   = 0;*/
        /*FINE CODICE DI TEST*/

        /*****************************************************************************
         * At this point, MSS and DSS are both up and synced. Configuration is ready to be sent.
         * Start CLI to get configuration from user
         *****************************************************************************/
        MmwDemo_CLIInit();

        gMmwMssMCB.cfg.ctrlCfg.dfeDataOutputMode = MMWave_DFEDataOutputMode_FRAME; //ISTRUZIONE DI TEST!!!

        /*****************************************************************************
         * Benchmarking Count init
         *****************************************************************************/
        /* Configure benchmark counter */
        Pmu_configureCounter(0, 0x11, FALSE);
        Pmu_startCounter(0);
       
        return;
  • Hi,

    Here's the similar ticket.
    e2e.ti.com/.../641352

    Regards,
    Wesley
  • Hi Wesley,

    thanks, it's a very useful ticket, but it's not compatible with current mmw mms demo project.

    Indeed there are a lot of differences in cli.c file or in the managnement of the configuration.

    So, is there a similar solution for the project that now it's installable from Resource Explorer?

    I think that it's version 2.0.

    Thanks.

    Regards.

  • I've tried also the solution descrived in this thread, very interesting, but it doesn't work.
    I've no error in compilation but when I switch the device nothing happens, and I can't control it by UART.

    e2e.ti.com/.../653296
  • Ok, I found a solution using CLI_ByPassAPI!

    This is the code change in the CLI init:

        /* Open the CLI: */
        if (CLI_open (&cliCfg) < 0)
        {
            System_printf ("Error: Unable to open the CLI\n");
            return;
        }
    
        if (CLI_ByPassApi(&cliCfg) < 0) CLI_write("Errore nella configurazione\n\r");
        else CLI_write("Tutto OK!\n\r");
    
        System_printf ("Debug: CLI is operational\n");
        return;