Unable to write to the SPI Flash on the LPC4370(LPC-Link2)

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

Unable to write to the SPI Flash on the LPC4370(LPC-Link2)

102 Views
aroerina2
Contributor I

For the past few days, I've been trying to write to an LPC4370 (LPC-Link2) using MCU-Link in the MCUXpresso IDE, but I keep getting the error “No flash configured at the specified address” and the write fails.

In the project settings, the Flash driver is set to “LPC18_43_SPIFI_GENERIC.cfx” and the Flash address is set to 0x14000000.

When I remove the Flash region and specify the code execution area as SRAM, the error does not occur and it executes normally, so I believe the connection to the MCU is fine.

Does anyone have any insights on this issue?

 

Translated with DeepL.com (free version)

0 Kudos
Reply
1 Reply

33 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @aroerina2 

May I ask what model of external flash you are connecting to?

BR

Harry

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2251489%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EUnable%20to%20write%20to%20the%20SPI%20Flash%20on%20the%20LPC4370(LPC-Link2)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2251489%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EFor%20the%20past%20few%20days%2C%20I've%20been%20trying%20to%20write%20to%20an%20LPC4370%20(LPC-Link2)%20using%20MCU-Link%20in%20the%20MCUXpresso%20IDE%2C%20but%20I%20keep%20getting%20the%20error%20%E2%80%9CNo%20flash%20configured%20at%20the%20specified%20address%E2%80%9D%20and%20the%20write%20fails.%3C%2FP%3E%3CP%3EIn%20the%20project%20settings%2C%20the%20Flash%20driver%20is%20set%20to%20%E2%80%9CLPC18_43_SPIFI_GENERIC.cfx%E2%80%9D%20and%20the%20Flash%20address%20is%20set%20to%200x14000000.%3C%2FP%3E%3CP%3EWhen%20I%20remove%20the%20Flash%20region%20and%20specify%20the%20code%20execution%20area%20as%20SRAM%2C%20the%20error%20does%20not%20occur%20and%20it%20executes%20normally%2C%20so%20I%20believe%20the%20connection%20to%20the%20MCU%20is%20fine.%3C%2FP%3E%3CP%3EDoes%20anyone%20have%20any%20insights%20on%20this%20issue%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CI%3ETranslated%20with%20%3CA%20href%3D%22https%3A%2F%2Fwww.deepl.com%2F%3Futm_campaign%3Dproduct%26amp%3Butm_source%3Dweb_translator%26amp%3Butm_medium%3Dweb%26amp%3Butm_content%3Dcopy_free_translation%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EDeepL.com%3C%2FA%3E%20(free%20version)%3C%2FI%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2253046%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Unable%20to%20write%20to%20the%20SPI%20Flash%20on%20the%20LPC4370(LPC-Link2)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2253046%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F257468%22%20target%3D%22_blank%22%3E%40aroerina2%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMay%20I%20ask%20what%20model%20of%20external%20flash%20you%20are%20connecting%20to%3F%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EHarry%3C%2FP%3E%3C%2FLINGO-BODY%3E