Skip to content
Snippets Groups Projects
Unverified Commit 45d5e010 authored by CNLohr's avatar CNLohr Committed by GitHub
Browse files

Merge pull request #214 from siuyin/bootload_minichlink

Update minichlink to not reset when writing bootloader.
parents aec6db47 94993182
No related branches found
No related tags found
No related merge requests found
......@@ -600,8 +600,14 @@ keep_going:
exit( -9 );
}
int is_flash = IsAddressFlash( offset );
if( MCF.HaltMode ) MCF.HaltMode( dev, is_flash ? HALT_MODE_HALT_AND_RESET : HALT_MODE_HALT_BUT_NO_RESET );
//if( MCF.HaltMode ) MCF.HaltMode( dev, is_flash ? HALT_MODE_HALT_AND_RESET : HALT_MODE_HALT_BUT_NO_RESET );
if( MCF.HaltMode && is_flash )
{
if ( offset == 0x1ffff000 ) MCF.HaltMode( dev, HALT_MODE_HALT_BUT_NO_RESET ); // do not reset if writing bootloader, even if it is considered flash memory
else MCF.HaltMode( dev, HALT_MODE_HALT_AND_RESET );
}
if( MCF.WriteBinaryBlob )
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment