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

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

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

Jump to solution
4,827 Views
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?

Labels (2)
1 Solution
3,053 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

6 Replies
3,054 Views
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!
-----------------------------------------------------------------------------------------------------------------------

3,053 Views
sudarshans
Contributor III

Hi Kerry Zhou,

Thank you for your timely help

Best Regards,

Praseen

0 Kudos
Reply
3,053 Views
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 Kudos
Reply
3,053 Views
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 Kudos
Reply
3,053 Views
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!
-----------------------------------------------------------------------------------------------------------------------

3,053 Views
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 Kudos
Reply