Show Posts

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


Topics - Simon_CPU

Pages: [1]
1
ARM Cortex / .NET ERROR_UNSUPPORTED
« on: January 14, 2016, 02:57:18 am »
Dear All,

I am trying to flash by a Visual Basic (Visual Studio Express 2010) Program a LPC 1768 device

This is the code:

'**********************

Com_Option.baudrate = 115200
           
            'Com_Option.maxbaudrate = 230400
            Com_Option.osc = 4000000
            Com_Option.port = N_ser_intero

            Com_Option.halfduplex = 0
            Com_Option.highspeed = 0
            Com_Option.hwconfig = FlashMagicARMCortexNET.HardwareConfigurations.NONE
            Com_Option.usinginterface = 0
            Com_Option.interfacetype = FlashMagicARMCortexNET.Interfaces.NONE

            Com_Option.hwt1 = 240
            Com_Option.hwt2 = 120
            Com_Option.selecteddevice = FlashMagicARMCortexNET.Devices.LPC1768

            Erase_Type = FlashMagicARMCortexNET.EraseTypes.DEVICE


            Thread.Sleep(1000)


            Baudrate = FlashMagic_class.Connect(Com_Option)  'Here an exception rise up


'**********************

The last istruction rise up an exception, call it Exc
The message in the Exc.ToString is
"ERROR_UNSUPPORTED"

If i try to Flash the device by the Flash Magic Program the flash operation work well, without any error or warning..

Only in Vb the flash operation doesn't work, as above explained.

In the Solution Explorer i have added to the project the following files:

flashmagic.dll
flashmagic_microsoft.lib
flashmagicarm.dll
flashmagicarm_microsoft.lib
FlashMagicARMCortex.dll
FlashMagicARMCortexNET.dll
FlashMagicARMNET.dll
FlashMagicARMNET.XML
FlashMagicNET.dll
FlashMagicNET.XML

I copy these files from the Flash Magic PS NET directory (and DotNetAssemblies subdirectory too) so the version is the same, in this way all these files have the same version, as follow from the:

http://forum.flashmagictool.com/index.php?topic=4389.msg7008#msg7008 post

How can i fix this problem ?

Thank in advance!

Kind regards.

Simone

Pages: [1]