-
Installed pyOCD
-
Installed pyinstaller
-
Created gdb_server file from post installation instructions
-
Attempted to run basic_test.py python script but encountered the following error
user@ubuntu:/mnt/hgfs/mbed/pyOCD-master/test$ python basic_test.py Traceback (most recent call last): File "basic_test.py", line 48, in board = MbedBoard.chooseBoard() File "/mnt/hgfs/mbed/pyOCD-master/pyOCD/board/mbed_board.py", line 150, in chooseBoard all_mbeds = MbedBoard.getAllConnectedBoards(transport, False, blocking, target_override) File "/mnt/hgfs/mbed/pyOCD-master/pyOCD/board/mbed_board.py", line 104, in getAllConnectedBoards all_mbeds = INTERFACE[usb_backend].getAllConnectedInterface(mbed_vid, mbed_pid) File "/mnt/hgfs/mbed/pyOCD-master/pyOCD/interface/pyusb_backend.py", line 71, in getAllConnectedInterface config = board.get_active_configuration() File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 825, in get_active_configuration return self._ctx.get_active_configuration(self) File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 211, in get_active_configuration self.managed_open() File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 106, in managed_open self.handle = self.backend.open_device(self.dev) File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 778, in open_device return _DeviceHandle(dev) File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 640, in init _check(_lib.libusb_open(self.devid, byref(self.handle))) File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 592, in _check raise USBError(_strerror(ret), ret, _libusb_errno[ret]) usb.core.USBError: [Errno 13] Access denied (insufficient permissions)
-
Flashed mbed board to firmware mbedmicrontroller_141212
-
Unplugged and replugged the mbed board
-
New firmware updated automatically
-
Activated mbed USB microcontroller via Removable Devices in VMplayer
-
mbed files from the microcontroller initially did not appear in VMplayer initially but ultimately does appear after some troubleshooting
-
Retried to run python script basic_test.py in the test directory of pyOCD, but the same USB error appears below usb.core.USBError: [Errno 13] Access denied (insufficient permissions)
-
Ran the same python script with sudo user@ubuntu:/mnt/hgfs/mbed/pyOCD-master/test$ sudo python basic_test.py
-
Script runs but is waiting for USB device even though the mbed board is already connected INFO:root:Waiting for a USB device connected
-
Notifications
You must be signed in to change notification settings - Fork 0
pyhung/HW4
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published