AN12037 for the LPC51U68 getting Ef(50): Flash driver failed to initialize error

cancel
Showing results for 
Search instead for 
Did you mean: 

AN12037 for the LPC51U68 getting Ef(50): Flash driver failed to initialize error

Jump to solution
90 Views
Contributor II

I am porting AN12037 to a 51u68 demo board.

1. starting with app_blinky, I changed the memory for the 51U68

MFlash256 (rx) : ORIGIN = 0x2000, LENGTH = 0x1E000 /* 120K bytes (alias Flash) */
Ram0_32 (rwx) : ORIGIN = 0x20000200, LENGTH = 0x1c00 /* 7K bytes (alias RAM) */
Ram1_2 (rwx) : ORIGIN = 0x04000000, LENGTH = 0x800 /* 2K bytes (alias RAM2) */
Ram2USB_2 (rwx) : ORIGIN = 0x04004000, LENGTH = 0x800 /* 2K bytes (alias RAM3) */

and

app_blinky_Debug_memory.ld to same.

also changed  app_blinky_Debug_SencondImage.ld to start at 0x20000

 

2. I changed the cpu from 11u6x to 51u68 for the project

3.  UART Console is checked in Debug console

4. Debug probe = "LinkServer" = successfully booted

 

When I try to debug or use GUi flash tool and I get the error Ef(50): Flash driver failed to initialize.

My demo board works fine when I switch to other projects I created. It seems to be only the app_blinky project that gives this error.  Any Ideas?

0 Kudos
1 Solution
24 Views
Contributor II

I tried all the Reset Handling settings with no success.

I fixed it by holding the ISP0 button,  connecting USB then pressing reset. 

View solution in original post

0 Kudos
4 Replies
25 Views
Contributor II

I tried all the Reset Handling settings with no success.

I fixed it by holding the ISP0 button,  connecting USB then pressing reset. 

View solution in original post

0 Kudos
46 Views
Contributor II

I changed the Run/debugger settings for LinkServer Debugger to "Default" along with changing MCU settings flashdriver to LPC51U6x_256K.cfx and that seemed to work.  

 

But...Now when I try to debug I get  a window saying

 

SWD Configuration

0 available SWD Devices detected.
Connect a device and try again.

 

0 Kudos
34 Views
NXP TechSupport
NXP TechSupport

Please confirm have disconnect all the previous debug using "Clean Up Debug" button:

 

Alice_Yang_0-1603271265418.png

If still can't work, please take a video or screenshots show all your steps.

 

Regards,

Alice

 

0 Kudos
56 Views
NXP TechSupport
NXP TechSupport

 

Hello BetoGreen,

If you use MCUXpresso IDE, how about 

launch configuration "Reset Handling" setting is intended as SYSRESETREQ.

 
 

 

 
 
 
 
 

 

Regards,

Alice

0 Kudos