Author Topic: LPC824 Flash programming  (Read 748 times)

yan9a

  • Jr. Member
  • **
  • Posts: 4
    • View Profile
LPC824 Flash programming
« on: April 24, 2017, 04:19:21 am »
I am new to flashmagic. When i tried to use it (version 10.02.4512)  to program LPC824M201JHI33 on OM13071 board, I have got error "Failed to read the device signature". And when I click yes to continue, I have got "Operating Failed" message box. Another problem is that my LPCXpresso IDE only outputs .axf file. How can I use it with flashmagic?

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2099
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: LPC824 Flash programming
« Reply #1 on: April 24, 2017, 08:33:37 am »
You will need to configure LPXxpresso to output a hex file - it's somewhere in the settings.

Please generate and send a debug file. Instructions are here: http://www.flashmagictool.com/debugfile.html

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

yan9a

  • Jr. Member
  • **
  • Posts: 4
    • View Profile
Re: LPC824 Flash programming
« Reply #2 on: April 24, 2017, 09:16:40 am »
I just tried erasing the flash because I haven't had hex.
Now I can generate the debug file for the errors I mentioned. But I cannot attach the file in this post.
When I click the 'Attachments and other options' below the text box, I can't see attach option.
Is it because of forum permission?
Thanks.

yan9a

  • Jr. Member
  • **
  • Posts: 4
    • View Profile
Re: LPC824 Flash programming
« Reply #3 on: April 24, 2017, 09:27:19 am »
https://www.dropbox.com/s/f6rqruwp4ozbwt4/flashmagic-20170424-154821.fmd?dl=0

The debug file can be seen at the above dropbox link.
Thanks.

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2099
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: LPC824 Flash programming
« Reply #4 on: April 24, 2017, 11:10:12 am »
I see this in the output from the device:

rx> \0ahave to say for yourself now?\0a\0d

This is not the bootloader running but some firmware instead.

You need to meet all the conditions given in the Flash memory section of the user manual from NXP to start the bootloader. You can check that the bootloader is running by connecting using a terminal program and sending a single '?'. You should get 'Synchronized' back.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

yan9a

  • Jr. Member
  • **
  • Posts: 4
    • View Profile
Re: LPC824 Flash programming
« Reply #5 on: April 25, 2017, 03:43:23 am »
Thanks a lot. Now I can erase the flash.