Author Topic: Show memory dialog fails on LPC4337  (Read 6004 times)

relentless

  • Jr. Member
  • **
  • Posts: 3
    • View Profile
    • Email
Show memory dialog fails on LPC4337
« 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.

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2190
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Show memory dialog fails on LPC4337
« Reply #1 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
Embedded Systems Academy, Inc.
support at esacademy dot com

relentless

  • Jr. Member
  • **
  • Posts: 3
    • View Profile
    • Email
Re: Show memory dialog fails on LPC4337
« Reply #2 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

relentless

  • Jr. Member
  • **
  • Posts: 3
    • View Profile
    • Email
Re: Show memory dialog fails on LPC4337
« Reply #3 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.

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2190
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Show memory dialog fails on LPC4337
« Reply #4 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
Embedded Systems Academy, Inc.
support at esacademy dot com

ILIGYUdsfi

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
Re: Show memory dialog fails on LPC4337
« Reply #5 on: November 02, 2015, 12:16:58 am »
I felt Andy is in ourcase everywhere. So kind of you. Each post is very useful and convenient. Thanks for sharing casesam.
« Last Edit: November 02, 2015, 06:07:27 pm by ILIGYUdsfi »