Flash Magic Forum

In-System Programming Support => ARM Cortex => Topic started by: relentless on September 07, 2015, 07:50:13 AM

Title: Show memory dialog fails on LPC4337
Post by: relentless on September 07, 2015, 07:50:13 AM
Hi !

Tried your tool with LPC4337 and starter board from starterkit. Added several hardware modifications for the board, as UART0 pins are partially used with Ethernet, so needed to move boot to UART3. FlashMagic detects the controller, correctly reads signature, and shows something with programming. But several errors happen:
1. If requested to erase pages only used by hex file, reports "Invalid value or command sent" message and fails. So only looks like working with "Erase All Flash" option
2. "Display memory" does not work. After showing the dialog, first, it replaces "?" symbols with some data, but in 1-2 seconds either hangs up, or report AV in RICHED20.dll

Finally, still cannot make the program blinking LED, so unsure if programmed data is ok.
Title: Re: Show memory dialog fails on LPC4337
Post by: Andy Ayre on September 08, 2015, 01:05:43 AM
First please make sure you are using the latest version.

Next please generate two debug file. The first during erase and the second during display memory until the crash. Post them here. Instructions:

http://www.flashmagictool.com/debugfile.html

Andy
Title: Re: Show memory dialog fails on LPC4337
Post by: relentless on September 08, 2015, 01:34:09 AM
Version is 9.31.3960 (yesterday updated from 9.30, but problem described is the same in 9.31)

Please see debug file attached.
First, I run programming with "Erase all flash" - works ok. Then programming with "erase paged used by flash" - got the error message as before.
And finally I opened "show memory" dialog - it did not reported error or AV, but shows some strange content
Title: Re: Show memory dialog fails on LPC4337
Post by: relentless on September 08, 2015, 02:15:50 AM
Device itself programming is working - there's some problem with LPCXpresso production, as after switching to IAR sample project runs ok, while LPCXpresso seems to output some bad hex file.
Title: Re: Show memory dialog fails on LPC4337
Post by: Andy Ayre on September 09, 2015, 01:17:32 AM
Unfortunately the file only shows the "erase all flash" operation, so it doesn't tell me much.

What do you mean by "bad" hex file? In what way specifically?

Andy
Title: Re: Show memory dialog fails on LPC4337
Post by: ILIGYUdsfi on November 02, 2015, 12:16:58 AM
I felt Andy is in ourcase (http://www.ourcase.co.uk) everywhere. So kind of you. Each post is very useful and convenient. Thanks for sharing casesam (http://www.casesam.co.uk).