Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Unable to find documentation on how to use JTAG for debugging Pixhawk 4 #836

Open
echoGee opened this issue Jul 14, 2019 · 12 comments
Open
Assignees

Comments

@echoGee
Copy link

echoGee commented Jul 14, 2019

Some of the pages that existed before is not available

https://pixhawk.org/dev/jtag/black_magic_probe
https://pixhawk.org/dev/jtag/start?s[]=arm&s[]=none&s[]=eabi&s[]=gdb
https://pixhawk.org/dev/gdb_cheatsheet?s[]=arm&s[]=none&s[]=eabi&s[]=gdb

@hamishwillee
Copy link
Collaborator

This is true. Though those docs were pretty much useless/out of date.

The story now is that you're better off using the Dronecode probe (a.k.a. Pixhawk probe) which is more or less the same as a black magic probe but with the dronecode connector: https://shop.titaneliteinc.com/index.php?route=product/product&product_id=1294

See

@julianoes I want to create a page on debug probes that all these other docs can point do. Do you think you we might be able to had a chat about this?

@echoGee
Copy link
Author

echoGee commented Jul 14, 2019

  1. Is dronecode probe a mix of JTAG for STM32 + an FTDI equivalent ?
  2. This page (https://dev.px4.io/v1.9.0/en/debug/system_console.html#connecting-via-dronecode-probe) mentions that its a serial interface. But it does JTAG too ?
  3. The above page does not mention connection info for Pixhawk 4 boards. Any documentation on how it connects to this board ?
  4. Is eclipse or qt the preferred IDE for pixhawk now ? The video (https://youtu.be/KZkAM_PVOi0?t=828 ) shows eclipse, but most documentation says eclipse isn't the officially supported.
  5. If any of the GUI/JTAG users record a 30 second video of how the IDE is being used, I think it would be very helpful. It could be stopgap till someone writes a good documentation page.

@hamishwillee
Copy link
Collaborator

Hi @echoGee

The above page does not mention connection info for Pixhawk 4 boards. Any documentation on how it connects to this board ?

http://docs.px4.io/master/en/flight_controller/pixhawk4.html#debug-port

Is eclipse or qt the preferred IDE for pixhawk now ? The video (https://youtu.be/KZkAM_PVOi0?t=828 ) shows eclipse, but most documentation says eclipse isn't the officially supported.

Neither. The IDE that we are moving to is VS Code. It isn't yet fully supported (only works on Linux) but it has the most "potential" and I know that Julian is using it for hardware debugging.

@Julian, can you help with 1, 2, 5. I'd love that video too, because it would make documenting much easier!

@echoGee
Copy link
Author

echoGee commented Jul 17, 2019

Hi @echoGee

The above page does not mention connection info for Pixhawk 4 boards. Any documentation on how it connects to this board ?

http://docs.px4.io/master/en/flight_controller/pixhawk4.html#debug-port

Is eclipse or qt the preferred IDE for pixhawk now ? The video (https://youtu.be/KZkAM_PVOi0?t=828 ) shows eclipse, but most documentation says eclipse isn't the officially supported.

Neither. The IDE that we are moving to is VS Code. It isn't yet fully supported (only works on Linux) but it has the most "potential" and I know that Julian is using it for hardware debugging.

@Julian, can you help with 1, 2, 5. I'd love that video too, because it would make documenting much easier!

@julianoes : Yes, this would help :)

@julianoes
Copy link
Contributor

Thanks for the note, yes I'm aware this needs improvement. To me this should all be in the dev guide and not in the user docs, right @hamishwillee?

@julianoes julianoes self-assigned this Jul 18, 2019
@hamishwillee
Copy link
Collaborator

@julianoes Yes, it should be in the devguide.

I have a PR for vscode in place, but I personally can't get SITL to run with it, so haven't released it. Once that is sorted was hoping to add info on using it with hardware debugging tools.

And hoping to create a page that pulls in all those examples on using various hardware probes into one place that the other docs link to.

@echoGee
Copy link
Author

echoGee commented Sep 11, 2019

@hamishwillee @julianoes : Could you kindly give an update on this ?

@hamishwillee
Copy link
Collaborator

hamishwillee commented Sep 11, 2019

No progress my side. @julianoes would be good to get a short video showing how to do this on vscode? I'm tempted to put my PR for the docs in and then iterate them via real world testing.

Note, there is another eclipse based PR for J-Link debugging here #864 - but it is still waiting on some clarifications like "how do I get the Pixhawk debug adaptor".

@echoGee note that Julian is on holiday until next week. I can only help document what I understand. I don't have any of the tools, so this relies on others/those who know to help.

@hamishwillee
Copy link
Collaborator

@julianoes

What do we need to know in order to create a VSCode hardware debugging topic?

Note, the problem with these docs is that they don't describe the physical connection to the debug port. Do you know how to do this for recent boards if you DONT have a Pixhawk Debug Adaptor board?

@julianoes
Copy link
Contributor

I'm going to tag @dinomani to help here.

@dagar
Copy link
Member

dagar commented Nov 14, 2019

Something simple describing the debug connector (similar to http://dev.px4.io/master/en/debug/system_console.html) would be helpful.

https://pixhawk.org/pixhawk-connector-standard/

image

Unfortunately there's quite a bit of variation between boards.

@hamishwillee
Copy link
Collaborator

hamishwillee commented Nov 15, 2019

@dagar I started the process in #893 with help from DavidS. There are a bunch of open questions - the most important ones being whether fmu 2 and 3 have a debug port, and what the connector and pinout is.

You could help by letting me know for sure what boards use the mapping above, and which for sure don't.

I'd also very much like a screenshot showing Pixhawk 4 connected to Segger Jlink mini edu via a simple cable. In theory this should just be as simple as lines between the ports - but I don't believe it until I see it (too many times bitten by the fact that there was "really" a resistor or similar required somewhere.

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

No branches or pull requests

4 participants