-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Support SWO trace. #259
Comments
This is not supported in mbed yet, but would be very useful |
Well, first you need hardware that supports SWO. Not much point in adding the firmware support if the SWO signal isn't connected to the HIC. Which is why it hasn't been done yet. |
In the future, will mbed DAPlink support SWO trace? When? |
It looks like the NUCLEO- boards have T_SWO wired. I've started cracking at the -F429ZI board. It looks like there may be a k26f reference implementation. The main thing so far appears to be the need for the ARM USART Driver wrapper for the interface. |
That's correct. The SWO commands are supported now in the core CMSIS-DAP code. As long as you have a CMSIS USART driver for the HIC, it should be quite straightforward to enable. I think the Keil CMSIS-Packs for STM32 provide CMSIS-Driver implementations. See https://www.keil.com/dd2/pack/ to download packs (rename .pack to .zip to extract). |
@flit Thanks for the tip! I just put that in there and now I'm crashing windows BSOD style. =) I just had a realization and a moment of confusion. What are we forwarding the T_SWO information to? I can see that there are options to get back to the host:
CMSIS-DAP v1 may have a bandwidth issue. I do not know the limits of HID, though I would suspect that may be an issue for 8+ MHz half-duplex serial in addition to debugging information. Same with CDC unless arbitrarily high baud rates are supported host/client-wise. SWO line of interface chip on NUCLEO is interesting. I think it could be possible to get to PB3 from JP1 and the intended function PWR-EXT. The downside being that it would require another debugger. That pretty much kills that idea. So CMSIS-DAP v2 seems like the ideal transport. Debug information from the debugger. It would make more sense for unit hardware testing and other application development processes needing a tight turnaround on target executed results. Okay, back to the topic at hand. I filled out the RTE_Device.h to
Pretty reliably get windows 7 BSOD. Are there any ways to contain that more gracefully? Cheers, edit: BSOD occurs after flashing the Main Firmware for the interface-to-target in MAINTENANCE mode. I suspect as it attempts to re-connect. It does appear to at least mount on OS X. Here is the contents of the DETAILS.TXT:
CMSIS-DAP is dead as openocd can no longer interrogate the target. Flashing an Mbed binary appears to copy to the MSC device, resets, then we get these files with a no longer running target: ASSERT.TXT
DETAILS.TXT is the sameFAIL.TXT
|
CMSIS-DAP firmware needs to be version V1.10 or newer to support SWO trace. How to get version V1.10 or newer to support SWO trace?
The text was updated successfully, but these errors were encountered: