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.

TPS65982 : Reading ADC

Other Parts Discussed in Thread: TPS65982

Hi

i'm using the TPS65982 testing kit with the host interface connected to the Aardvark I2C adapter for using Python code.

When i use the "read_register.py" code provided i can read the register correctly but the code crash when it try to read the  ADC.

Here the result of the 4CC command "ADCs"

************************************************************************************

ADC
Traceback (most recent call last):
File "C:\Python/debug_tool/read_registers.py", line 82, in <module>
ADCreturn = ADCs(handle, channel)
File "C:\Python\debug_tool\hi_functions.py", line 505, in ADCs
verify_cmd_completed(handle)
File "C:\Python\debug_tool\hi_functions.py", line 42, in verify_cmd_completed
assert 0
AssertionError
Cmd STATUS ERROR : !CMD

******************************************************************************************************

Any idea ?

Franck

  • Hi Franck,

    The "!cmd" error is very specific error - the firmware actually writes this 4-character ascii string into the CMD register - so you are running a version of the firmware that does not support "ADCs" 4cc command. This command is new as of v0.9.0, so if you build an image using the latest v.1.0 GUI configuration tool, the output will support the "ADCs" command.

    I'm not sure which version of the firmware you have. Depending on when you purchased the EVM you might have different loads, but if you do not wish to upgrade your frimware to version 0.9.0 you will need to comment the ADC section out of the read_registers.py script (using '#').
    The v1.0 GUI config tool can be downloaded from:
    www.ti.com/.../tps65982-config

    And will output 0.9.0 FW if you begin with one of the six default configurations.

    Steve
  • Hi Steve

    Thank you for your answer. i have actually the version :

    VERSION 0000.08.07

    DEVICE INFO TPS65982 HW02A0 FW0000.08.07 ZBPK1

    i'll performe some test with the new version.

    Franck

  • It works !
    i have upgraded to fw 0.9.0

    thanks Steve
    Franck