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

'Error: AP ApAddress { dp: Default, ap: 0 } is not a memory AP' while flashing nRF52840-DK #188

Open
nkrackow opened this issue Mar 30, 2022 · 2 comments

Comments

@nkrackow
Copy link

nkrackow commented Mar 30, 2022

Hi, I'm leaving this here in case anyone else is running into the same issue. I have not found much while googling.

Problem: Using cargo run --bin hello from within the beginner/apps folder finishes compiling and starts up probe-run. But then I get the following:

Running `probe-run --chip nRF52840_xxAA target/thumbv7em-none-eabihf/debug/hello`
(HOST) WARN  (BUG) location info is incomplete; it will be omitted from the output
Error: AP ApAddress { dp: Default, ap: 0 } is not a memory AP

The LED5 next to the FTDI chip on the DK goes off for a split second but no program is flashed.

Solution: It seems like my nRF52840-DK was shipped with the MCU in some kind of protected state. Using nrfjprog from the nRF command line tools you can run nrfjprog --recover which makes the MCU exit this state and programming etc. using probe-run works fine again.

@nkrackow
Copy link
Author

nrf-recover also works for this, just also erases the MCU program flash :)

@zoodirector
Copy link

Dear @nkrackow
Thanks so much for writing this down here! Had the same issue, could fix it with your note!

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

2 participants