Flash Magic Forum

In-System Programming Support => ARM Cortex => Topic started by: reza_hasar on February 23, 2016, 01:41:04 AM

Title: problem with LPC1768 Ethernet bootloader
Post by: reza_hasar on February 23, 2016, 01:41:04 AM
Hi
I use flash magic to program my lpc1768 board.but when I want to start program i saw this warnning as below:

(http://s6.picofile.com/file/8240267918/Untitled2.jpg)


I set mu setting as below:

(http://s7.picofile.com/file/8240267884/Untitled1.jpg)

please help me to solve that :'( :'(
Title: Re: problem with LPC1768 Ethernet bootloader
Post by: Andy Ayre on February 24, 2016, 02:45:38 AM
Please send your hex file to support (at) esacademy (dot) com

Andy
Title: Re: problem with LPC1768 Ethernet bootloader
Post by: Andy Ayre on March 01, 2016, 01:21:50 AM
Start Flash Magic
Choose LPC1768 Ethernet
Choose your hex file
Click on "more info" in step 3

You will see that your hex file uses the address range 0x000002FC to 0x000082B3

The bootloader occupies locations 0x00000000 to 0x00002000 so the error message is correct, because your hex file is using a section of Flash used by the bootloader.

As you know, 0x2FC is the code read protection (CRP) location. You need to disable generation of those four bytes, typically with Keil by defining NO_CRP or modifying your assembler startup code.