We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
HELLO !
When I connect the target, the cpu is still working, and I want to stop the cpu. This function cannot be realized.
I hope you can help me.
static uint8_t swd_wait_until_halted(void) { // Wait for target to stop uint32_t val, i, timeout = MAX_TIMEOUT;
for (i = 0; i < timeout; i++) { if (!swd_read_word(DBG_HCSR, &val)) { return 0; } if (val & S_HALT) { return 1; } } return 0;
}
The text was updated successfully, but these errors were encountered:
I used your code to make an offline programming device, and the code debugging card is here.
Sorry, something went wrong.
No branches or pull requests
HELLO !
When I connect the target, the cpu is still working, and I want to stop the cpu. This function cannot be realized.
I hope you can help me.
static uint8_t swd_wait_until_halted(void)
{
// Wait for target to stop
uint32_t val, i, timeout = MAX_TIMEOUT;
}
The text was updated successfully, but these errors were encountered: