periph_blinky flash programming failing

cancel
Showing results for 
Search instead for 
Did you mean: 

periph_blinky flash programming failing

326 Views
bamdadslr
Contributor II

Hi, 

I am trying to use the GUI flash tool of MCUXpresso to run the blinky project on a LPC4088 board I have. I am getting the following error in the console, I would appreciate your help.

Executing flash operation 'Program' (Program executable into flash periph_blinky.hex) - Wed Jun 29 16:56:34 CDT 2022
Checking MCU info...
Scanning for targets...
Executing flash action...
SEGGER J-Link Commander V7.62c (Compiled Mar 23 2022 16:45:48)
DLL version V7.62c, compiled Mar 23 2022 16:44:32
J-Link Command File read successfully.
Processing script file...
J-Link>ExitOnError 1
J-Link Commander will now exit on Error
J-Link>r
J-Link connection not established yet but required for command.
Connecting to J-Link via USB...O.K.
Firmware: J-Link EDU Mini V1 compiled Jun 21 2022 09:53:53
Hardware version: V1.00
S/N: 801019399
License(s): FlashBP, GDB
USB speed mode: Full speed (12 MBit/s)
VTref=3.279V
Target connection not established yet but required for command.
Device "LPC4088" selected.
Connecting to target via SWD
Found SW-DP with ID 0x2BA01477
DPIDR: 0x2BA01477
CoreSight SoC-400 or earlier
Scanning AP map to find all available APs
AP[1]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x24770011)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
Found Cortex-M4 r0p1, Little endian.
FPUnit: 6 code (BP) slots and 2 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
[0][0]: E000E000 CID B105E00D PID 000BB00C SCS-M7
[0][1]: E0001000 CID B105E00D PID 003BB002 DWT
[0][2]: E0002000 CID B105E00D PID 002BB003 FPB
[0][3]: E0000000 CID B105E00D PID 003BB001 ITM
[0][4]: E0040000 CID B105900D PID 000BB9A1 TPIU
[0][5]: E0041000 CID B105900D PID 000BB925 ETM
Cortex-M4 identified.
Reset delay: 0 ms
Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
CPU did not halt after bootloader.
CPU did not halt after bootloader.
J-Link>h
PC = 1FFF01CA, CycleCnt = 00000000
R0 = 00000008, R1 = 1E57FD5F, R2 = 0000800C, R3 = 0010043C
R4 = 481D3F47, R5 = 4002C000, R6 = 40008000, R7 = 20098000
R8 = 00000002, R9 = AC180528, R10= 0861934C, R11= 13A50A97
R12= 10001EA0
SP(R13)= 1000FFC0, MSP= 1000FFC0, PSP= 5D2D5EC0, R14(LR) = 1FFF01B3
XPSR = 21000000: APSR = nzCvq, EPSR = 01000000, IPSR = 000 (NoException)
CFBP = 00000000, CONTROL = 00, FAULTMASK = 00, BASEPRI = 00, PRIMASK = 00
FPS0 = AE537007, FPS1 = BABC9E8A, FPS2 = ABD66ABD, FPS3 = 5D7B7AD6
FPS4 = 4D7F7D71, FPS5 = DFD18DA8, FPS6 = 635CAEBF, FPS7 = ED3EF09C
FPS8 = 38BFD57D, FPS9 = E8F35F6F, FPS10= 8E60C67B, FPS11= 9C1E1530
FPS12= 50B95FCF, FPS13= 87DAE819, FPS14= 69E69374, FPS15= 16C7DC9A
FPS16= FFAB7290, FPS17= CA6223BD, FPS18= E3ECFF5F, FPS19= EEDBBC9E
FPS20= F7DF02CF, FPS21= 6A26046A, FPS22= 12B07FF8, FPS23= 875CFB43
FPS24= ECDD37B8, FPS25= 4B65ABDF, FPS26= 3F6D8371, FPS27= 396AB73F
FPS28= AFD0257D, FPS29= 8439FDFE, FPS30= 71775E7A, FPS31= 0282A9F7
FPSCR= 00000000
J-Link>loadfile "C:\Users\bamda\Documents\MCUXpressoIDE_11.5.1_7266\workspace\periph_blinky\Debug\periph_blinky.hex"
Downloading file [C:\Users\bamda\Documents\MCUXpressoIDE_11.5.1_7266\workspace\periph_blinky\Debug\periph_blinky.hex]...
Writing target memory failed.
Script processing completed.
Unable to perform operation!
Command failed with exit code 1
 

0 Kudos
7 Replies

319 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello,

How about erase?

 

BR

Alice

314 Views
bamdadslr
Contributor II

Hi Alice_Yang,

Thank you so much for your response. I just tried the erase and its working: 
Executing flash operation 'Erase' (Erase flash) - Thu Jun 30 08:57:36 CDT 2022
Checking MCU info...
Scanning for targets...
Executing flash action...
SEGGER J-Link Commander V7.62c (Compiled Mar 23 2022 16:45:48)
DLL version V7.62c, compiled Mar 23 2022 16:44:32
J-Link Command File read successfully.
Processing script file...
J-Link>ExitOnError 1
J-Link Commander will now exit on Error
J-Link>r
J-Link connection not established yet but required for command.
Connecting to J-Link via USB...O.K.
Firmware: J-Link EDU Mini V1 compiled Jun 21 2022 09:53:53
Hardware version: V1.00
S/N: 801019399
License(s): FlashBP, GDB
USB speed mode: Full speed (12 MBit/s)
VTref=3.281V
Target connection not established yet but required for command.
Device "LPC4088" selected.
Connecting to target via SWD
Found SW-DP with ID 0x2BA01477
DPIDR: 0x2BA01477
CoreSight SoC-400 or earlier
Scanning AP map to find all available APs
AP[1]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x24770011)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
Found Cortex-M4 r0p1, Little endian.
FPUnit: 6 code (BP) slots and 2 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
[0][0]: E000E000 CID B105E00D PID 000BB00C SCS-M7
[0][1]: E0001000 CID B105E00D PID 003BB002 DWT
[0][2]: E0002000 CID B105E00D PID 002BB003 FPB
[0][3]: E0000000 CID B105E00D PID 003BB001 ITM
[0][4]: E0040000 CID B105900D PID 000BB9A1 TPIU
[0][5]: E0041000 CID B105900D PID 000BB925 ETM
Cortex-M4 identified.
Reset delay: 0 ms
Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
CPU did not halt after bootloader.
CPU did not halt after bootloader.
J-Link>exec EnableEraseAllFlashBanks
J-Link>erase
Without any given address range, Erase Chip will be executed
Erasing device...
J-Link: Flash download: Total time needed: 3.547s (Prepare: 0.188s, Compare: 0.000s, Erase: 3.350s, Program: 0.000s, Verify: 0.000s, Restore: 0.008s)
J-Link: Flash download: Total time needed: 45.019s (Prepare: 0.005s, Compare: 0.000s, Erase: 45.004s, Program: 0.000s, Verify: 0.000s, Restore: 0.008s)
Erasing done.
J-Link>qc
Script processing completed.

The programming is not working.

0 Kudos

280 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello,

How do you erase?

Alice_Yang_0-1656925584308.png

 

Does your board can works well before? Or it a new board?

 

You can also check your debug hardware design:

https://community.nxp.com/thread/388998  

 

Or change to anther debugger to test。

 

 

BR

Alice

 

 

0 Kudos

278 Views
bamdadslr
Contributor II

Hi,

I do the erase as you have shown in the screenshot. Yes, the board has been working fine before this, but it is the first time we are trying to set it up using MCUXpresso IDE and its internal flash programmer.

0 Kudos

272 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello,

While I have not saw erase successfully information.

 

 

0 Kudos

225 Views
bamdadslr
Contributor II

Hi Alice_Yang,

I think the erase is working fine as the dialog shows "operation completed":

Executing flash operation 'Erase' (Erase flash) - Thu Jun 30 08:57:36 CDT 2022
Checking MCU info...
Scanning for targets...
Executing flash action...
SEGGER J-Link Commander V7.62c (Compiled Mar 23 2022 16:45:48)
DLL version V7.62c, compiled Mar 23 2022 16:44:32
J-Link Command File read successfully.
Processing script file...
J-Link>ExitOnError 1
J-Link Commander will now exit on Error
J-Link>r
J-Link connection not established yet but required for command.
Connecting to J-Link via USB...O.K.
Firmware: J-Link EDU Mini V1 compiled Jun 21 2022 09:53:53
Hardware version: V1.00
S/N: 801019399
License(s): FlashBP, GDB
USB speed mode: Full speed (12 MBit/s)
VTref=3.281V
Target connection not established yet but required for command.
Device "LPC4088" selected.
Connecting to target via SWD
Found SW-DP with ID 0x2BA01477
DPIDR: 0x2BA01477
CoreSight SoC-400 or earlier
Scanning AP map to find all available APs
AP[1]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x24770011)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
Found Cortex-M4 r0p1, Little endian.
FPUnit: 6 code (BP) slots and 2 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
[0][0]: E000E000 CID B105E00D PID 000BB00C SCS-M7
[0][1]: E0001000 CID B105E00D PID 003BB002 DWT
[0][2]: E0002000 CID B105E00D PID 002BB003 FPB
[0][3]: E0000000 CID B105E00D PID 003BB001 ITM
[0][4]: E0040000 CID B105900D PID 000BB9A1 TPIU
[0][5]: E0041000 CID B105900D PID 000BB925 ETM
Cortex-M4 identified.
Reset delay: 0 ms
Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
CPU did not halt after bootloader.
CPU did not halt after bootloader.
J-Link>exec EnableEraseAllFlashBanks
J-Link>erase
Without any given address range, Erase Chip will be executed
Erasing device...
J-Link: Flash download: Total time needed: 3.547s (Prepare: 0.188s, Compare: 0.000s, Erase: 3.350s, Program: 0.000s, Verify: 0.000s, Restore: 0.008s)
J-Link: Flash download: Total time needed: 45.019s (Prepare: 0.005s, Compare: 0.000s, Erase: 45.004s, Program: 0.000s, Verify: 0.000s, Restore: 0.008s)
Erasing done.
J-Link>qc
Script processing completed.

0 Kudos

171 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello,

Program again after erase. If till can not work, make chip enter ISP mode to program, lOW P2_10 when reset.

 

BR

Alice

 

Tags (1)
0 Kudos