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.

OPT4001DNPQ1EVM: The GUI error

Part Number: OPT4001DNPQ1EVM
Other Parts Discussed in Thread: OPT4001,

Tool/software:

Dear team,

My customer is facing the GUI using issue. Would you please advice as how we can resolve this?

Best regards,
Yuto

 

Phenomenon:

 

Error log:

#======

#Executing .. OPT4001/OPT4001DNPQ1_EVM/devInit.py

#Start Time 2024-09-26 22:16:53.262000

#Error: 'ascii' codec can't encode characters in position 9-10: ordinal not in range(128)

# "OPT4001/OPT4001DNPQ1_EVM/devInit.py", line 39, in

# UnicodeEncodeError: 'ascii' codec can't encode characters in position 9-10: ordinal not in range(128)

#

#

#Done executing .. OPT4001/OPT4001DNPQ1_EVM/devInit.py

#End Time 2024-09-26 22:16:53.278000

#Execution Time = 0.0160000324249 s

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

If they comment out line39, same error occurred on line40

 

Environment:
Software: OPT4001DNPQ1EVM_GUI.exe version 1.0.1
PC: Windows10 version 1803

  • Hey Yuto,

    Could you please try commenting the following lines in mEVMSelector.py?

                                assert z[2] == '%02d'%storeSize
                                r = [sendCheck(ser, 'FLSR')[0][2] for i in range(storeSize)]
                                sendCheck(ser, 'FLS!R')
                                s = "".join([decodeHwrz(st) if i != 1 else st[2:6]
                                            for i, st in enumerate(r)])
                                Globals.log("Device detected: " + s)
                                assert s == "OPT4001DNP-Q1EVM"
    This should be lines 85-91.
    Thanks,
    Daniel