Easy way to do hardware debugging?

Is there any way to debug the programs without soldering a header and buying a cable? I have a Xilinx Platform Cable and I don’t know if I can use it with the PEX connector (and femtoIDE).

There are some bugs in my game that doesn’t happen in the emulator…


I’m almost certain there is a way to do it through the PEX.
It’s discussed in a topic somewhere. (I’ll have a quick look to see if I can find it.)

Found it:

(Or part of it at least?)

I’ve only found this:

But I’m not sure if my cable works, and how to use it with femtoIDE :slight_smile:

There’s more information here:

But I think that might still only be part of the story.

Also check the comments, @Hanski made a nice PEX to SWD cable hack.

Yes, but it only covers doing it with Segger J-Link and EmBitz :slight_smile:

It does, but EmBitz uses GDB (GNU Debugger),
which is the thing that actually does the debugging.

Presumably Femto can also interface with GDB,
as @FManga mentions it in one or two comments in the Femto IDE thread, e.g. here:

Unfortunately I’m not quite sure how, but I expect someone else knows.

The rest of the process should be more or less the same,
interfacing with GDB via a J-Link or SWD interface, facilitated by the PEX to J-Link/SWD thing.

1 Like