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.

IWR6843ISK: How can I reduce the baud rate of the data output serial port?

Part Number: IWR6843ISK
Other Parts Discussed in Thread: UNIFLASH

Hi there,


Right now, I'm using the MCU to communicate with the IWR6843ISK EVM to configure and retrieve data.After referring to the evm guide, I put the IWR6843ISK evm in the "Position for 40 pin LP/BP" mode. I sent the pin configuration instruction to the J5 of IWR6843ISK evm board through the MCU serial port 1. After the configuration, the data should be output from the MSS LOGGER(pin 9) of J6.


According to the IWR6843ISK EVM program, the baud rate of the data output serial port is 921600.
But my MCU can only receive 115200 baud at most.

How can I reduce the baud rate of the data output serial port?

I hope I can get help, thank you very much, looking forward to your reply.
Thanks!

  • Hi, 

    Please source code for the demo you are running, you should be able to change the baud rate in Main.C

    https://e2e.ti.com/support/sensors/f/1023/t/866693

    BR,

    Charles O

  • Hi,Charles O .

    I used the ES2.0 version of IWR6843ISK EVM and the C:\ti\mmwave_industrial_toolbox_4_1_0__win\mmwave_industrial_toolbox_4_1_0\labs\people_counting\68xx_people_counting\prebuilt_binaries\pplcount_lab_xwr68xx.bin file was flash memory.
    Download the firmware according to the Developer's Guide of the pplcount_user_guide.pdf document, use the Code Composer Studio version 8.1.0, want to change the baud rate in main.c.

    However, the following error occurred at the beginning of the import.

    I hope to get your help. Thank you very much.
    Thanks!

  • Hi,

    Did you try updating CCS as it says in the error?

    Also for debug you need to flash the debug bin, not the prebuilt bin. Please follow the right process as noted in the TIREX page you referenced.

    BR,

    Charles O 

  • Hi, Charles O.
    Yes, the problem of not being able to import the project after the CSS update has been resolved.
    For the baud rate you described for modifying the data serial port in the main file, I imported and rebuilt the CSS and MSS projects as
    described in the user guide.
    Then I changed the baud rate of the data serial port in the mss_main.c file in the 68xx_pplcount_mss project from 921600 to 115200, and
    rebuilt to generate the new pplcount_lab_xwr68xx.bin file.

    1. Is it as long as I rebuild it? Bin file flash into iwr6843isk evm, iwr6843isk evm can achieve data serial port to 115200 output?

    3. During the flash drive of the pplcount_lab_xwr68xx.bin file to the iwr6843isk evm board, my UniFlash 6.0.0 remained stuck on the
    "connected to com port" while executing the flash command (that is, after pressing the button).How can I solve this problem?
    (I've also had good success with UniFlash recently.)

    I hope to get your help. Thank you very much.
    Thanks!

  • Hi,

    1. Do you have other programs running that could be using the COM Port?
    2. Also see related link below about UART Function

    BR,

    Charles O

  • Hi,Charles O.

    I tried to restart the computer, but the error still occurred while making sure no program was using the serial port.

    I've also tried to write on other PCS or laptops, and this has happened.
    Therefore, I am very distressed. I hope I can get your help to find the problem as soon as possible.


    I am looking forward to your reply. Thank you for your help!

  • Hi,Charles O.

    According to your description, I tried to restart the PC computer (under the condition that no com port was occupied), and re-used uniflash for flash storage. The flash process was still stuck in "Connected to com port", and the flash could not be successfully applied.Using a laptop to do the same thing also doesn't work with flash memory.

    I really look forward to your help, I will be very grateful!

    I am looking forward to your reply. Thank you for your help!

  • Hi,Charles O.

    First, I rebooted the laptop (win7_64-bit) and connected the usb to the computer port. I charged the IWR6843ISK EVM device and pressed the NRST button to reset it.
    Then, after ensuring that the device manager has recognized the xds110 uart port and xds110 data port, open the Uniflash 6.0.0 flash pplcount_lab_xwr68xx.bin file, the flash will still be stuck in the "Connected to com port" in the flash process, and the flash cannot succeed.
    But, will pop up a "FlashPythonSubprocess. Exe has stopped working" prompt dialog box.
    I'm not sure if this is the reason I can't flash.

    I really look forward to your help, I will be very grateful!

    I am looking forward to your reply. Thank you for your help!

  • Hi,Charles O.

    First, I rebooted the laptop (win7_64-bit) and connected the usb to the computer port. I charged the IWR6843ISK EVM device and pressed the NRST button to reset it.
    Then, after ensuring that the device manager has recognized the xds110 uart port and xds110 data port, open the Uniflash 6.0.0 flash pplcount_lab_xwr68xx.bin file, the flash will still be stuck in the "Connected to com port" in the flash process, and the flash cannot succeed.
    But, will pop up a "FlashPythonSubprocess. Exe has stopped working" prompt dialog box.
    I'm not sure if this is the reason I can't flash.

    I really look forward to your help, I will be very grateful!

    I am looking forward to your reply. Thank you for your help!

  • Hi,

    Can you try installing UNIFLASH on a different PC? it appears uniflash isn't working properly on your PC.

    BR,

    Charles O 

  • Hi,Charles O.

    I have tried to install the uniflash software on other PCS (win7_64-bit) to redo the flash operation, and still the prompt box of "flashpythonsubprocess.exe has stopped working" will appear, and the flash process will also get stuck in "connected to com port", unable to flash successfully.

    I've tried all sorts of things, but I can't solve the problem, and I've spent a lot of time doing it.
    I hope to get your reply as soon as possible. Thank you for your help.

    Regards.

  • Hi,Charles O.

    The following is the record of the "Connected to com port" console where the flash process was stuck when I used the flash memory of the Uniflash 6.0.0 software.

    1362.console.txt
    [2020/4/28 ����4:29:26] [INFO] Cortex_R4_0: Initialization complete.
    [2020/4/28 ����4:29:26] [INFO] Cortex_R4_0: Flashing process starting...
    [2020/4/28 ����4:29:26] [INFO] Cortex_R4_0: Connecting to COM Port COM50...
    [2020/4/28 ����4:29:26] [INFO] Cortex_R4_0: Reset connection to device
    [2020/4/28 ����4:29:26] [INFO] Cortex_R4_0: Set break signal
    [2020/4/28 ����4:29:26] [INFO] Cortex_R4_0: Connection to COM port succeeded. Flashing can proceed.
    [2020/4/28 ����4:29:26] [INFO] Cortex_R4_0: Reading device version info...
    [2020/4/28 ����4:29:27] [INFO] Cortex_R4_0: ** 1 files specified for flashing.


    Regards.

  • Hi,

    Did you make any change to the EVM or change the switch config for the UART ?

    BR,

    Charles O

  • Hi,Charles O.

    I once modified the dial switch of his s1.12, but I reset him to the original before flash, but still the flash failed.
    The oddest thing is that you can erase firmware but not flash memory.

    Regards.

  • Hi,Charles O .

    I used the ES2.0 version of IWR6843ISK EVM and the C:\ti\mmwave_industrial_toolbox_4_1_0__win\mmwave_industrial_toolbox_4_1_0\labs\people_counting\68xx_people_counting\prebuilt_binaries\pplcount_lab_xwr68xx.bin file was flash memory.

    1. Download the firmware according to the developer's guide to the pplcount_user_guide.pdf file, use the Code Composer Studio version 8.1.0, and change the baud rate to 115200 in mss_main.c.
    When I flash the modified baud rate of. Bin file of 115200 to IWR6843ISK EVM, I find that the frame head is still consistent with 02 01 04 03 06 05 07 08, but now when obstacles move in the detection area for a period of time, the output of the data serial port will slow down, and then stop the data output.When it is changed back to the original 921600, the data serial port output is normal.


    Is there anything I haven't fixed in the program that caused an error?
    Or what function should I add?
    I hope to get your answer. Thank you very much for your help.

    2. Today, another computer was used for flash storage and found that flash storage succeeded.
    This computer and my computer's system is consistent, and IWR6843ISK EVM's hardware and operation steps are consistent, somehow can flash memory success?
    Regards.

  • Hi,

    If you have too many data to process and send out, with reduced baud rate the data you will require a lot more time to send out the data. Reducing the baud rate means more time is required to send data, so you need to reduce the data being sent out.

    BR,

    Charles O