Skip to content

Commit b8d2979

Browse files
committed
i.MX RT1020 via JLink.
1 parent 15eb261 commit b8d2979

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

jlink.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ def get_jlink_dll():
103103
if sys.platform == 'win32':
104104
jlink, backend_info = locate_library('jlinkarm.dll', search_path)
105105
elif sys.platform.startswith('linux'):
106-
jlink, backend_info = locate_library('libjlinkarm.so.5', search_path, ctypes.cdll)
106+
jlink, backend_info = locate_library('libjlinkarm.so.6', search_path, ctypes.cdll)
107107
elif sys.platform == 'darwin':
108-
jlink, backend_info = locate_library('libjlinkarm.so.5.dylib', search_path, ctypes.cdll)
108+
jlink, backend_info = locate_library('libjlinkarm.so.6.dylib', search_path, ctypes.cdll)
109109
return jlink, backend_info
110110

111111
# ----------------------------------------------------------------------------
@@ -437,7 +437,7 @@ def connect(self, cpu_name, itf):
437437
# check the hardware
438438
state = self.jlink.get_hw_status()
439439
assert state['vref'] > 1500, 'Vref is too low. Check target power.'
440-
assert state['srst'] == 1, '~SRST signal is asserted. Target is held in reset.'
440+
#assert state['srst'] == 1, '~SRST signal is asserted. Target is held in reset.'
441441
# setup the jlink interface
442442
self.jlink.exec_command('device=%s' % cpu_names[cpu_name])
443443
self.jlink.set_speed(4000)

lib32/README.md

-1
This file was deleted.

lib64/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
If you have a 64 bit OS the 64 bit JLINK libraries should be placed in this directory.
2+
3+
That is:
4+
5+
libjlinkarm.so
6+
libjlinkarm.so.6
7+
libjlinkarm.so.6.46.8

stlink.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
# supported devices
2929

3030
stlink_devices = (
31-
(0x0483, 0x3744, 1), # Version 1
32-
(0x0483, 0x3748, 1), # Version 2
33-
(0x0483, 0x374B, 1), # Version 2.1
31+
(0x0483, 0x3744, 0), # Version 1
32+
(0x0483, 0x3748, 0), # Version 2
33+
(0x0483, 0x374B, 0), # Version 2.1
3434
)
3535

3636
def itf_lookup(vid, pid):
@@ -148,7 +148,7 @@ def __init__(self, vid, pid, sn):
148148
self.sn = sn
149149
itf = itf_lookup(self.vid, self.pid)
150150
self.usb = usbdev.usbdev()
151-
self.usb.open(self.vid, self.pid, interface=itf, serial=self.sn)
151+
self.usb.open(self.vid, self.pid, itf=itf, sn=self.sn)
152152
# get the interface information
153153
ver = self.get_version()
154154
assert ver['stlink_v'] == 2, 'only version 2 of stlink is supported'

target/rt1020.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828

2929
# cmsis-dap device
3030
default_itf = {
31-
'name': 'cmsis-dap',
32-
#'name': 'jlink',
31+
#'name': 'cmsis-dap',
32+
'name': 'jlink',
3333
}
3434

3535
#-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)