Skip to main content

Messages

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.

Messages - chiaznal

17
Bus Pirate Development / Re: Bootloader v4 (ds30 Loader)
Sounds good! :)
I merged alex's addon. But I couldn't keep my fingers away, I expanded it
with default values for all settings + allow flags as I suggested earlier (twice) =)

Added an information output when switching to basic mode. Good suggestion!
Maybe there should even be a messagebox with yes/no buttons...

Also I'm not the best friend with svn at the moment. I've started all over
on the ds30 Loader trunk.

Your last line, thats towards  sjaak right?

btw, is there any can module or something to the pirate?
btw2, why is there no smileys in the forum?
18
Bus Pirate Development / Re: Bootloader v4 (ds30 Loader)
alex: your concern is correct. May I suggest my own suggestion again? :)
A separate distribution file containing all fields from recentfile.xml and also for every field
there's a tag saying if the user is allowed to change, example:
COM1
true
115200
false

Ah, I thought you meant to include the ghelper source. What you suggested is great, I've implemented that now!
19
Bus Pirate Development / Re: Bootloader v4 (ds30 Loader)
ian: that line doesn't reset the device, it just resets the stack pointer. If we would reset after comm. timeout, we would NEVER get to the user application.

nice job alex!
1. Great you found it, I solved it slightly differently, setting objHex to null if parse failed in DoParse(). I also added some code in repaint to draw a cross if objhex=null.
2. As Ian wrote, settings are reseted because they're not visible.
3. (There's also the pic side protection)
4. I think that was already fixed in the version you got. Check leave events of the textboxes
5. -
6. Fixed what I think is a better structure with a single solution. But the ghelper won't go in it.
7. The settings will be applied.
8. I'm working on a svn server, test it here:
https://mrmackey.no-ip.org:444/svn/ds30 ... k/pc-side/
l: guest
p: G
9. -
20
Bus Pirate Development / Re: Bootloader v4 (ds30 Loader)
Hi,
I was looking at the bootloader protection, you don't need that 2nd check. The first one catches both erase and write operations in the bootloader area.

Instead of bra vfail you could add a new response:
Code: [Select]
		.equ	BLPROT,		'P'										/*bl protection tripped*/

;bra vfail ;Main ;fail silently
SendL BLPROT
bra main1

Here's the changed code that goes into c# engine to handle the new bl protection response. I will include this in the next official release.
Code: [Select]
        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()

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01342320872session_write_close ( )...(null):0
20.01372452488ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01372453264Database_MySQL->query( ).../DatabaseHandler.php:119
40.05662592016Database_MySQL->error( ).../Db-mysql.class.php:273