1
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)
3
Bus Pirate Development / Re: How to compile the v4+ firmware
4
Bus Pirate Development / Re: How to compile the v4+ firmware
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
6
Bus Pirate Development / Re: bootloader v4 console utility
Code: [Select]
Bus Pirate v3
Firmware v4.1 Bootloader v4.1
DEVID:0x0447 REVID:0x3003 (A3)
http://dangerousprototypes.com