Can't find the default flash driver 'LPC18_43_SPIFI_1MB_4KB.cfx' in a flash directory

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Can't find the default flash driver 'LPC18_43_SPIFI_1MB_4KB.cfx' in a flash directory

跳至解决方案
2,832 次查看
simon_prentice
Contributor III
This is an extension to "Trying to build LPC4370_LEDblinky with MCUXpresso" in LPC Microcontrollers
The project (LPC4370_LEDblinky) now builds but when attempting to start a debug session I get an error related to LPC18_43_SPIFI_1MB_4KB.cfx (shown in full at the end of this question).
I've seen a number of existing threads which seem to relate to this for LPCXpresso but I can't find the right files to import to get it to work in MCUXpresso.
There are some specific comments regarding LPC18_43_SPIFI_1MB_4KB.cfx in https://community.nxp.com/message/630716
"
Alias flash drivers
 
For compatibility with projects created with earlier LPCXpresso IDE releases, a number of other flash driver files are supplied which are just renamed versions of the standard drivers above. The use of these 'alias' drivers in not recommend, as they may not be shipped with future LPCXpresso IDE releases.
 
The following is a list of alias flash drivers, with the recommended replacement driver listed in each case.
 
...LPC18_43_SPIFI_1MB_4KB.cfx -> LPC18_43_SPIFI_1MB_64KB.cfx
Note: that the aliased driver - LPC18_43_SPIFI_1MB_4KB.cfx - is provided specifically to allow some existing projects using the LPC-Link2 as an LPC4370 evaluation board to continue working. It is not a true 4KB sector driver, it is just that the original LPCXpresso SPIFI flash driver mechanism treated the W25Q80BV device as a 4KB sector device (whereas the current mechanism uses it as a 64KB sector device).
"

Any thoughts on how I can get this example to work in MCUXpresso?

---------------------
Target reported errors
Reason:
can't find the default flash driver 'LPC18_43_SPIFI_1MB_4KB.cfx' in a flash directory
can't find the default flash driver 'LPC18_43_SPIFI_1MB_4KB.cfx' in a flash directory
flash driver directories:
--flash-dir "C:\nxp\MCUXpressoIDE_10.2.0_759\ide\bin\Flash"
Debugging context: LPC4370_LEDblinky LinkServer Debug
---------------------
Related Threads
LPC18xx / LPC43xx SPIFI Flash Drivers
https://community.nxp.com/thread/389076

LPC18xx / LPC43xx External Flash Drivers
https://community.nxp.com/thread/389079
LPC18xx / LPC43xx SPIFI Flash Drivers (v7.6.0 to v 7.8.0)
https://community.nxp.com/message/630716
---------------------
标签 (1)
0 项奖励
回复
1 解答
2,303 次查看
miguel_mendoza
NXP Employee
NXP Employee

Hi Simon Prentice,

"LPCXpresso IDE v7.9.0 introduced an improved flash driver mechanism for SPIFI flash. Now a project targeting SPIFI flash only has to specify a single Generic flash driver: “LPC18_43_SPIFI_GENERIC.cfx”. When a flash programming operation is performed, this driver will first interrogate the SPIFI device and determine its type, size, and configuration, which are then reported back to the host debug driver. Using this information the correct optimized programming routines for the SPIFI device detected can be used." you can find this and some more information about the flash driver in the link below. LPCXpresso IDE User Guide.

In MCUXpresso IDE the same thing happen, only has a single Generic flash driver: “LPC18_43_SPIFI_GENERIC.cfx”, and as the example was created for the previous version of the LPCXpressp IDE, use the pass flash driver "LPC18_43_SPIFI_1MB_4KB.cfx" for that reason I recommended to use the examples that LPCOpen include, are more update.

On the other hand, if you want to run this example, you have to change the default flash driver, for that go to the properties of the project (Select and press Alt + Enter), C/C++ build >> MCU settings and there you have the Memory details section where say which is the default flash driver.

MCUSe.png
Click edit >> Browse... in the default flash driver and then you have to search the file called “LPC18_43_SPIFI_GENERIC.cfx” apply the changes and with that, you are going to be able to run the example,

Wish it helps you!

regards,
Miguel

在原帖中查看解决方案

2 回复数
2,304 次查看
miguel_mendoza
NXP Employee
NXP Employee

Hi Simon Prentice,

"LPCXpresso IDE v7.9.0 introduced an improved flash driver mechanism for SPIFI flash. Now a project targeting SPIFI flash only has to specify a single Generic flash driver: “LPC18_43_SPIFI_GENERIC.cfx”. When a flash programming operation is performed, this driver will first interrogate the SPIFI device and determine its type, size, and configuration, which are then reported back to the host debug driver. Using this information the correct optimized programming routines for the SPIFI device detected can be used." you can find this and some more information about the flash driver in the link below. LPCXpresso IDE User Guide.

In MCUXpresso IDE the same thing happen, only has a single Generic flash driver: “LPC18_43_SPIFI_GENERIC.cfx”, and as the example was created for the previous version of the LPCXpressp IDE, use the pass flash driver "LPC18_43_SPIFI_1MB_4KB.cfx" for that reason I recommended to use the examples that LPCOpen include, are more update.

On the other hand, if you want to run this example, you have to change the default flash driver, for that go to the properties of the project (Select and press Alt + Enter), C/C++ build >> MCU settings and there you have the Memory details section where say which is the default flash driver.

MCUSe.png
Click edit >> Browse... in the default flash driver and then you have to search the file called “LPC18_43_SPIFI_GENERIC.cfx” apply the changes and with that, you are going to be able to run the example,

Wish it helps you!

regards,
Miguel

2,303 次查看
simon_prentice
Contributor III

Hi Manuel,

I replaced the driver with LPC18_43_SPIFI_GENERIC as you suggested and it works!

Thank you.

0 项奖励
回复