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

Fix for halt on connect and disconnect resume #304

Merged
merged 2 commits into from
Jul 28, 2018

Conversation

flit
Copy link
Member

@flit flit commented May 6, 2017

The halt on connect and disconnect resume features were broken due to the options not being properly passed down to the CortexM instance, and the change to clear the DHCSR upon disconnect. This changeset does just that.

When a core is added in CoreSightTarget.add_core(), the halt on connect setting to set on the new core instance. (add_core() is expected to be called before the core is inited.)

For disconnect resume, the code in Board.uninit() to resume the target was removed. Instead, the resume parameter is passed to the target's disconnect() method, which passes it to CortexM.disconnect() for each core. The core will not clear DHCSR if resume is not requested.

This change includes a comprehensive test for these features.

@c1728p9
Copy link
Collaborator

c1728p9 commented Jul 7, 2017

/morph test

@c1728p9
Copy link
Collaborator

c1728p9 commented Jul 7, 2017

This PR is failing on all non-Kinetis devices - lpc1114, lpc4088dm, lpc824, nrf51.

@flit flit force-pushed the dev_halt_resume branch from e220251 to 0982d46 Compare July 8, 2017 16:47
@flit
Copy link
Member Author

flit commented Jul 8, 2017

Thanks. I'll look into it. Do you have any details about the failures?

@c1728p9
Copy link
Collaborator

c1728p9 commented Jul 8, 2017

It was failing only on the ConnectTest for those targets. I don't have access to the logs now so I can't give much more detail.

@flit
Copy link
Member Author

flit commented Jul 8, 2017

Alright, thanks. I'll see if it fails on the LPC1768.

@flit
Copy link
Member Author

flit commented May 14, 2018

/morph test

@flit flit force-pushed the dev_halt_resume branch from 0982d46 to 1df0f8b Compare June 23, 2018 18:47
@flit flit force-pushed the dev_halt_resume branch 2 times, most recently from 50efd6b to 8e79a23 Compare July 28, 2018 18:55
@flit
Copy link
Member Author

flit commented Jul 28, 2018

/morph test

flit added 2 commits July 28, 2018 15:12
- Control over halt on connect and disconnect resume was broken because
  the option flags were not being passed to the CortexM class.
@flit flit force-pushed the dev_halt_resume branch from 8e79a23 to 477f82c Compare July 28, 2018 20:13
@flit
Copy link
Member Author

flit commented Jul 28, 2018

/morph test

@flit
Copy link
Member Author

flit commented Jul 28, 2018

CI results: Mac passed, Linux passed except for a device that's currently stuck in bootloader, Windows build machine is nonfunctional and failing.

@flit flit merged commit b2a31be into pyocd:master Jul 28, 2018
@flit flit deleted the dev_halt_resume branch June 23, 2019 21:10
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

Successfully merging this pull request may close these issues.

2 participants