Target error from Commit Flash write Em(12)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Target error from Commit Flash write Em(12)

925 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Marwincencov on Sun Nov 13 05:27:23 MST 2011
Thank you for your advice.
I use LPCXpresso (Version: LPCXpresso v4.1.0 [Build 190] [27/09/2011] ), programmer LPC-Link SWD and reference project CMSISv2p00_LPC177x_8x.
I need programming microcontroller LPC1788. When I try programming LPCXpresso say following error.

  15: Target error from Commit Flash write
  System rejected access at location 0xE000EDF0 - verify Population of memory and peripherals

I found at datasheet that from address 0xE000 0000 to 0xE004 0000 space is reserved. So I don't understand why Xpresso want write to this part of memory.
Please could you help me.
Thanks:)
0 Kudos
Reply
4 Replies

681 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by celephicus on Mon Oct 15 19:18:19 MST 2012
There is another cause for this error. If your flash image is not aligned on 4 byte addresses then it will fail to verify. I got this error with the following image after I was messing about with the linkerscript, so there was a linker section following on from a section whose size was not a multiple of 4. Adding a ". = ALIGN(4)" in the linkerscript fixed the error. It drove me mad.

:100F90007953796E63205625642E25642C20627562  <- This line is OK
:090FA000696C642025642E0A002E <- Only 9 bytes, but this is OK.
:040FA900006CDC02FA <- WRONG!!! Start address is 0FA9, not 4 byte aligned!
0 Kudos
Reply

681 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Sun Nov 13 22:45:57 MST 2011
The LPC1788 is on custom board? You should double check you're actually  booting the part into the ISP.

After flashing, LPCXpresso attempts to reset your processor and run to the first breakpoint. An access at 0xE000EDF0 would suggest a wire error occurred during/after reset, and LPCXpresso failed to reestablish debug control. Chances are, the image was successfully flashed. To check if this is the case, in your Debug Configuration, set "Load image" to 'false', and start a debug session. If the reset problem persists, you should get a different error.
0 Kudos
Reply

681 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Marwincencov on Sun Nov 13 11:10:50 MST 2011
If set up P2.10 to pull down and reset processor next I set up Vector catch true and click debug. So Xpresso make error: "02: Failed on connect: Em(12). System rejected access at location 0xE000EDF0 - verify Population of memory and peripherals"
When some programing finished error I must to apply pin P2.10 befor next programing.

I looked to file core_cm3.h
#define SCS_BASE            (0xE000E000UL)                            /*!< System Control Space Base Address */
#define ITM_BASE            (0xE0000000UL)                            /*!< ITM Base Address                  */
#define CoreDebug_BASE      (0xE000EDF0UL)                            /*!< Core Debug Base Address           */
but there is datasheet write private peripheral bus start from address 0xE004 0000 no 0xE000 0000 like for example processors LPC1769.
I think that in some thing is bug.
Thanks for some advice:)
0 Kudos
Reply

681 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Sun Nov 13 05:58:00 MST 2011
Did you try Vector catch and ISP already?

http://support.code-red-tech.com/Cod...ebugAccessChip
0 Kudos
Reply