Author Topic: ERROR_UNSUPPORTED failure of production .NET product code  (Read 2011 times)


  • Jr. Member
  • **
  • Posts: 9
    • View Profile
ERROR_UNSUPPORTED failure of production .NET product code
« on: June 16, 2015, 11:25:53 am »

Hi all,

Just purchased the .NET production version, and ran into a problem trying to incorporate in a program.

UPDATE:  Have now run the stock C# example code included with the purchase and it gave me the same error.

Quick question (hopefully)…I have created a form with some of your basic calls in a application.  Everything seems very straightforward, I’m using your example as the basis. 

When I try the “connect” method however, I get this error:

"Device does not support operation.  Only COM connections supported.  (ERROR_UNSUPPORTED)"

A quick look on your forum showed Andy asking another person with a similar issue if the two .dll’s were in the executable directory.  I’ve made sure that is the case (but this error is different from his in that it occurs under the debugger and under the executable).

The specific code that results in this error is:

Code: [Select]
            Dim Options As FlashMagicARMCortexNET.COMOptions = New FlashMagicARMCortexNET.COMOptions
            Dim Baudrateconnected As Int32

            If (gComPort Is Nothing) Then
                MessageBox.Show("No comm port is open or defined.  Cannot proceed.")
                Options.port = gComPort
            End If
            Options.baudrate = 115200
            Options.halfduplex = 0
            Options.highspeed = 0
            Options.hwconfig = HardwareConfigurations.BOOTEXEC
            Options.interfacetype = Interfaces.NON
            Options.hwt1 = 240
            Options.hwt2 = 120
            Options.maxbaudrate = 115200
            Options.osc = 12.0

            Options.selecteddevice = Devices.LPC131301

            Options.usinginterface = 0
            Options.flashbank = 0
            Options.protocoloptions = ProtocolOptions.AUTOLF

                'Connect to it
                Baudrateconnected = FlashMagicCortex.Connect(Options)

            Catch ex As FMException
                MessageBox.Show(ex.ToString, Application.ProductName,MessageBoxButtons.OK, MessageBoxIcon.Error)
            End Try
        Catch ex As Exception

       End Try

Any ideas or help you could provide would be greatly appreciated…



  • Jr. Member
  • **
  • Posts: 9
    • View Profile
Re: ERROR_UNSUPPORTED failure of production .NET product code
« Reply #1 on: June 16, 2015, 02:27:11 pm »
Andy has pointed out that Windows sometimes finds old versions of the .dll's.  Find and remove them first...
Thanks Andy!