Methods of flash program

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Albert on Mon Feb 21 06:10:28 MST 2011
[IMG]http://knowledgebase.nxp.com/images/icons/icon1.gif[/IMG] [B]JTAG, SWD e IAP - Program memory[/B]
        Hi all,

My doubts can be obvious for someone.

I have a little of doubts about the flash programing methods.

When I debug my code with JTAG or SWD these methods program the code in  the flash automatically, but how? They call the IAP command for do the  program?

IAP comand can just write and erase data in the flash, or it can program the code in the flash as ISP? What the function of IAP?

I read on a docment that if you put 0 on P0.22 after reset the ISP mode  is called and know as "first boot", but in the same condition the  processor can enter on IAP mode, which is know of "Second boot" . How  can I enter on the "second boot"?