-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Establish early communication with ITM #10
Comments
We need to get ahold of the architecture manual as well.. (note: created vkottler/ifgen#57 while working on this) |
So far we've added "fields" for one register: https://developer.arm.com/documentation/100166/0001/Instrumentation-Trace-Macrocell-Unit/ITM-Trace-Privilege-Register--ITM-TPR?lang=en Architecture manual available as PDF: https://developer.arm.com/documentation/ddi0403/ee |
Next step is to populate the rest of the register bit-fields for all of the other ITM registers, then try actually using the ITM. From there we should be able to bootstrap everything else (assuming we can get the SWO-based bi-directional comm working!) |
https://developer.arm.com/documentation/ddi0484/c/Debug/About-debug Doesn't seem like the M0+ has the debug interface/ITM, should we consider trying the Segger-specific RTT stuff? |
https://github.com/SEGGERMicro/RTT seems like the thing to check out |
Yep. Those examples are what I need to get working it seems. |
Big success on this branch: #9. Getting the "hello, world!" console spam: Using I think next we want to try the GDB port integration! |
Open question: is there a reading end of this ITM? That would be super legit, I don't think there is though. edit: but how do people say you can do semi-hosting with this, then? |
Even more recent success on this front: #11. I'd like to do a bit more tweaking so we can get this to true "one button workflow" level (figure out why we need to hit enter a few times when entering GDB + ensure that the program also starts with another |
Once this is complete, we can start trying to implement character handling + echo and stuff? Basically make an initial CLI. |
See this comment: #6 (comment). edit: we did also get output working via the ITM |
ARM documentation: https://developer.arm.com/documentation/100166/0001/Instrumentation-Trace-Macrocell-Unit?lang=en
I'm pretty sure we can use SWO viewer for this? https://wiki.segger.com/J-Link_SWO_Viewer
The text was updated successfully, but these errors were encountered: