Main Menu

Recent posts

#91
General / Re: Parentheses in path for co...
Last post by FlashMagicUser - May 07, 2019, 06:30:55 AM
I already tried with

  • Double slashes
  • Quotes around the path
  • Double quotes around the path
  • Replacing spaces with slashes (i.e.: "C:\Program\Files\(x86)\...")
And I always get the same error.


I also just noticed that I get the error:
ERROR: Invalid parameters for HEXFILE directive: HEXFILE(C:\Program
Files
(x86)


But the exit code is 0

It would be great if we could at least catch the error via exit code.
#92
General / Re: Parentheses in path for co...
Last post by Andy Ayre - May 07, 2019, 04:03:21 AM
Try double backslashes, \\

Andy
#93
General / Parentheses in path for comman...
Last post by FlashMagicUser - May 07, 2019, 02:20:25 AM
Referring to this post: http://forum.flashmagictool.com/index.php?topic=4338.0.

I am using command-line v11.00 but with a path containing "C:\Program Files (x86)\..." I still cannot make the command work.

Is there any way to run this command? Has something been done to improve that?
#94
ARM Cortex / FlashMagicCortex.Reset usage q...
Last post by matterama - December 28, 2018, 10:23:31 AM
Hello,
We have been using the API successfully to program and verify a LPC1317 device.  We have been manually cycling power on it after programming to continue with our application code.  However, it seems like this command:  FlashMagicCortex.Reset should allow us to reset the chip.  We have tried:

FlashMagicCortex.Reset(ResetTypes.EXECUTE, 0, ResetOptions.THUMB, 500)

and

FlashMagicCortex.Reset(ResetTypes.RESET, 0, ResetOptions.THUMB, 500)

unsuccessfully.

Is this the correct API command to do what we are attempting?  If so, can you give more guidance on this function?

Thank you!
#95
ARM Cortex / Firmware not loading after fla...
Last post by thiagorod - October 16, 2018, 09:41:32 AM
Hello,

Sorry for this question, I´m new at LPC11xx family (used to AVR), but I am trying to flash a firmware that was compiled under LPCXpresso  V8.2.2 (source code provided by NXP), and the .HEX file also generated by LPCXpresso.

I was able to flash it using Flash Magic v.11.20, I´m using LPC1112/102 with the configurations in the screenshot.

But it seems like the firmware is not being executed after a hard reset, even with the the ISP pin high. Am I missing a config in Flash Magic?

The source code/project is this one:  https://community.nxp.com/docs/DOC-330476
I designed my own PCB following their design.



Regards,
#96
ARM Cortex / Re: NHS3100 flashing- Failed t...
Last post by Andy Ayre - October 02, 2018, 01:25:18 AM
It's the same kind of thing. The LPC-Link2 asserts the NHS3100 reset pin, then deasserts it, then tries to communicate with it, which fails. I would double-check your cabling. It has to be very short if it isn't already. For example 10cm or less.
#97
ARM Cortex / Re: NHS3100 flashing Failed
Last post by vrushali - September 28, 2018, 03:15:42 AM
Hi Andy,
I am facing problem in flashing another board. i have attached flash magic tool snapshot. Its giving message as "Operation Failed.Failed to connect. Try disconnecting and reconnecting the board.Make sure the board appear in the device manager. also debug file is attached.
What is wrong?
#98
ARM Cortex / Re: NHS3100 flashing- Failed t...
Last post by vrushali - September 21, 2018, 11:11:08 PM
Hi Andy,
I am following same procedure as mentioned by you.(LED status is also same)
About screenshot- I have one more board which is working. I took the screenshot of that.

Battery is not inserted while flashing.

Can you tell me about these 2 points in detail?
1) Could be due to static damage : Do you mean NHS3100 IC is damaged?
2) Could be due to configuring the part to disable SWD. : How can i check this?

Thanks for the help.
#99
ARM Cortex / Re: NHS3100 flashing- Failed t...
Last post by Andy Ayre - September 21, 2018, 07:22:16 AM
Just to confirm, the procedure is:

1. Connect NHS3100 board to J7 on LPC-Link2
2. JP2 on, JP1 off
3. No battery inserted into NHS3100 board
4. Connect LPC-Link2 to your PC -> LED on LPC-Link2 on solid
5. Start Flash Magic -> LED on LPC-Link2 flashes
6. Choose SWD over Link2 in Flash Magic main window
7. ISP -> Read Signature

Your screenshot shows that Flash Magic has been able to communicate with the LPC-Link2.

Your debug file shows that the LPC-Link2 can't communicate with the NHS3100.

Could be due to the cable being too long, not properly seated at both ends. Do you have the battery in? If so remove it. Could be due to static damage. Could be due to configuring the part to disable SWD.

Andy
#100
ARM Cortex / Re: NHS3100 flashing- Failed t...
Last post by vrushali - September 21, 2018, 12:06:04 AM
Hi Andy,

My Jumper settings on LPC link2: JP1 is open, JP2 is mounted.
i am using J7 connector on LPC link2 board to connect to target board.
Settings in flash magic:see flash magic setting.png in attachments.
flashmagic version 10.90

Thanks.