Main Menu
Menu

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.

Show posts Menu

Messages - b_bann

#1
ARM Cortex / Re: LPC11C14 CAN .NET Library
November 08, 2017, 01:20:32 AM
SOLVED : User error : RTFM.

That bootloader requires a speed of 100k rather than the 125k I was attempting.

Everything is OK now.

Thanks for your help.
#2
ARM Cortex / LPC11C14 CAN .NET Library
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)

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 :

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




#3
ARM Cortex / Re: LPC11C14/301 Command Line Script
October 17, 2011, 05:30:31 AM
All these issues have been resolved in V5.92.

Many thanks for your help Andy,

   Bob
#4
ARM Cortex / Re: LPC11C14/301 Command Line Script
October 13, 2011, 03:29:58 AM
Sent again 13th Oct 2011. Sent to support_at_esacademy_dot_com.
Sent a second copy from a different address.
#5
ARM Cortex / Re: LPC11C14/301 Command Line Script
October 12, 2011, 01:32:15 AM
Debug file emailed to "support" on 5th October
#6
ARM Cortex / Re: LPC11C14/301 Command Line Script
September 30, 2011, 04:40:39 AM
Many Thanks,

I can now successfully erase the device, but the programming step still fails

Sending


CAN(PEAK PCAN USB, 100, 0x7D, 1000)
DEVICE(LPC11C14/301CAN, 12.000000)
ERASEUSED(cortex.hex, PROTECTISP)
HEXFILE(cortex.hex, NOCHECKSUMS, NOFILL, PROTECTISP)


gives


Flash Magic Version 5.91.2465
8051/XA Driver Version 2.79.2440
ARM UART Driver Version 2.18.2440
ARM Cortex UART Driver Version 1.52.2465
ARM Ethernet Driver Version 1.09.2440
ARM CAN Driver Version 1.09.2440
(C) Embedded Systems Academy 2000-2011 All rights reserved
NON PRODUCTION USE ONLY
Connected
Device selected
Erase complete (USED)
Hex file programming failed: invalid command (cortex.hex)


The file successfully loads using the GUI, so I know it's good.

Am I missing something obvious?

  Cheers,

       Bob
#7
ARM Cortex / LPC11C14/301 Command Line Script
September 27, 2011, 07:26:42 AM
I can use FlashMagic V5.91 GUI to successfully program my LPC11C14/301 via a PCAN USB.

I am struggling to get a working script to program it on the command line.

"Save Command Line Directives" gives me the following script:

COM(0, 9600)
DEVICE(LPC11C14/301 CAN, 0.000000)
ERASEUSED(C:\Firmware\Luci\Cortex\Luci_Cortex_V1_01.hex, PROTECTISP)
HEXFILE(C:\Firmware\Luci\Cortex\Luci_Cortex_V1_01.hex, NOCHECKSUMS, NOFILL, PROTECTISP)


Line 1 fails (not surprisingly) so I deleted it.
Line 2 fails with "unknown device", so I deleted the whitespace before "CAN".

This gives me the following script:

DEVICE(LPC11C14/301CAN, 12.000000)
ERASEUSED(C:\Firmware\Luci\Cortex\Luci_Cortex_V1_01.hex, PROTECTISP)
HEXFILE(C:\Firmware\Luci\Cortex\Luci_Cortex_V1_01.hex, NOCHECKSUMS, NOFILL, PROTECTISP)


I now get "Connection failed: comms error".

Is there an undocumented command to set up the CAN communication parameters?

Any help gratefully received,   

  Bob