-
Notifications
You must be signed in to change notification settings - Fork 479
Unable to find documentation on how to use JTAG for debugging Pixhawk 4 #836
Comments
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? |
|
Hi @echoGee
http://docs.px4.io/master/en/flight_controller/pixhawk4.html#debug-port
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 :) |
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 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. |
@hamishwillee @julianoes : Could you kindly give an update on this ? |
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. |
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? |
I'm going to tag @dinomani to help here. |
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/ Unfortunately there's quite a bit of variation between boards. |
@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. |
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
The text was updated successfully, but these errors were encountered: