-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Setup:
- Custom board connected in a daisy chain running latest px4-autopilot firmware
- JLink Base connected with JTag_SWD Pins to custom board
- JlinkGDBServer started with -jtagconf command
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
