LPC1830 lpcopen flashiap sample code

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

LPC1830 lpcopen flashiap sample code

Jump to solution
910 Views
kensu
Contributor V

Hi 

I have a question about flashiap.c

/* Start signature address of the last sector*/
#define START_ADDR_LAST_SECTOR 0x1A070000

Why does the last sector is 0x1A070000, how to calculate this address?

In my understanding, flash base is 0x14000000, I don't know hwy the sector 14 is 0x1A070000

 

Please teach me.

 

Regards

Ken

 

0 Kudos
1 Solution
903 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello kensu,

This address is for LPC18xx with on-chip flash, for LPC1830, this space is reserved.

For on-chip flash, yes, the start address of last sector is 0x10A70000:

444.jpg

 

Regards,

Alice

View solution in original post

0 Kudos
2 Replies
904 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello kensu,

This address is for LPC18xx with on-chip flash, for LPC1830, this space is reserved.

For on-chip flash, yes, the start address of last sector is 0x10A70000:

444.jpg

 

Regards,

Alice

0 Kudos
876 Views
kensu
Contributor V

Hello Alice

 

I understood now.

Thanks for your reply.

 

Regards

Ken

0 Kudos