LPCXpresso 5.2.2: Flash driver file not found

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

LPCXpresso 5.2.2: Flash driver file not found

1,424 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DaveNadler on Thu Apr 18 10:23:44 MST 2013
[FONT=Arial]I just tried to upgrade to the latest LPCxpresso release.

Unfortunately, trying to debug with LPClink fails with
[/FONT]
15: Target error from Commit Flash write
Flash driver file not found
[FONT=Arial]
Reverting to 5.1.1 works fine.

HELP !
Thanks,
Best Regards, Dave[/FONT]
0 Kudos
Reply
8 Replies

1,406 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed May 01 02:11:01 MST 2013
LPCXpresso 5.2.4 has just been released, which provides a simpler way of resolving the missing flash driver problem. For more details, please see:

http://knowledgebase.nxp.com/showthread.php?t=4474

and specifically:

http://support.code-red-tech.com/CodeRedWiki/FlashDriverNotFound522

Regards,
CodeRedSupport
0 Kudos
Reply

1,406 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by whitecoe on Fri Apr 19 08:19:33 MST 2013

Quote: DaveNadler

[FONT=Arial]Except wizard dies because it wants CMSIS, which I can't use directly because of a whole 'nother laundry list of problems with initialization...
[/FONT]



Really does sound like you like to make your life difficult. ;)

If you don't want to link with the CMSIS library project, why don't you just select "None" from the library selection dropdown???

HTH!
0 Kudos
Reply

1,406 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DaveNadler on Thu Apr 18 17:44:52 MST 2013

Quote: CodeRedSupport
Still trying to understand exactly what is going on here with your project with its modified memory configuration.

[FONT=Arial]Sorry, why does this have anything to do with failing to program flash ? This project works perfectly under 5.1.2 - the RAM reservation should not affect which flash driver is used, right ?[/FONT]


Quote: CodeRedSupport
In the meantime, you ought to be able to solve this issue with this particular project by manually adding the required flash driver ([FONT=Courier New][SIZE=2]LPC11_12_13_32K_8K.cfx[/SIZE][/FONT]) manually to the flash driver field of the memory config editor (in MCU page of Project Properties).

[B][FONT=Arial]OK - Setting this manually does work.[/FONT][/B]


Quote: CodeRedSupport
Note - creating a new project for LPC11C using the New project wizard ought to take you about 30 seconds tops to do.

[FONT=Arial]Except wizard dies because it wants CMSIS, which I can't use directly because of a whole 'nother laundry list of problems with initialization...
[/FONT]
0 Kudos
Reply

1,406 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Apr 18 16:26:32 MST 2013
Still trying to understand exactly what is going on here with your project with its modified memory configuration.

In the meantime, you ought to be able to solve this issue with this particular project by manually adding the required flash driver ([FONT=Courier New][SIZE=2]LPC11_12_13_32K_8K.cfx[/SIZE][/FONT]) manually to the flash driver field of the memory config editor (in MCU page of Project Properties).

Note - creating a new project for LPC11C using the New project wizard ought to take you about 30 seconds tops to do.

As an aside, and for the future reference of others who might come across this thread - Zero made an useful summary post on reserving RAM for the CAN drivers ...

http://knowledgebase.nxp.com/showthread.php?p=21853

Regards,
CodeRedSupport
0 Kudos
Reply

1,406 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DaveNadler on Thu Apr 18 12:40:35 MST 2013

Quote: CodeRedSupport
I can't reproduce the problem here (ie the flash driver is found). Do you see the problem if you create a completely fresh project there?

[FONT=Arial]
Please, I haven't time to create a new project, I have [U]got[/U] to get some work done here...
[/FONT]

Quote: CodeRedSupport
One thing I have noticed is that it looks from your debug log like you have used the memory configuration editor for this particular project - correct?

[FONT=Arial]
Yes, to reserve the RAM used by the ROM utility functions (CAN drivers).

[/FONT]
Quote: CodeRedSupport
Please can you try deleting the Debug (and Release) subdirectories within this project, so that the tool recreates all of the memory config related files when it rebuilds. After doing this, does the download to flash work?

[FONT=Arial]
I deleted these directories, then it would not build until I also deleted .metadata\.plugins\org.eclipse.cdt.core\BVM2.1366313103012.pdom - It would be great if [B]clean[/B] really cleaned all this intermediate junk instead of forcing me to muck with this !

And after all this, still same result, can't program, I'm back to 5.1.2 which works...

HELP ![/FONT]
0 Kudos
Reply

1,406 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Apr 18 11:47:44 MST 2013
I can't reproduce the problem here (ie the flash driver is found). Do you see the problem if you create a completely fresh project there?

One thing I have noticed is that it looks from your debug log like you have used the memory configuration editor for this particular project - correct? Please can you try deleting the Debug (and Release) subdirectories within this project, so that the tool recreates all of the memory config related files when it rebuilds.

After doing this, does the download to flash work?

Regards,
CodeRedSupport
0 Kudos
Reply

1,406 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DaveNadler on Thu Apr 18 11:24:45 MST 2013
[FONT=Arial]Part is LPC11C14.
Deleting all launch configurations did not change the result.
Debug log is below...
[/FONT]
LPCXpresso Debug Driver v5.2 (Apr 16 2013 20:02:02 - crt_emu_lpc11_13_nxp build 1150)
Found chip XML file in G:/BVM2/LPCXpresso_5.2.2_2108/workspace/BVM2/Debug/LPC11C14_301.xml
Emu(0): Conn&Reset. DpID:  BB11477. Info: HID64HS12
SWD Frequency: 3000 KHz. RTCK: False. Vector catch: False.
Packet delay: 0  Poll delay: 0.
NXP: LPC11C14_301  Part ID: 0x00000000
Connected: was_reset=false. was_stopped=true
v Registered license, download limit of 128K
15: Target error from Commit Flash write: Ef(40). Flash driver file not found.
0 Kudos
Reply

1,406 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Apr 18 11:02:42 MST 2013
What part are you connecting to? [I presume an LPC11/12/13 or 17, where as per the release notes the flash driver mechanism has changed].

Also, does deleting the debug launch configuration and allowing the tools to automatically recreate help?

http://support.code-red-tech.com/CodeRedWiki/LaunchConfigMenu

[This is one of the things that we would generally always recommend doing when moving to a new version:
http://support.code-red-tech.com/CodeRedWiki/UpdatingNewMinorVersion
]

If this doesn't help, please post the full debug log:

http://support.code-red-tech.com/CodeRedWiki/DebugLog

Regards,
CodeRedSupport
0 Kudos
Reply