question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pyocd-flashtool doesn't work at all with RPiv3

See original GitHub issue

pyocd-flashtool doesn’t list any devices I’ve connected. Instead mbedls works fine. pyocd was clean clone from head of master and installed with command python setup.py develop .

This might be similar issue than #241, and there was mention that #262 should fix the problem, but I’ve still problem.

What I used:

~/pyOCD/ $ git rev-parse HEAD
48610ba219264d5306fa68bef2cd4ca89ef82067
$ uname -a
Linux raspberrypi 4.4.26-v7+ #915 SMP Thu Oct 20 17:08:44 BST 2016 armv7l GNU/Linux`

What happens:

~/pyOCD/ $ pyocd-flashtool -l -d debug
DEBUG:root:Exception getting product string: The device has no langid
DEBUG:root:Exception getting product string: The device has no langid
DEBUG:root:Exception getting product string: The device has no langid
DEBUG:root:Exception getting product string: The device has no langid
DEBUG:root:Exception getting product string: The device has no langid

$ mbedls
mbedls -j
[
    {
        "daplink_auto_reset": "0",
        "daplink_automation_allowed": "0",
        "daplink_daplink_mode": "Interface",
        "daplink_git_sha": "eab079b8a1326f0a3647e3df33cf5dda13994a1f",
        "daplink_hic_id": "97969900",
        "daplink_interface_crc": "0xdd5ee0ec",
        "daplink_interface_version": "0242",
        "daplink_local_mods": "0",
        "daplink_unique_id": "0240000034544e45004b00018aa9001d2011000097969900",
        "daplink_usb_interfaces": "MSD, CDC, HID",
        "daplink_version": "0242",
        "mount_point": "/mnt/platform-3f980000_usb-usb-0_1_3_3_1_0-scsi-0_0_0_0",
        "platform_name": "K64F",
        "platform_name_unique": "K64F[0]",
        "serial_port": "/dev/ttyACM2",
        "target_id": "0240000034544e45004b00018aa9001d2011000097969900",
        "target_id_mbed_htm": "0240000034544e45004b00018aa9001d2011000097969900",
        "target_id_usb_id": "0240000034544e45004b00018aa9001d2011000097969900"
 },
 ...
....

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
jupecommented, Dec 12, 2016

running with sudo in linux seems to work. So issue here is just lack of documentation. Please add some mention that this needs sudo access when running in linux and introduction how to run without sudo .

0reactions
c1728p9commented, Feb 11, 2017

Closing this issue since it is a duplicate of #267. Please re-open if this is not the case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pyocd-flashtool doesn't work at all with RPiv3 #270 - GitHub
pyocd -flashtool doesn't list any devices I've connected. Instead mbedls works fine. pyocd was clean clone from head of master and installed ...
Read more >
pyocd - PyPI
pyOCD is an open source Python based tool and package for programming and debugging Arm Cortex-M microcontrollers with a wide range of debug...
Read more >
[URGENT] Adding Flash plug-in to Chromium - Ubuntu 19.10 ...
Since the Pi uses an ARM processor, that obviously won't work! There is a plug-in called PepperFlash, but that project appears completely ...
Read more >
pyOCD support missing? - Question - Mbed
Resolved the issue of pyocd not working, despite having a merge saying 'adds python ... redownloaded it for python 2 and it runs...
Read more >
Unbrick MAX32660 that is programmed to drive SWD pin?
Also see if the vendor flash loader tool has any special modes, ... then try to do SWD; if that doesn't work, try...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found