Error while using LPCScrypt to flash LPCXpresso54102

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

Error while using LPCScrypt to flash LPCXpresso54102

1,938 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dev_2015 on Thu Oct 29 06:47:55 MST 2015
Hi,
I am using NXP OM13078  DEV BRD, LPC54102 SENSOR PROCESS/MOTION for my project.My binary file is 160 KB in size.I get an error every time I try to flash it using LPCScrypt .I have installed all the pre-requisite firmware needed for LPC Scyrpt and have made DFULink  linked with a jumper.

My targetinfo is as follows:

LPC4325: BankA 384KB, BankB 384KB PartID: 0xa001cb3c 0x2 Clock: 180000000Hz
BankA: 0x1a000000-0x1a05ffff (384K bytes) PageSize: 0x1000
BankB: 0x1b000000-0x1b05ffff (384K bytes) PageSize: 0x1000
EEPROM: 0x20040000-0x20043f7f (16256 bytes) PageSize: 0x80
ID: 0x700802d 0xab359807 0x50b3f84f 0xf5000580

The error that I get when I try to flash using LPCScrypt executables in BankA is as follows: 

....LPC_Error Address not in Flash 0x9 0x1a020000
Error: <Command line>:1: Address not in Flash 0x9 0x1a020000
   Script cmd:      program images\my_binary.bin BankA
   Last target cmd: =programPage 1a020000 6
Terminated with errors

Address shown "not in flash" seems to me as to be present in BankA. So I am stuck without a solution.

Any help in this matter will much be appreciated.

Thanks and Regards,
Dev
0 Kudos
Reply
10 Replies

1,865 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Mon Nov 02 04:53:18 MST 2015
As previously stated, LPCScrypt is not the correct tool for programming binary files into the memories of the target LPC541xx MCU.

However, the attempt did uncover a problem when programming memory whose size is not a power of 2 - such as the 384KB memories of the LPC4325 internal flash.

This issue will be addressed in the next release of LPCScrypt.

Please note that this does not impact programming CMSIS-DAP firmware onto these boards.

Yours,

LPCXpresso-support

0 Kudos
Reply

1,865 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Fri Oct 30 09:55:23 MST 2015
Before dealing with the problem here, some words of clarification below:

The development board you are using contains a built in 'LPC-Link2' debug probe. This debug probe is wired to the lower USB port on this board and uses an LPC4325 MCU. While this is a powerful MCU in its own right, on this board it is designed to perform one function - to act as a debug probe for the LPC54102.

Therefore programming user code into this MCU is unlikely to be a sensible thing to do.

However since LPCScrypt is designed to program the LPC18xx and LPC43xx family of MCU's you should not have seen an error during a programming operation.

I have sent a private mail to you to discuss this issue further.

Yours,
LPCXpresso-support
0 Kudos
Reply

1,865 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dev_2015 on Fri Oct 30 03:52:18 MST 2015
The command I use this:
C:\NXP\LPCScrypt>bin\lpcscrypt.exe program images\my_binary.bin BankA
0 Kudos
Reply

1,865 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vtw.433e on Fri Oct 30 02:29:42 MST 2015
What is the command line you are using? I.e. What is thelpcscrypt command you are using?
0 Kudos
Reply

1,865 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dev_2015 on Fri Oct 30 02:04:27 MST 2015
I am using the windows command prompt.
0 Kudos
Reply

1,865 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dev_2015 on Fri Oct 30 01:26:59 MST 2015
Normal Windows 7 command line from LPCScrypt installation with it's executables.
0 Kudos
Reply

1,865 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vtw.433e on Fri Oct 30 01:06:22 MST 2015
So, what is your command line?
0 Kudos
Reply

1,865 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dev_2015 on Thu Oct 29 22:26:09 MST 2015
I am programming the LPC4325 chip in the board.So it is the LPC4300 series.
0 Kudos
Reply

1,865 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vtw.433e on Thu Oct 29 09:22:45 MST 2015
First line of the overview states:
LPCScrypt is a command-line based, fast flash, EEPROM, OTP and security programming tool for the LPC1800 and LPC4300 series of microcontrollers.

No mention of LPC54xxx...
0 Kudos
Reply

1,865 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mysepp on Thu Oct 29 06:55:57 MST 2015
LPC4325 or LPC54102?
0 Kudos
Reply