christoph2 / pyxcp

ASAM XCP in Python

Home Page:http://pyxcp.rtfd.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SeedAndKey DLL returned: ERR_COULD_NOT_LOAD_DLL

neresdu opened this issue · comments

@christoph2
Hello everybody, I'm trying to run the example xcp_unlock and got this error SeedAndKey DLL returned ERR_COULD_NOT_LOAD_DLL
I've put the seed and key file as parameter but it was not found by the python application. Running in a debian 10 linux version, I tried with .so file and with .dll and got the same error

SeedAndKey DLL returned ERR_COULD_NOT_LOAD_DLL

This is my conf_socket_can file:

TRANSPORT = "CAN"
CAN_DRIVER = "SocketCAN"
CAN_USE_DEFAULT_LISTENER = true
CHANNEL = "can1"
CAN_ID_MASTER = 0x7FE
CAN_ID_SLAVE = 0x7FD
CAN_ID_BROADCAST = 256
CREATE_DAQ_TIMESTAMPS = false
FD = false
MAX_DLC_REQUIRED = true
MAX_CAN_FD_DLC = 32
PADDING_VALUE = 0
BITRATE = 1000000

Python 3.7.3
Debian 10 buster
armv7l GNU/Linux

I think I found the problem, in the lib path just add the complete path of your asamkeydll file inside the dllif.py, just like that:

LOADER = "pyxcp/asamkeydll"