Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
ARM Cortex / LPC11C14 CAN .NET Library
« Last post by b_bann on November 07, 2017, 02:20:35 am »
Could you please point me at a working example / documentation for using the .NET libraries to program over CAN.

The following code produces the Error : Operation Failed. reading signature (ERROR_CMD)

Code: [Select]
ESA.FlashMagic.ARMCAN.FlashMagicARMCAN Flash = new ESA.FlashMagic.ARMCAN.FlashMagicARMCAN();
            Flash.SelectDebugMode(ESA.FlashMagic.Common.DebugModes.ON, "C:/Data/FMdebug.fmd");           
            ESA.FlashMagic.Common.CANOptions opt = new ESA.FlashMagic.Common.CANOptions();

            opt.selecteddevice = ESA.FlashMagic.Common.Devices.LPC11C14301CAN;
            opt.interfacetype = ESA.FlashMagic.Common.CANInterfaces.PEAKUSB;
            opt.nodeid = 0x7D;
            opt.sdotimeout = 1000;
            opt.baudrate = 125;

            int n = 0;
            try
            {
                n = Flash.Connect(opt);
                string s = Flash.ReadSignature();
                MessageBox.Show(s);
            }
            catch (ESA.FlashMagic.Common.FMException Exc)
            {
                MessageBox.Show(Exc.ToString(), Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            if (n != 0)
            {
                Flash.Disconnect();
            }

Debug File :

Code: [Select]
debug> FlashMagicARMCAN Driver, Version 3.35.4841
debug> Windows version = <unknown> (6.3) build 9600,
debug> General configuration:
debug> Node ID = 0x7D
debug> SDO timeout = 1000 ms
debug> Nom Baudrate = 125 kbps
debug> Data Baudrate = 0 kbps
debug> Hardware config = 0x00000000, 0x00000000
debug> Device = LPC11C14/301
debug> Client aborted - 0x05040000
debug> Client aborted - 0x05040000
debug> Client aborted - 0x05040000
debug> Client aborted - 0x05040000
debug> Client aborted - 0x05040000
debug> Client aborted - 0x05040000

Dlls in application folder :

FlashMagicARMCANNET
FlashMagicCommonNET
FlashMagicARMCAN
ESACANopenPro
FlashMagic


The standalone FM gui connects and reads the device signature, so the hardware seems OK.

Any guidance gratefully received.

  Bob




22
General Discussion / Re: Bin file programming support
« Last post by Andy Ayre on November 01, 2017, 01:52:45 am »
Binary files are not support for LPC2000. Convert it to hex using a free utility such as bin2hex.

Andy
23
General Discussion / Bin file programming support
« Last post by utsav on October 31, 2017, 05:35:04 am »
Is Flash magic supports bin file programming?

 I need a working binary file that I can dump into my controller's(LPC2648) flash using inter application programming. I have generated a bin file but I am not sure whether it is correct. I need to verify this. If flash magic supports bin file programming, it will be helpful since I can validate the bin file by programming through it.
24
ARM Cortex / Re: LPC54608 returns invalid device ID
« Last post by Jacob3T on October 20, 2017, 06:39:55 am »
Hello,

here we have the same problem with the device ID signature on a development board with the same processor.
Flash magic does not read the expected device ID for the device but 0x54000.
The bootloader version returned is 19.1.

Communication with the device is done through a serial port (not the USB serial port on the board).
  • Baud rate : 9600
  • Interface : None (ISP)
  • Oscillator : <left blank>
I have tested the following command, each time overruling the device ID match warning:
  • Blank check succeeds with no error.
  • Erasing the flash succeeds with no error. (Flash is than reported as blank)
  • Display flash memory reports “operation failed”
  • Programming the flash ends with a verify error at address 0x1

Update:
When the flash is erased and than programmed, the firmware seems to work normally.

When monitoring the serial connection, the verification done is the same as when displaying flash memory.
As described above, the flash read fails.
25
LPC2xxx / Re: LPC2388 programs only once
« Last post by Andy Ayre on October 19, 2017, 02:51:21 am »
What exactly does the LPC2388 need to do to tell the 89LPC931 to keep it alive? Send data on the UART? Some other signal?
26
LPC2xxx / Re: LPC2388 programs only once
« Last post by PQPGuy on October 19, 2017, 02:39:33 am »
Andy,

Yes, there IS a power controller (89LPC931) that goes to sleep if it doesn't hear back from the device for 60 seconds.  Which FM setting (in the latest version) should I use to overrule this behavior?  I have the "use DTR and RTS to enter ISP mode" option checked and the "assert DTR and RTS while COM port is open" one unchecked.

Lowering the baudrate proved pointless.  Of course, I've tried this like one million times.

Many thanks.
27
LPC2xxx / Re: LPC2388 programs only once
« Last post by Andy Ayre on October 19, 2017, 02:31:19 am »
Also you might want to try lowering the baudrate and see if that helps. I've seen some devices struggle at 115200.
28
LPC2xxx / Re: LPC2388 programs only once
« Last post by Andy Ayre on October 19, 2017, 02:25:44 am »
This one appears to be from Flash Magic version 5.7x to 5.91, still very old. We can't support such old versions.

However I do see in your debug file that Flash Magic sends a line of data and the device fails to echo it back. Looks like the bootloader stopped responding while programming 0x40000000 -> 0x40000200.

Try removing the first 512 bytes from your hex file (you can do this manually in Notepad) or relocate all of your code to above 0x40000200 and re-test. If you can reliably program then it would seem to be a problem with programming/accessing the first 512 bytes of flash. If you can't then it might be a problem with the power supply to the device - would be helpful to know if it fails at random times or always the same block of memory.

Note that to provide further help it would need to be with the latest version of Flash Magic.

Andy
29
LPC2xxx / Re: LPC2388 programs only once
« Last post by PQPGuy on October 19, 2017, 02:14:14 am »
I must have uploaded the wrong file.  This should be the right one (see attached).
30
LPC2xxx / Re: LPC2388 programs only once
« Last post by Andy Ayre on October 19, 2017, 01:40:00 am »
I just looked again at your debug file.

The title of this topic is LPC2388, but your debug file shows you have selected LPC1754.

Also your debug file shows you are using an old version of Flash Magic, something like 6.31, but we are now on version 10.67...

Andy
Pages: 1 2 [3] 4 5 ... 10