Hi,
I'm using NRF52832 custom board using NRF52 SDK V17.0.2, SES V5.4 and J-link tools V7.64d.
Whenever I build and program the device through Embedded Studio I get NRF_ERROR_INVALID_STATE error from nrf_sdh_enable_request(). Cycling the power on the device solves the issue.
I've seen several threads around that claim it's an issue with Build & Run command, and if using the download option from Target menu then it should run fine, however that is not the case for me. No matter the method I download I always start with that error.
If using Build & Debug and then stopping right away then it seems to run fine, however debug mode takes a while to start running and it's not a suitable solution.
The really annoying thing is that a colleague of mine is not experiencing this issue like I do despite both of us using the same versions of all of the tools. I've tried replacing J-Links and reinstalling SES and the problem persists.