Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - EGHM

2
Bus Pirate Development / Re: new branch in the svn (newterm)
Cool.  I read a bit of r307.  I was thinking it may have been a bit easier to follow the initial changes if newterm had first been committed with the existing version of the files and then the next commit the changes you made.  Using TortoiseSVN I copied the existing files into newterm and used diff just reading in the other direction to follow along.  No huge deal, maybe next time?  It certainly doesn't decrease my appreciation of your contributions to the project.  Thanks.
4
Bus Pirate Development / Re: How to compile the v4+ firmware
Doing a lot of compiling of the firmware yesterday, I got rather tired of doing it all by hand, so today, I created a AutoIt v3 script to automate the process for what I was doing (which is using MPLAB as a compiler and exporter NOT as an editor):

Code: [Select]
Opt("WinTitleMatchMode", 2)

$titleText = "busPirate - MPLAB IDE"

$usage = '4 required paramaters, 1 optional parameter.  Parameters with spaces must be in double quotes.' & @CRLF
$usage = $usage & @CRLF & 'Usage Example: "C:Program FilesAutoIt3AutoIt3.exe"  E:BPSVNscriptsMPLAB.au3'
$usage = $usage & '"C:Program FilesMicrochipMPLAB IDECoreMPLAB.exe" "C:Program FilesMicrochipMPLAB IDECore"'
$usage = $usage & 'E:BPSVNsourceBP.hex 32000 60' & @CRLF & @CRLF
$usage = $usage & '1. fullpath to exe: "C:Program FilesMicrochipMPLAB IDECoreMPLAB.exe"' & @CRLF
$usage = $usage & '2. statup dir: "C:Program FilesMicrochipMPLAB IDECore"' & @CRLF
$usage = $usage & '3. output hex fullpath: E:BPSVNsourceBP.hex' & @CRLF
$usage = $usage & '4. time to wait for build to complete in milliseconds: 32000' & @CRLF
$usage = $usage & '5. option dialog box times in seconds: 60'
If ($CmdLine[0]  < 4) Then
MsgBox(4096, "Usage", $usage)
ConsoleWrite($usage)
EndIf

$msgTimeout = 0;
If ($CmdLine[0] == 5) Then $msgTimeout = $CmdLine[5]

$exe_array = StringRegExp($CmdLine[1], ".*\(.*exe)?", 1)
$wait = Number($CmdLine[4])

Run($CmdLine[1], $CmdLine[2])
WinWaitActive($titleText)
Sleep(1000)
Send("^{F10}",0)
Sleep($wait)
$text = WinGetText ( $titleText , "Output" )
If Not(StringInStr($text, "BUILD SUCCEEDED")) Then
MsgBox(4096, "busPirate build NOT successful.", "busPirate build NOT successful.", $msgTimeout)
Exit
EndIf
Send("!Ft", 0)     ; File - > Export
Sleep(1000)
Send("{TAB}", 0)
Send("{TAB}", 0)
Send("0xa7ff")    ; Program memory end
Send("{TAB}", 0)
Send("{TAB}", 0)
Send("{TAB}", 0)
Send("{SPACE}", 0) ; uncheck Configuration Bits checkbox
Send("{ENTER}", 0); click Ok button
Sleep(1000)
Send($CmdLine[3])
Sleep(1000)
Send("{ENTER}", 0)
Send("{TAB}", 0)  ; Overwrite existing file
Send("{ENTER}", 0); Overwrite existing file
Sleep(5000)
Send("!Fx", 0)     ; File - > Exit
ProcessWaitClose ( $exe_array[0])
MsgBox(64, "AutoIt BP build and export complete", "AutoIt BP build and export complete", $msgTimeout)
5
DIY Life projects / Re: Free PCBs
Something like this is on my short list of projects, if you've still got some of these I would love to have one.  I'm in the US (California) and have paypal.  Thanks.
6
Bus Pirate Development / Re: bootloader v4 console utility
Thank you, I much prefer command line and wasn't looking forward to installing Mono.  osx_ppc worked great for upgrading my v3.  Haven't tried with my v2go yet, currently using it for AVR.
Code: [Select]
Bus Pirate v3
Firmware v4.1 Bootloader v4.1
DEVID:0x0447 REVID:0x3003 (A3)
http://dangerousprototypes.com

( ! ) 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.01372325848session_write_close ( )...(null):0
20.01402457424ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01402458200Database_MySQL->query( ).../DatabaseHandler.php:119
40.05902596912Database_MySQL->error( ).../Db-mysql.class.php:273