Could someone please share the LPC11C24 example code to read and write to flash memory?

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

Could someone please share the LPC11C24 example code to read and write to flash memory?

跳至解决方案
5,911 次查看
sudarshans
Contributor III

I currently have code for most other peripherals. Also another question, will enabling the flash memory on the LPC11C24 affect the functionality of any other peripherals, like CAN, ADC, Timer or GPIO?

标签 (2)
1 解答
4,137 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Sudarshan S,

   Read the flash memory is very easy, just read the according flash address and get the data is OK, you don't need to use the flash operation command.

   But the write, you need to use the flash IAP command, you can find it from the LPC11C24 user manual:

pastedImage_1.png

  About the code, you can refer to the secondary bootloader, which can be downloaded from this link:

AN10995: LPC1100 secondary bootloader (with software) (v.1.3) | www.LPCware.com 

Folder:AN10995 LPC1100 secondary bootloader (with software)\AN10995\Bootloader

   pastedImage_3.png

When you do the flash operation, don't let other module's interrupt to break the flash operation.

Wish it helps you!

If you still have question, please let me know!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

6 回复数
4,138 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Sudarshan S,

   Read the flash memory is very easy, just read the according flash address and get the data is OK, you don't need to use the flash operation command.

   But the write, you need to use the flash IAP command, you can find it from the LPC11C24 user manual:

pastedImage_1.png

  About the code, you can refer to the secondary bootloader, which can be downloaded from this link:

AN10995: LPC1100 secondary bootloader (with software) (v.1.3) | www.LPCware.com 

Folder:AN10995 LPC1100 secondary bootloader (with software)\AN10995\Bootloader

   pastedImage_3.png

When you do the flash operation, don't let other module's interrupt to break the flash operation.

Wish it helps you!

If you still have question, please let me know!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

4,137 次查看
sudarshans
Contributor III

Hi Kerry Zhou,

Thank you for your timely help

Best Regards,

Praseen

0 项奖励
回复
4,137 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Praseen,

    If your problem is not solved, please let me know.

    If your problem is solved, please help to mark the correct answer to close this case.

    Thank you and have a nice day!



Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
4,137 次查看
sudarshans
Contributor III

Hi Kerry,

Thank you again for your timely response. I have posted another query on receiving extended id based CAN messages via filtering using the LPC11C24. In case you do find the time, please have a look.

Best Regards,

Praseen 

0 项奖励
回复
4,137 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Praseen,

   You can give me your link, I will help you to check it.


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

4,137 次查看
sudarshans
Contributor III

Hi Kerry,

This is the link. I hope that you can open it.

https://community.nxp.com/thread/449450

Thanks and Best Regards,

Praseen

0 项奖励
回复