Author Topic: LPC1758 program specific blocks  (Read 3645 times)

Forrest

  • Jr. Member
  • **
  • Posts: 1
    • View Profile
LPC1758 program specific blocks
« on: August 22, 2013, 03:32:48 am »
Hi all,

I have question regarding programming specific blocks throught FlashMagic.
I have my own bootloader that I would like program at adress 0x0 and is 0x98c size long its first HEX file.
Second I have application HEX file that must be programmed at adress 0x2000.

So I suppose that I can select where HEX file will be started before I start programming, but this feature I dont find in FlashMagic.
Is it my mistake? Or really this feature isnt in FlashMagic?
Have you any idea how solve this problem?

Thanks so much

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2190
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: LPC1758 program specific blocks
« Reply #1 on: August 22, 2013, 08:39:03 am »
The hex file already contains the addresses where the data will be programmed. You will need to configure your compiler to generate code starting at address 0x2000. Then the hex file will contain the necessary information for Flash Magic to only program 0x2000 and above.

Check the option in section 2 of the main window to erase only the blocks used by the hex file. You can also click on the information link in section 3 once you have selected your hex file for confirmation of the blocks used.

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