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.

AFE7950EVM: AFE7950EVM with ZCU102 - Basic Setup issue as per TI204c-Setup documentation

Part Number: AFE7950EVM
Other Parts Discussed in Thread: AFE7900, AFE7950

I am experimenting this with ZCU102 and using the documentation steps provided in the TI204c-Setup.docx

We got struck with the below step and we could not able to proceed. Please guide us how to solve this. : 

#======
#Executing .. AFE79xx/bringup/setup.py
#Start Time 2023-07-01 17:23:47.824000 
AFE79xxLibraryPG1p0
spi - USB Instrument created.
resetDevice
Purge
Kintex RegProgrammer - USB Instrument created.
Kintex RegProgrammer - USB Instrument created.
Kintex RegProgrammer - USB Instrument created.
#Done executing .. AFE79xx/bringup/setup.py
#End Time 2023-07-01 17:23:54.985000
#Execution Time = 7.16100001335 s 
#================ ERRORS:0, WARNINGS:0 ================#
#======
#Executing .. selection
#Start Time 2023-07-01 17:23:56.998000 
#Done executing .. selection
#End Time 2023-07-01 17:23:56.999000
#Execution Time = 0.00100016593933 s 
#================ ERRORS:0, WARNINGS:0 ================#
#======
#Executing .. AFE79xx/bringup/devInit.py
#Start Time 2023-07-01 17:24:05.054000 
Power Card - USB Instrument created.
Reset the FPGA and try again.
Loaded Libraries
Refreshed GUI
#Done executing .. AFE79xx/bringup/devInit.py
#End Time 2023-07-01 17:24:42.407000
#Execution Time = 37.353000164 s 
#================ ERRORS:1, WARNINGS:0 ================#
#======
#Executing .. selection
#Start Time 2023-07-01 17:25:01.687000 
#Done executing .. selection
#End Time 2023-07-01 17:25:01.690000
#Execution Time = 0.00300002098083 s 
#================ ERRORS:0, WARNINGS:0 ================#
#======
#Executing .. AFE79xx/bringup/TI_IP_10Gbps_8Lane_ConfigLmk.py
#Start Time 2023-07-01 17:25:06.957000 
The External Sysref Frequency should be an integer factor of: 3.84MHz
2T2R1F Number: 0
Valid Configuration: True
laneRateRx: 9830.4
laneRateFb: 9830.4
laneRateTx: 9830.4
2T2R1F Number: 1
Valid Configuration: True
laneRateRx: 9830.4
laneRateFb: 9830.4
laneRateTx: 9830.4
LMK Clock Divider - Device registers reset.
LMK Clock Divider - Device registers reset.
REFCLOCK is used from LMK source, ensure board connections are ok to do the same
#Done executing .. AFE79xx/bringup/TI_IP_10Gbps_8Lane_ConfigLmk.py
#End Time 2023-07-01 17:25:08.717000
#Execution Time = 1.75999999046 s 
#================ ERRORS:0, WARNINGS:1 ================#
#======
#Executing .. selection
#Start Time 2023-07-01 17:25:12.427000 
#Done executing .. selection
#End Time 2023-07-01 17:25:12.429000
#Execution Time = 0.0019998550415 s 
#================ ERRORS:0, WARNINGS:0 ================#
#======
#Executing .. AFE79xx/bringup/TI_IP_ConfigAfe.py
#Start Time 2023-07-01 17:26:08.732000 
The External Sysref Frequency should be an integer factor of: 3.84MHz
2T2R1F Number: 0
Valid Configuration: True
laneRateRx: 9830.4
laneRateFb: 9830.4
laneRateTx: 9830.4
2T2R1F Number: 1
Valid Configuration: True
laneRateRx: 9830.4
laneRateFb: 9830.4
laneRateTx: 9830.4
LMK and FPGA Configured.
DONOT_OPEN_Atharv_FULL - Device registers reset.
Mismatch between Entered (0x20) and device Read Chip Version(0x12 or 0x13). Please select correct Chip Version.
#Error: exceptions must be old-style classes or derived from BaseException, not NoneType
# "AFE79xx/bringup/TI_IP_ConfigAfe.py", line 3, in 
# File "C:\Users\KG\Documents\Texas Instruments\Afe79xxLatte\lib\\AFE79xxLibraries\\AFE79xxLibraryPG1p0\\resourceFiles\mFuncDecorator.py", line 88, in inDecorator
# a=func(*args,**kwargs)
# File "C:\Users\KG\Documents\Texas Instruments\Afe79xxLatte\lib\\AFE79xxLibraries\\AFE79xxLibraryPG1p0\mAfeLibrary.py", line 249, in deviceBringup
# self.softReset()
# File "C:\Users\KG\Documents\Texas Instruments\Afe79xxLatte\lib\\AFE79xxLibraries\\AFE79xxLibraryPG1p0\\resourceFiles\mFuncDecorator.py", line 88, in inDecorator
# a=func(*args,**kwargs)
# File "C:\Users\KG\Documents\Texas Instruments\Afe79xxLatte\lib\\AFE79xxLibraries\\AFE79xxLibraryPG1p0\mAfeLibrary.py", line 159, in softReset
# raise
# TypeError: exceptions must be old-style classes or derived from BaseException, not NoneType
# 
# 
#Done executing .. AFE79xx/bringup/TI_IP_ConfigAfe.py
#End Time 2023-07-01 17:26:12.764000
#Execution Time = 4.03199982643 s 
#================ ERRORS:1, WARNINGS:0 ================#
#======
#Executing .. selection
#Start Time 2023-07-01 17:26:17.189000 
#Done executing .. selection
#End Time 2023-07-01 17:26:17.191000
#Execution Time = 0.00200009346008 s 
#================ ERRORS:0, WARNINGS:0 ================#

if we say continue it stalls with below message:

Mismatch between Entered (0x20) and device Read Chip Version(0x12 or 0x13). Please select correct Chip Version.

#Error: exceptions must be old-style classes or derived from BaseException, not NoneType

# "AFE79xx/bringup/TI_IP_ConfigAfe.py", line 3, in

# File "C:\Users\KG\Documents\Texas Instruments\Afe79xxLatte\lib\\AFE79xxLibraries\\AFE79xxLibraryPG1p0\\resourceFiles\mFuncDecorator.py", line 88, in inDecorator

# a=func(*args,**kwargs)

# File "C:\Users\KG\Documents\Texas Instruments\Afe79xxLatte\lib\\AFE79xxLibraries\\AFE79xxLibraryPG1p0\mAfeLibrary.py", line 249, in deviceBringup

# self.softReset()

# File "C:\Users\KG\Documents\Texas Instruments\Afe79xxLatte\lib\\AFE79xxLibraries\\AFE79xxLibraryPG1p0\\resourceFiles\mFuncDecorator.py", line 88, in inDecorator

# a=func(*args,**kwargs)

# File "C:\Users\KG\Documents\Texas Instruments\Afe79xxLatte\lib\\AFE79xxLibraries\\AFE79xxLibraryPG1p0\mAfeLibrary.py", line 159, in softReset

# raise

# TypeError: exceptions must be old-style classes or derived from BaseException, not NoneType

#

#

#Done executing .. AFE79xx/bringup/TI_IP_ConfigAfe.py

#End Time 2023-07-01 17:38:03.314000

#Execution Time = 235.396999836 s

#================ ERRORS:1, WARNINGS:0 ================#

Attached Log file

We are really in a critical situation where our demo is totally relay on your reply.

  • Hi Krishna,

    This issue is occurring because of a mismatch in the chip version in the setup.py script. For all AFE795x devices in setup.py chipVersion=0x13. For all AFE790x devices in setup.py chipVersion=0x20. 

    Please note that this issue is taken care of when using the respective AFE7900 or AFE7950 folders in the AFE79xx secure folder. We recommend using the scripts from the folder of the device you plan to use. 

    Regards,

    David Chaparro