Internal Flash utilization for External Memory

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Internal Flash utilization for External Memory

ソリューションへジャンプ
3,056件の閲覧回数
Dhaya
Contributor III

Hi,

    We are trying to utilize internal ROM Flash memory for the purpose of secondary memory (instead of EEPROM) in LPC 1768, LPC 55S16. Is it possible to utilize FLASH for secondary memory and if possible how we can use. Kindly guide us to achieve on this

0 件の賞賛
返信
1 解決策
2,914件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

For Internal Flash, in fsl_iap, there is FLASH_Program(), we can use it to store date in run time.

Please execute FLASH_Erase() then  FLASH_Program()

fsl_iap doesn't work for external Flash. What external Flash interface? 

 

元の投稿で解決策を見る

11 返答(返信)
2,704件の閲覧回数
Dhaya
Contributor III

Currently we are analyzing of cycle of read/write on flash IAP. Can you tell about read/write life cycle of LPC55S16 flash

0 件の賞賛
返信
3,034件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

I am not sure if I understand your question. Could you please be more specific?

Thanks,

Jun Zhang

0 件の賞賛
返信
3,014件の閲覧回数
Dhaya
Contributor III

Hi,

    We are try to store the calibration  data in internal memory. We using LPC55S16 hence there is no EEPROM. We need almost 300 Bytes of storage. Hence we reviewed some websites to store those data in internal memory.

https://mcuoneclipse.com/2014/05/31/configuration-data-using-the-internal-flash-instead-of-an-extern...

 

Here we reviewed that use Internal FLASH memory instead of EEPROM.

 

Kindly guide that how to use internal FLASH memory as EEROM storage

0 件の賞賛
返信
3,009件の閲覧回数
Dhaya
Contributor III

Also Kindly update how to Read and write Flash during run time. Or it makes some issues on controller / life time ,etc,.

0 件の賞賛
返信
3,007件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Dhaya 

Under MCUXpresso SDK folder, there is demo code iap_flash. I suggest you referring it.

This demo code erases and programs a portion of on-chip flash memory. A message a printed on the UART terminal as various operations on flash memory are performed.

Hope this helps,

Jun Zhang

2,948件の閲覧回数
Dhaya
Contributor III

Thanks for the support. I taken the driver file from fsl_iap.h and fsl_iap.h. I need to save a particular a data byte in internal Flash memory during run time and read data from this. But i could not able to find the difference. How i store data in run time and how to read in Flash. Also i didn't found any register to reconstruct it. hereby i attached images kindly guide to save external data

 

Dhaya_0-1679056307348.png

Dhaya_1-1679056457407.png

 

0 件の賞賛
返信
2,915件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

For Internal Flash, in fsl_iap, there is FLASH_Program(), we can use it to store date in run time.

Please execute FLASH_Erase() then  FLASH_Program()

fsl_iap doesn't work for external Flash. What external Flash interface? 

 

2,705件の閲覧回数
Dhaya
Contributor III
Hi @ZhangJennie,
Thanks for your support. As per the data, its works well. Thanks a lot
0 件の賞賛
返信
2,908件の閲覧回数
Dhaya
Contributor III

Thanks for your reply. Also kindly guide, how we can assign address for the respective data since the program memory may take that address. How we can set the range for program memory?

0 件の賞賛
返信
2,900件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Please take a look at the Flash program and erase functions. the second parameter is the destination address you want to handle with.

2,909件の閲覧回数
Dhaya
Contributor III

No, we are using internal Flash only

0 件の賞賛
返信