Small non-critical error in User-Manual UM10503 Rev 1.8 (28 January 2014) - IAP command/parameter size

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

Small non-critical error in User-Manual UM10503 Rev 1.8 (28 January 2014) - IAP command/parameter size

342 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by capiman on Mon Jan 26 03:21:41 MST 2015
According to User-Manual UM10503 Rev 1.8 (28 January 2014),
page 81 the IAP command/result parameter are defined as following:

unsigned long command[6]; unsigned long result[5];

But, if I looked correctly, there is no Param bigger than 3, as well as Result bigger than 3.

Therefore

unsigned long command[4]; unsigned long result[4];

shall be enough?

(Same problem in LPC176x/5x UM10360 Rev. 3.1 from 2 April 2014,
where Command[5] and Result[5] is used, but there as well [4] for both shall be enough?)

Bigger is better, so not critical, but not really needed. Can NXP confirm?
Labels (1)
0 Kudos
2 Replies

329 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by capiman on Tue Jan 27 09:23:55 MST 2015
Ah, ok, thanks for clarification. I have overseen that command/status is added as command[0]/result[0]
and Param0 is put to command[1] and so on, as well as result[1] is Result0 and so on.
0 Kudos

329 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Tue Jan 27 08:02:00 MST 2015
Hi capiman,
In both devices the command and result arrays size should be 5 each. Please see below example


Quote:
Command Copy RAM to Flash
Input Command code: 51(decimal)
Param0(DST): Destination flash address where data bytes are to be written. This
address should be a 256 byte boundary.
Param1(SRC): Source RAM address from which data bytes are to be read. This
address should be a word boundary.
Param2: Number of bytes to be written. Should be 256 | 512 | 1024 | 4096.
Param3: CPU Clock Frequency (CCLK) in kHz.



In this case size of command array is 5(including command itself).

Similarly result array size should be 5(including status code). Please see below result array.


Quote:
Command Read device serial number
Input Command code: 58(decimal)
Parameters: None
Return Code CMD_SUCCESS |
Result Result0: First 32-bit word of Device Identification Number (at the lowest address)
Result1: Second 32-bit word of Device Identification Number
Result2: Third 32-bit word of Device Identification Number
Result3: Fourth 32-bit word of Device Identification Number
Description This command is used to read the device identification number. The serial number
may be used to uniquely identify a single unit among all LPC176x/5x devices.



Thanks for the feedback. We will correct LPC4300 command and result parameter size
0 Kudos