Dynomotion

Group: DynoMotion Message: 11780 From: brad murry Date: 6/25/2015
Subject: Device Driver Signing
http://www.codeproject.com/Tips/1003158/How-to-Sign-Device-Drivers-with-WDK

Might make things easier to run.

From: Tom Kerekes tk@... [DynoMotion]
Sent: ‎6/‎25/‎2015 2:20 AM
To: DynoMotion@yahoogroups.com
Subject: Re: [DynoMotion] Re: Flashing firmware from application [5 Attachments]

 
[Attachment(s) from Tom Kerekes included below]

Hi Gerald,

I was able to get it to work.  I suspect your issue is with the Long/short/Integer mixups. 

I changed the Jogger example to Check for Thread = -1 as a Key to flash a .out file.

Here is the success (running Version 4.33i and Flashing 4.33f):

Inline image

Here is the new code in "Compile Load Coff"


    Private Sub CompileLoadCoff_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CompileLoadCoff.Click
        Dim Err As String = "Bad File"
        Dim result As Integer

        If CThread.Text = -1 Then
            result = KM_LoadCoff(CThread.Text, CFile.Text, 1)
            If (result = 0) Then
                result = KM_WriteLineWithEcho("ProgFlashImage")
            End If
            Do
                result = KM_CheckForReady(0)
            Loop While (result <> 2)
            result = 0
        Else
            result = KM_CompileAndLoadCoff(CThread.Text, CFile.Text, Err, 250)
        End If


        If (result = 0) Then
            CompilerOutput.Text = "No Errors"
        Else
            CompilerOutput.Text = Err
        End If
    End Sub


I'll attach the changed files:

HTH
Regards
TK