Skip to content

[Orbetto]: Running Orbetto on a FC with a daisy chain connection #6

@wico-merkel

Description

@wico-merkel

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:
image
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:
image
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.

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions