Recent Posts

Pages: 1 2 [3] 4 5 ... 10
LPC2xxx / Re: LPC2294 .NET Cant Connect
« Last post by LittleBit on July 17, 2018, 07:22:55 am »
Thank you, with the right assembly its working fine.
LPC2xxx / Re: LPC2294 .NET Cant Connect
« Last post by Andy Ayre on July 17, 2018, 06:18:00 am »
LPC2294 is an ARM7 not an ARM Cortex device. You are using the wrong .NET assembly.
ARM Cortex / Re: LPC 1549 - ISP options not working
« Last post by Andy Ayre on July 17, 2018, 06:13:54 am »
If an item on the ISP menu is disabled then it isn't supported by the bootloader in the part.

The File -> Save As option supports more than 64kb. Note that for the LPC1549 the flash memory range is 0x00000000 -> 0x0003FFFF. The File -> Save As option only supports saving the contents of Flash memory.

LPC2xxx / LPC2294 .NET Cant Connect
« Last post by LittleBit on July 12, 2018, 12:27:15 am »
Hello everyone

Currently i try to automate the Programming of a LPC2294 with the .NET Library from Flash Magic. When i use the FM Program with the GUI everything works fine, the device responds and can be programmed but with the .NET Library i cant connect to the Device. Even modifying the parameters described in this Post didnt help.

Am i missing a difference in the Configuration or something important to consider?

Here is the C# Code to Connect (not working)
Code: [Select]
                //Set up Connection Parameters
                COMOptions comOptions = new COMOptions();
                comOptions.selecteddevice = Devices.LPC2294;                                                //Processor Type
                comOptions.port = "COM32";                                                                  //COM Port
                comOptions.baudrate = 115200;                                                               //Baudrate
                comOptions.highspeed = 0;                                                                   //Use MaxBaudrate
                comOptions.maxbaudrate = 115200;                                                            //Max Baudrate
                comOptions.interfacetype = Interfaces.NONE;                                                 //None required
                comOptions.osc = 14.7456;                                                                   //Processor Oscillator
                comOptions.bootloaderpath = @"H:\idden\due\to\company\rules.hex";                           //Hard coded, get from Settings later
                comOptions.halfduplex = 0;                                                                  //We do not use half duplex
                comOptions.hwt1 = 50;                                                                       //DTR RTS Assert time
                comOptions.hwt2 = 100;                                                                      //DTR RTS Deassert time
                comOptions.protocoloptions = ProtocolOptions.AUTOLF;                                        //Let Flash Magic Handle LF
                comOptions.hwconfig = HardwareConfigurations.BOOTEXEC;                                      //HW Boot and DTR/RTS handle RST/ISP
                comOptions.clocks = 0;                                                                      //Ignored when highspeed = 0  (manual recommends setting to 0 when using ARM)
                comOptions.postopendelay = 0;                                                               //0 because we have no problem with missing data
                comOptions.interfaceserialnumber = String.Empty;                                            //Not used, set to empty
                comOptions.flashbank = 0;                                                                   //Not used, default is 0
                comOptions.usinginterface = 0;                                                              //0 no HW Interface used

                FlashMagicARMCortex cortex = new FlashMagicARMCortex();
                cortex.Connect(comOptions);                                                                 //Throws Exception
            catch (FMException ex)

which throws the Exception
Code: [Select]
Exception thrown: 'ESA.FlashMagic.Common.FMException' in FlashMagicARMCortexNET.dll
Invalid value or command sent. Please try the operation again. (device not found)

The Flash Magic Settings used with the GUI Program are attached (they are working fine)
ARM Cortex / Re: LPC 1549 - ISP options not working
« Last post by wayneSGS on July 04, 2018, 06:37:39 am »
Hi Andy, I'm getting this issue also for the LPC1549 with latest FM v11.16.5087.
Just updated to FM v11.16.5087, under the ISP tab the only functions selectable are:
Blank Check, Read Security, Read Device Signature, Display Memory, Erase Flash, Verify, Execute, Go
All other selections under ISP are "grayed out" and not selectable.
I want to read LPC1549 flash and save to hex file, but unable to find any option to perform this function.
Besides Display Memory which doesn't appear to have save ability, is read/save flash available in FM?

Update: Found that File: Save allows read/save of a portion of memory, limited to 0x00000000 to 0x0000FFFF on LPC1549.
Under Display Memory the memory size is much larger up to 0x002003FFF, how can this be read/saved to hex?
When programming the external hex file did you first change the device to one from the "External Flash" category?
ARM Cortex / Re: LPC 1549 - ISP options not working
« Last post by Andy Ayre on May 25, 2018, 01:15:21 am »
What do you mean it "gets disabled"? What version are you using? If it's not the latest version then make sure to update first.

Please post more details and screenshots of the problem.

Hi all,

We have a board using NXP LPC54628J512 (512KB flash) with a 256MB external flash S25FL256SAGNFI001 (SPIFI). Our hex file is around 20MB.

We expect to program the hex file to internal flash first and the remaining part which is larger than 512KB can be programmed to external falsh.

At first, J-link emulator was used to program the hex file, the program was downloaded and run sucessfully on board. However when using Flash Magic (when programming, MCU is in ISP mode, ISP2/ISP1/ISP0 is 1/1/0), although it seemed to be able to program the hex file (after programming it showed "Finished" with green, and after clicking "ISP -> Verify" it showed "Hex File verified OK"), our program cannot be run normally. The external flash seemed not be written.

We would like to program this large hex file without emulator, is it possible to use Flash Magic to program the large hex file as J-link does? Or are there any other solutions to the problem we met? Any commnets are welcome.

ARM Cortex / LPC 1549 - ISP options not working
« Last post by athmesh on May 23, 2018, 11:23:30 am »
Hello Programmers,

I've been trying to flash program through FLASH MAGIC via SWD over Link2 but none of the options in ISP are working. it gets disabled after clicking any option on ISP.

What is the reason? the error is same in another board.

Thank you very much.
The error message you are getting provide a URL where there are debugging steps. What have you tried and what were the results? We don't have your hardware so you are the only one who can debug what you have.
Pages: 1 2 [3] 4 5 ... 10