DFU in AN11232

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

DFU in AN11232

1,418件の閲覧回数
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?
ラベル(1)
0 件の賞賛
返信
1 返信

1,388件の閲覧回数
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 件の賞賛
返信