Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set_Bsdl method return error #3

Open
PierreCastera opened this issue Jan 28, 2022 · 3 comments
Open

Set_Bsdl method return error #3

PierreCastera opened this issue Jan 28, 2022 · 3 comments
Assignees

Comments

@PierreCastera
Copy link

Hello,

I try to make a boundary scan test bench based on your work but I face a problem with the "set_bsdl" method.

I work on Windows 10, I Install python 3.9.10 32bit and install the setup (py setup.py install). I use a Jlink Base probe for the JTAG communication and I include in my main folder the .DLL file.
I succes the connection with the probe and I can detect the device on the boundary scan chain. But when I want to link the BSDL file I have the error below :

terminal_capture

this is my code :

`from jtagbs import jtagbs
from jtagbs.viveris import jtagcore

interface = jtagcore.JTAGCore()
jtag = jtagbs.JTAGBS(interface)

probes = jtag.list_available_probes()
print(probes)

jtag.open_probe('JLINK')
jtag.init_scanchain()

print(jtag.list_devids())
print(jtag.list_devices())

MK64 = jtag.get_device(1)

print(MK64)

#MK64.set_bsdl("./bsdl_files/st/stm32f4/STM32F405_415_407_417_LQFP64.bsd")
MK64.set_bsdl(r"./bsdl_files/nxp/MK/K64_144qfp.bsdl")`

Do you have an idea to solve this issue ?
Thank you

@colinoflynn colinoflynn self-assigned this Jan 28, 2022
@colinoflynn
Copy link
Owner

I'll see what happens - you might try replacing the DLL with a more recent version? The "bad parameter" sounds like some sort of error with either the filename or the self.device_id. You might try as a minor test moving the BSDL file into the exact same directory so the path is just K64_144qfp.bsdl in case the relative path is causing an error with the DLL.

I haven't seen that error, I'll give it a try later to see if I can recreate it which would be more useful for debugging (or maybe someone else has?)

@PierreCastera
Copy link
Author

Thank you for your quick answer.
The DLL is the most recent version. I already try to put the BSDL file into the same directory but nothing change.
Perhaps the error can come from a bad environement configuration ?
Is there any other action to do for initialize the project in addition to install python 32bit and execute the setup.py ?

@jerome60
Copy link

hello, test with MK64 = jtag.get_device(0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants