QN9090 flash for LPC-LINK2 GUI Flash tool

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

QN9090 flash for LPC-LINK2 GUI Flash tool

2,463 Views
yeobyi
Contributor I

I am trying to Flahs Binary to QN9090 using LPC-link2.

An error message is output and flashing is not possible.
I need help.

I don't know what is matter.

i attached imaga.

MCUXpressoIDE version : MCUXpressolIDE_11.0.1_2563

SDK : SDK_2.6.0_QN9090

Use to 'GUI_FLASH_TOOL'

pastedImage_5.png

pastedImage_4.png

[ console message ] 

Executing flash operation 'Program' (Program file into flash: UWBT-ManufTestsFW.bin) - Fri May 08 10:04:41 KST 2020
Checking MCU info...
Scanning for targets...
Executing flash action...
MCUXpresso IDE RedlinkMulti Driver v11.0 (Aug 27 2019 16:46:33 - crt_emu_cm_redlink.exe build 22)
( 0) Reading remote configuration
Wc(03). No cache support.
Found part description in XML file QN9090_internal.xml
( 5) Remote configuration complete
Reconnected to existing LinkServer process.
Using memory from core 0 after searching for a good core
( 30) Emulator Connected
( 40) Debug Halt
( 50) CPU ID
debug interface type = Cortex-M3/4 (DAP DP ID 2BA01477) over SWD TAP 0
processor type = Cortex-M4 (CPU ID 00000C24) on DAP AP 0
number of h/w breakpoints = 6
number of flash patches = 2
number of h/w watchpoints = 4
Probe(0): Connected&Reset. DpID: 2BA01477. CpuID: 00000C24. Info: <None>
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Content of CoreSight Debug ROM(s):
RBASE E00FF000: CID B105100D PID 04000BB4C4 ROM (type 0x1)
ROM 1 E000E000: CID B105E00D PID 04000BB000 Gen SCS (type 0x0)
ROM 1 E0001000: CID B105E00D PID 04003BB002 Gen DWT (type 0x0)
ROM 1 E0002000: CID B105E00D PID 04002BB003 Gen FPB (type 0x0)
ROM 1 E0000000: CID B105E00D PID 04003BB001 Gen ITM (type 0x0)
ROM 1 E0040000: CID B105900D PID 04000BB9A1 CSt TPIU type 0x11 Trace Sink - TPIU
NXP: QN9090
DAP stride is 4096 bytes (1024 words)
Inspected v.2 On-chip Flash Memory QN9090_640K.cfx
Image 'JN518x Internal Flash Aug 13 2018 11:01:24'
( 65) Chip Setup Complete
Connected: was_reset=true. was_stopped=false
( 70) License Check Complete
Loading 'UWBT-ManufTestsFW.bin' Binary 0x00000000 len 0x7EB24
Opening flash driver QN9090_640K.cfx
Sending VECTRESET to run flash driver
AFTER driver startup timeout (302 5ms retries)
Driver Addresses
Start: 04000000
Entry: 04000035
End: 040003A8
Stack: 040043A8
Mailbox:040063A8
Driver Register State
R0: 040063A8
R1: 00000000
R2: 00000000
R3: 00000000
R4: 00000000
R5: 00000000
R6: 00000000
R7: 00000000
R8: 00000000
R9: 00000000
R10: 00000000
R11: 00000000
R12: 00000000
SP: 04004388
LR: FFFFFFF9 (exception from main thread)
PC: FFFFFFFE
xPSR: 01000003
MSP: 04004388
PSP: 040043A8
CFBP: 00000001 (CONTROL=0x0, FAULTMASK=0x0, BASEPRI=0x0, PRIMASK=0x1)
Stacked Exception information at MSP
040043A4: xPSR: 01000000
040043A0: VECTPC: 04000034
0400439C: LR: 04000035
04004398: R12: 00000000
04004394: R3: 00000000
04004390: R2: 00000000
0400438C: R1: 00000000
04004388: R0: 040063A8
Exception registers
E000ED04: ICSR: 00000803 (VECTPEND=0(none), RETTOBASE, VECTACTIVE=3(hard fault))
E000ED08: VTOR: 00000000 TBLBASE=0(INCODE), TBLOFF=0x0
E000ED28: MMFSR: 01 (IACCVIOL)
E000ED29: BFSR: 00
E000ED2A: UFSR: 0000
E000ED2C: HFSR: 00000002 (VECTBL)
E000ED30: DFSR: 00000001 (HALTED)
E000ED3C: AFSR: 00000000
E000ED24: SHCSR: 00000000
E000ED34: MMAR: E000EDF8
E000ED38: BFAR: E000EDF8
E000EDFC: DEMCR: 01000000 (TRCENA)
VECTPC instructions near 01000000
00FFFFFC: (can't read - Nn(05). Wire ACK Fault in DAP access)
00FFFFFE: (can't read)
Flash Driver V.2 startup failed - rc Ef(34): Timed-out initializing flash.
(100) Writing Flash ended with an error.
File 'UWBT-ManufTestsFW.bin' load failure: Ef(34): Timed-out initializing flash.
(100) Target Connection Failed
Unable to perform operation!

Please solve this problem. 

pastedImage_3.png

Tags (2)
0 Kudos
Reply
2 Replies

2,368 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi  Seungyeob Yi,

I hope you are doing great. 

I tested by mi side and it works. I am assuming that your FW.bin file is for the QN9090, however, you are accessing from the User folder, so maybe the MCUxpresso doesn't have the privileges for access to that path.

Just to confirm, did you add the patch for this device?

QN9090 ROM Patch Update V5

Regards,

Mario

0 Kudos
Reply

1,777 Views
letuanvu
Contributor I

Hi @mario_castaneda ,

I am having the same issue with Seungyeob Yi. I've been flashing the QN9090 successfully for several times. One day, I try the debug button on the MCUXpressoIDE, it fails. After that the QN9090's flash seems unprogrammable. Please note that I am able to flash the other QN9090 kit without any problem. Do you know how to solve this issue?

Executing flash operation 'Program' (Program file into flash: qn9090dk6_hello_world.axf) - Fri Apr 15 13:12:09 ICT 2022
Checking MCU info...
Scanning for targets...
Executing flash action...
MCUXpresso IDE RedlinkMulti Driver v11.5 (Dec 16 2021 12:47:27 - crt_emu_cm_redlink build 2)
( 0) Reading remote configuration
Wc(03). No cache support.
Found chip XML file in /home/vle/Documents/MCUXpresso_11.5.0_7232/workspace/qn9090dk6_hello_world/Debug/QN9090.xml
( 5) Remote configuration complete
Reconnected to existing LinkServer process.
============= SCRIPT: QN9090Connect.scp =============
QN9090 flash connect script
APID = 0x24770011
Done
============= END SCRIPT ============================
Probe Firmware: LPC-LINK2 CMSIS-DAP V5.361 (NXP Semiconductors)
Serial Number: FTCQHWEW
VID:PID: 1FC9:0090
USB Path: /dev/hidraw1
Using memory from core 0 after searching for a good core
( 30) Emulator Connected
( 40) Debug Halt
( 50) CPU ID
debug interface type = CoreSight DP (DAP DP ID 2BA01477) over SWD TAP 0
processor type = Cortex-M4 (CPU ID 00000C24) on DAP AP 0
number of h/w breakpoints = 6
number of flash patches = 2
number of h/w watchpoints = 4
Probe(0): Connected&Reset. DpID: 2BA01477. CpuID: 00000C24. Info: <None>
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Content of CoreSight Debug ROM(s):
RBASE E00FF000: CID B105100D PID 04000BB4C4 ROM (type 0x1)
ROM 1 E000E000: CID B105E00D PID 04000BB000 Gen SCS (type 0x0)
ROM 1 E0001000: CID B105E00D PID 04003BB002 Gen DWT (type 0x0)
ROM 1 E0002000: CID B105E00D PID 04002BB003 Gen FPB (type 0x0)
ROM 1 E0000000: CID B105E00D PID 04003BB001 Gen ITM (type 0x0)
ROM 1 E0040000: CID B105900D PID 04000BB9A1 CSt TPIU type 0x11 Trace Sink - TPIU
NXP: QN9090
DAP stride is 4096 bytes (1024 words)
Inspected v.2 On-chip Flash Memory QN9090_640K.cfx
Image 'QN9090_Internal Flash Dec 16 2021 12:43:58'
Opening flash driver QN9090_640K.cfx
Sending VECTRESET to run flash driver
Flash variant 'QN9090_Internal Flash Dec 16 2021 12:43:58' detected (646656B = 1263*512 at 0x0)
Closing flash driver QN9090_640K.cfx
( 65) Chip Setup Complete
Connected: was_reset=true. was_stopped=false
( 70) License Check Complete
Verifying 'qn9090dk6_hello_world.axf' ELF code section 0 at 0x00000000 len 0x41A0
Opening flash driver QN9090_640K.cfx (already resident)
Sending VECTRESET to run flash driver
AFTER driver startup timeout (302 5ms retries)
Driver Addresses
Start: 04000000
Entry: 0400009D
End: 04000828
Stack: 04001028
Mailbox:04003C28
Driver Register State
R0: 00000005
R1: 040007B0
R2: 00000002
R3: 80000000
R4: 40009000
R5: 04000588
R6: 00000000
R7: 00000000
R8: 00000000
R9: 00000000
R10: 00000000
R11: 00000000
R12: 00000000
SP: 04000FF8
LR: 04000459
PC: 0400045C
xPSR: 81000000
MSP: 04000FF8
PSP: 04001028
CFBP: 00000001 (CONTROL=0x0, FAULTMASK=0x0, BASEPRI=0x0, PRIMASK=0x1)
Flash Driver V.2 startup failed - rc Ef(34): Timed-out initializing flash.
Verify ended with error 'Ef(34): Timed-out initializing flash.'
ELF file 'qn9090dk6_hello_world.axf' verify failure: Ef(34): Timed-out initializing flash.
(100) Target Connection Failed
Unable to perform operation!
Command failed with exit code 1
0 Kudos
Reply