DFU in AN11232

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

DFU in AN11232

1,180 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kabikov on Thu Jul 31 06:29:29 MST 2014
Hi!

I'm trying to understand IAP with DFU with 11u14 & AN11232. I'm dissapointed that the flash programmed twice in usbcore.c. Detail:

usbcore.c:981    if (DFU_SetupForDownload(SetupPacket.wValue.W, SetupPacket.wLength, &eotflag )) {
usbcore.c:1164  if (DFU_Download(SetupPacket.wValue.W, SetupPacket.wLength)) {
they both call DFU_Write

Is it really need to program flash twice?
Labels (1)
0 Kudos
1 Reply

1,150 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kabikov on Fri Aug 01 02:00:07 MST 2014
Answering by myself.
uint32_t DFU_SetupForDownload(uint32_t blockNum, uint32_t len,
uint32_t *eotflag)

contains
DFUStatus = DFU_Write(blockNum, &DFUBuffer[0], 0,
&DFUGetStatusReq.bwPollTimeout[0]);

That is mean no write but just put 256 to DFUGetStatusReq.bwPollTimeout[0]. Why this is need in such... hmm original way I don't know.
0 Kudos