-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Orbetto]: Running Orbetto on a FC with a daisy chain connection #6
Comments
. |
The issue is that the default
If you can somehow get at pin PB3, you get at least SWO out, which will give you 90% of the benefit already. Your JLink Base also supports SWO input up to 30Mbps, which is quite reasonable, so you don't need a ORBTrace.
Not in parallel, I think what you read from the FIFO in software is not put on the trace pins anymore. But you can use SWO and TRACE in parallel. |
Setup:
Problem Description:
I am trying to get the tracing output on a custom flight controller board running a version of the px4-autopilot code. The documentation only mentions the --jlink and --stlink option, but not the --remote. Since I am having a daisy chained MCU, I need to use the --remote with JLinkGDBServer to setup my JTAG scan chain (at least I do not know how to do it otherwise). So one terminal runs the JLinkGDBServer and another one gdb:
% python3 -m emdbg.bench.fmu --target cubepilot_cubeorange_default --remote localhost:2331
Now I run into the following two issues:
Problem 1:
I think I entered this functionand px4_reset is not defined in this context. If I manually add the px4_reset, identical to the one in jlink.gdb, I run into the second issue.
Problem 2:
I think we are never reaching the breakpoint nx_start since the reset did not work correctly.
Is there a way to get this working for the "--remote" option as well? Or are we limited here to the --jlink or --stlink version?
I also have some general question regarding the setup, I hope this is the right place for them too.
As far as I understand, replacing the ORBTrace with a JLink Base or any other debugger should not have a impact as long as the JTDO pin is connected to it, e.g. this means the nostalgic Cube Orange Flight Controllerswould not be supported, since they only have the mini debug port. But with the SWD port we only have the 4kB FIFO buffer for our tracing data. Is that correct?
And I also wonder if the software differentiates between the different output options (big red circle, SWD vs SWO). The command used only mentions enable trace, am I correct that both tracing options work in parallel?
Thanks for you help in advance. I am looking forward to get this tool working and giving it a test run.
Regards,
Kevin
The text was updated successfully, but these errors were encountered: