You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I will shortly have a target board which runs mbed-os but does not include a debug chip, just a raw SWD interface (with the optional SWO pin). I have tested all of my code in advance on Mbed boards that do have a debug chip but I would quite like to be able to run the tests on the actual target board also. I have a hacky plan for doing this (see below), I was wondering if there is a better/more standard way of achieving my aim?
My plan for doing this is as follows:
Use the hooks in htrun to download code and reset the board via JLink, something like I already did here and here.
Present the SWO output from the board as a virtual COM port by wrapping Segger's JLink SWO app in a C# application along the lines of this.
Hack the target test code to not expect a sync preamble and make my virtual COM port code automatically respond to a preamble when it sees that the target has started in order to get the tests going.
Start the PC side up first, then start the target side and hope the timings all work out and it hangs together :-).
This doesn't have to be hugely reliable/repeatable but it remains a useful thing for me to be able to do during integration and every so often thereafter.
Rob
Issue request type
[x] Question
[ ] Enhancement
[ ] Bug
The text was updated successfully, but these errors were encountered:
Description
I will shortly have a target board which runs mbed-os but does not include a debug chip, just a raw SWD interface (with the optional SWO pin). I have tested all of my code in advance on Mbed boards that do have a debug chip but I would quite like to be able to run the tests on the actual target board also. I have a hacky plan for doing this (see below), I was wondering if there is a better/more standard way of achieving my aim?
My plan for doing this is as follows:
htrun
to download code and reset the board via JLink, something like I already did here and here.This doesn't have to be hugely reliable/repeatable but it remains a useful thing for me to be able to do during integration and every so often thereafter.
Rob
Issue request type
[x] Question
[ ] Enhancement
[ ] Bug
The text was updated successfully, but these errors were encountered: