16
Bus Pirate Development / Re: Bootloader v4 (ds30 Loader)
The svn is updated and the binaries can be found here:
http://mrmackey.no-ip.org/elektronik/ds ... loader.zip
edit: maybe you should lock the advanced setting to true?
Open Source Hardware
This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.


.equ BLPROT, 'P' /*bl protection tripped*/
;bra vfail ;Main ;fail silently
SendL BLPROT
bra main1
public const char cBlProtTrip = 'P';
//---------------------------------------------------------------------
// ProcessWriteResponse()
//---------------------------------------------------------------------
static private void ProcessWriteResponse( clsSerialPort pobjPort, ref int piRetries, int piTabLevel, string pstrWriteType, ref bool pbRetry, ref bool pbResult )
{
int iResponse = -1;
pbResult = false;
// Get response
bool bGetResponseResult = false;
iResponse = GetResponse( pobjPort, ref bGetResponseResult );
if ( bGetResponseResult == false ) {
return;
}
// Check response
if ( iResponse != cOK ) {
if ( ++piRetries == 3 ) {
OnDownloading( new clsDownloadingEventArgs(clsDownloadingEventArgs.EventType.error, "download failed", -1) );
return;
} else {
if ( iResponse == cChecksumErr ) {
OnDownloading( new clsDownloadingEventArgs(clsDownloadingEventArgs.EventType.error, "checksum error," + piRetries.ToString() + " try", -1) );
pbRetry = true;
} else if ( iResponse == cVerifyErr ) {
OnDownloading( new clsDownloadingEventArgs(clsDownloadingEventArgs.EventType.error, "verify error," + piRetries.ToString() + " try", -1) );
pbRetry = true;
} else if ( iResponse == cBlProtTrip ) {
OnDownloading( new clsDownloadingEventArgs(clsDownloadingEventArgs.EventType.error, "bl protection tripped", -1) );
pbRetry = false;
return;
} else {
OnDownloading( new clsDownloadingEventArgs(clsDownloadingEventArgs.EventType.error, "unknown response," + piRetries.ToString() + " try", -1) );
pbRetry = true;
}
OnDownloading( new clsDownloadingEventArgs(clsDownloadingEventArgs.EventType.info, "Writing flash...", piTabLevel) );
}
} else {
pbRetry = false;
}
pbResult = true;
}// ProcessWriteResponse()