Does LPC54018M have IAP FLASH functions?

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

Does LPC54018M have IAP FLASH functions?

ソリューションへジャンプ
2,087件の閲覧回数
shaozhongliangs
NXP Employee
NXP Employee

I want to program the internal 4 MByte Flash of the LPC54018M via IAP. In the SDK there is the "boards\lpcxpresso54s018m\driver_examples\iap\iap_basic" example, but it doesn't include IAP_PrepareSectorForWrite/IAP_EraseSector functions.  These APIs  don't work after adding into the example, even though running in on-chip SRAM. Does LPC54018M have IAP FLASH functions?

IAP example

PartID: 1FD4018

The major version is: 1501

The minor version is: 0

Unique ID: 0000
IAP_PrepareSectorForWrite return 0x27d9
IAP_EraseSector return 0x27d9

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 解決策
1,937件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi  S.z. Liang

LPC540xx, unlike LPC546xx, doesn't integrate IAP prepare sectors for write operation and erase sector command.

Actually, According to LPC540xx UM, There are only 4 IAP commands valid.

pastedImage_2.png

If we check LPC546xx UM, more IAP commands are supported:

     pastedImage_3.png

That's different.


Have a great day,
Jun Zhang

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
1,687件の閲覧回数
springc
Contributor II

Hi Jun,

I am going to build LPC54S018J4M a internal flash erase/ write function with iap. But as previous question, clarified the iap only 4 command for the chip. could you help to explain how to do a erase/ write bootloader to SRAM through IAR + J-Link for the chip? SPIFI command or other?

I try to use access 0x40080000 (SPIFI command registers), but return me as 0s ~~ Why? any procedure need to enable r/w for this registers?

Thanks, Spring ~~

タグ(1)
0 件の賞賛
返信
1,938件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi  S.z. Liang

LPC540xx, unlike LPC546xx, doesn't integrate IAP prepare sectors for write operation and erase sector command.

Actually, According to LPC540xx UM, There are only 4 IAP commands valid.

pastedImage_2.png

If we check LPC546xx UM, more IAP commands are supported:

     pastedImage_3.png

That's different.


Have a great day,
Jun Zhang

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛
返信
1,937件の閲覧回数
converse
Senior Contributor V

Isn't the 54018 a flashless part? That explains why it has no IAP...

0 件の賞賛
返信
1,937件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

I understood your mentioned "LPC54018M" as "LPC54018JxM", right?

LPC54018JxM has Internal Serial Flash but other LPC540xx doesn't have internal Flash.

So LPC54018JxM  has flash. But as LPC54018JxM flash is a internal serial flash, ( encapsulating a SPIFI flash inside the package), It's different with other on chip flash chips.  So I am with your angle of view to understand this issue.

 


Have a great day,
Jun Zhang

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛
返信