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.

IWR6843AOPEVM: Clarification about flashing procedure

Part Number: IWR6843AOPEVM
Other Parts Discussed in Thread: IWR6843AOP

Hello All,

In order to integrate the IWR6843AOP in our design, we have build an interface board that plugs on the 60 pins header of the EVM and delivers the necessary IO lines for our MCU (basically SPI connection), as well as a 20 pins header for XDS110 connection.

We are then able to debug our firmware (so far just a copy of the out of the box demo) from CCS via the XDS110.

We then tried to flash the device.

Through the USB connector, after setting SOP2 line, everything works as expected. Board is flashed, and after reboot, our code is running.

However, if we try to do it through the XDS110, we do not succeed.

XDS is detected, but strangely, serial number is displayed as 00000000

Then, not being sure what to choose for the device, I selected IWR6843AOP, which appeared with 'Serial Connection' only.

And then it fails to connect:

[4/9/2023, 11:37:45 AM] [INFO] Cortex_R4_0: Reading device version info...
[4/9/2023, 11:37:55 AM] [ERROR] Cortex_R4_0: Version checksum Calculated: 0x44. Received: 0x8e
[4/9/2023, 11:37:55 AM] [ERROR] Cortex_R4_0: Checksum error on received packet
[4/9/2023, 11:37:55 AM] [ERROR] Cortex_R4_0: Not able to get version of device. Please power cycle device and try again.

It's not very clear to me what to select here. What should be the state of SOP2 in that case...

In short, what is the right procedure to flash the IWR6843AOP using JTAG connection (through XDS110)

If someone could send me some guidance, I've not been able to find anything on Net.

Thanks

Jylo

  • Hello Jylo,

    Could you confirm what your current switch configuration on the AOP is? Please confirm that your switch configuration against the schematic, this needs to be correct to route the necessary IOs to the 60 pin headers. Find the schematic on the product page under design files: https://www.ti.com/tool/IWR6843AOPEVM#design-files 

    Regards,
    Luke

  • Hi Luke,

    Many thanks for your feedback.

    Switches seem to be OK (from my understanding...):

    SW1 = On-On-Off-On

    SW2 = Off-On-Off-X

    S3 = Off

    But I'm still unable to program the flash trough the debugger.

    Although, I'm able to debug from CCS (with SW1-4 = Off), probably meaning that the connections are not so far from what they should...

    And I've been able (at least once) to program the Flash through the USB connector.

    I'm still very confused with the way JTAG is working on TI devices...

    Thanks

    Jean-Yves

  • Hello Jean-Yves,

    So I believe your switch configuration is correct. Based on what you described, it sounds like maybe you have not connected the XDS110 UART to the AOPs UART. 

    The AOP device has JTAG for debug purposes, but to my knowledge, the image must come into the device over UART. For example, when used in stand alone mode, the image is sent over USB, converted to UART, which is fed into the device. When the board is used with the mmWave ICBOOST (our evaluation expansion board that has an XDS110), the JTAG of the AOP and the XDS are connected, AND the UART of the XDS and AOP are connected. The debug happens over JTAG, but the image still flows into the device over the UART.

    So you may not be passing the UART into the device with your custom evaluation board and XDS.

    What do you see in device manager COM PORTS when you have the XDS connected to the PC?

    Regards,
    Luke

  • Many thanks Luke for your explanations, this clarify the things!

    I indeed thought that flashing with the debugger went trough the JTAG connection,.. my mistake!

    And indeed, the UART present on AUX socket is not connected to the 60 pts... But this now means that we probably do not need them, since the UART can be accessed directly (through the CP2105 on the kit, and probably through a connector on our final design)

    To answer your question I do see 2 com ports: XDS100 Class Application/User UART and XDS110 Class Auxiliary Data Port...

    Thanks gain

    Kind regards

    Jean-Yves