Skip to content
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

source level debugging? #7

Open
mark-hahn opened this issue Sep 16, 2020 · 0 comments
Open

source level debugging? #7

mark-hahn opened this issue Sep 16, 2020 · 0 comments

Comments

@mark-hahn
Copy link

I need to modify the protocol. Before I start any coding I wanted to see the existing code working in a debugger environment. But I can't figure out how to do source-level debugging.

This is what I've done so far ...

I compiled main.c into main.ihx. Then I programmed my stm8s003 using the stvp programmer with main.ihx. I verified that the data programmed matches the data in main.rst. I then started stvd with no workspace.

I can see the disassembled code and step through it, use breakpoints, etc. So I could debug using the asm. This would be quite painful. Is there a way do debug at the C source level? I would prefer to use stvd since that is what I use every day.

How is this normally done? Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant