nrf_sdh_enable_request() Invalid State issue

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.

Parents Reply
  • It does work with Command Line and nRF Programmer app, however we are using Bootloader and softdevice which means going through the process of merging the files each time and it's just such a hassle when debugging.

    About the pin reset, as I've mentioned everything works fine on my colleague's computer with the same exact board, cables and J-link - Which I can only assume means this is related to some setting

Children
Related