LPC824 IAP routines do not work on common comand/result buffer

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

LPC824 IAP routines do not work on common comand/result buffer

1,217件の閲覧回数
wernerf
Contributor II

Hi all,

working on an LPC824 project I re-used the IAP routines of an older LPC1768 project which worked fine there. These IAP routines use a common buffer for both command input and result output. The user manual explicitely allows this to be done.

pastedImage_4.png

Unfortunately this doesnt work with the LPC824 (at least Rev. 1A). You will always get an INVALID_COMMAND code as result. It looks like the IAP routine writes to ComRes[0] too soon an kills its own command.

So the user manual (UM10800) is wrong here and you HAVE TO use two different buffers.

pastedImage_3.png

ラベル(1)
0 件の賞賛
返信
1 返信

961件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi Werner Fritsch,

I'd like to suggest that you can refer to the flashiap demo in the LPCOpen, and the demo demonstrates programming a FLASH block during run-time and generating a FLASH signature.

The LPCOpen's link:

cache.nxp.com/files/microcontrollers/software/LPCWare/lpcopen_2_19_keil_iar_nxp_lpcxpresso_824.zip

Hope it helps.
Have a great day,
Ping

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

0 件の賞賛
返信