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

A7/S5L8960 swd only working partially #17

Open
VDavid003 opened this issue Jul 31, 2023 · 3 comments
Open

A7/S5L8960 swd only working partially #17

VDavid003 opened this issue Jul 31, 2023 · 3 comments

Comments

@VDavid003
Copy link

Not sure if this issue belongs here or the bonobo configs repo, don't have a bonobo cable to test this with.
I'm using an iPhone 5s (N53, iphone6,2) and it seems like jtag/swd debugging only works partially.

If I connect openocd with the unmodified s5l8960x config, the phone instantly shows the apple logo and starts booting up.
I figured out that if I remove the 2nd core from the config, leaving only the first in place, openocd kind of works.
I can read memory, step inside assembly but breakpoints and watchpoints seem to be just broken.
Setting a breakpoint "works" but they never get hit, seems like they are just ignored.
Setting a watchpoint (awatch) makes stepping or continuing not work returning this:

(gdb) si
Warning:
Could not insert hardware watchpoint 1.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

Command aborted.

Anyone else experiencing these problems on A7?
Would be great if breakpoints/watchpoints worked along with the 2nd core.

@chris-pcguy
Copy link

Already had that issue with A9 and the bonobo cable.
Make the "dbgwrap"-variable use uint32_t and the write that uses the "dbgwrap"-variable use a sizeof uint32_t instead uint64_t.
That fixed it for me on both cables.

@nezza
Copy link
Contributor

nezza commented Jan 10, 2024

Super interesting, thanks @chris-pcguy - I don't have a device to test with unfrotunately but would love to add a patch for this

@hammersSq
Copy link

Hi @VDavid003, I'm having your same problem. At the end did you have full working openocd on S5L8960? If yes how did you do?
Thanks in advance for you answer!

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

4 participants