Can I rewrite ROM API on LPC812 ?

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

Can I rewrite ROM API on LPC812 ?

933 次查看
kuma_hati_labo
Contributor I

Hello,

I use LPC812.

I erased All flash memory.

Can I rewrite ROM API ?

标签 (1)
0 项奖励
回复
1 回复

872 次查看
diego_charles
NXP TechSupport
NXP TechSupport

Hello Shojiro,

Since the ROM APIs  reside  on an area different than Flash memory, it should  not be  possible to erase them after erasing the flash memory.

pastedImage_1.png

From figure 2.2.1 Memory mapping,  LPC81x UM.

Other point to have into account is that the APIs residing on boot ROM will not require the flash memory to execute commands  and routines, instead,  they use pointers to certain areas of the boot ROM space.

 For example :

  • The IAP (In application Programming API ) used to  perform read and write operations to the flash memory , as directed from the user code. Will require to have an specfic location from  the bootROM  (#define IAP_LOCATION 0x1fff1ff1) and 32 bytes of RAM to perform commands.

  • The other APIs ( like Power Profile, I2C-bus ROM API, and USART API )  requiere a pointer to the ROM driver table (located on boot ROM ) to  call their respective routines. pastedImage_6.png

From Fig 51. USART driver routines pointer structure.LPC81x UM. 

I hope this information helps you.

Best regards, Diego.

0 项奖励
回复