Forums - USB Flash question

15 posts / 0 new
Last post
USB Flash question
f81258
Join Date: 15 Nov 18
Posts: 21
Posted: Wed, 2019-01-16 06:36

HI Qualcomm Team:

i no connect J34 pin1 and pin2, but it enter EDL mode(Download Mode ),same time it can not flash image, Before can be normal flash image.

https://upload.cc/i1/2019/01/16/UiGau3.png

How can I solve it?

Best Regards

Rick

  • Up0
  • Down0
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Fri, 2019-01-18 09:47

Can you please provide us your build path and instructions used for the flashed image ?
We are not able to view the image, kindly share us differend shared location.

The issue usually occurs if you try to flash manufacturing image instead of mission mode image.
Kindly note the mission mode image will be available in location @target\quartz\demo\XXXX_demo\build\gcc
 

  • Up0
  • Down0
f81258
Join Date: 15 Nov 18
Posts: 21
Posted: Sun, 2019-01-20 22:21

Hi

i updata the image,

https://drive.google.com/file/d/1lmWdl_TqqidLLbOD_ZF0MuCzcU9EYhtw/view?u...

i just use USB connect J6, no connect J34.

 

my build path is 

C:\Users\user\Desktop\qca4020.or_.3.0_00011.1\QCA4020.OR.3.0_00011.1\target\quartz\demo\QCLI_demo\build\gcc

Best Regards.

Rick.

  • Up0
  • Down0
gesqdn-forum
Join Date: 4 Nov 18
Posts: 184
Posted: Mon, 2019-01-28 01:27
Hi,
The path you are building the application is correct but after looking into your pin configurations, I request you try below pin setting for flashing and booting the application in QCA4020.
Flash using USB (Jumper settings made on QCA4020) :
Connect pins 2 and 3 for J6 Power
Connect J20  pins 1 and 2 to power up LED
Connect pins 2 and 3 for Debug UART
Connect pins 2 and 3 for Debug UART
Connect pins 1 and 2 for Debug UART
Connect pins 1 and 2 for Debug UART
Connect J34  for flashing pins 1 and 2, removing for boot
 
Hope you are following the build instructions given in section 3.5 Build sample applications from 80-ya121-140-qca402xcdb2x_development_kit_user_guide.pdf which can be downloaded from https://developer.qualcomm.com/download/qca4020-qca4024/qca402x-cdb2x-de...
  • Up0
  • Down0
f81258
Join Date: 15 Nov 18
Posts: 21
Posted: Mon, 2019-01-28 05:38

hi gesqdn-forum:

I follow your steps and the result is the same.

The point is that I didn't connect any foot of J34, he always showed QDLoader 9008(EDL mode).

you can look 

https://drive.google.com/open?id=1lnMPIWYX0xTg8UvR3sYLydplb6G-TuMM

Is it possible that there is a problem with the hardware?

Best Regards

Rick

  • Up0
  • Down0
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Tue, 2019-01-29 10:38

Its hard to comment on the hardware fault at this stage.
Can you try to build and  flash latest SDK image to check if the problem still persists ?
 

  • Up0
  • Down0
f81258
Join Date: 15 Nov 18
Posts: 21
Posted: Tue, 2019-01-29 17:40

Hi raja_pedada:

now i can not flash latest SDK image, because my hardware it always enter EDL Mode in my restart power same time not connect J34 pin 1 and pin 2.
 my "QCA4020.OR.3.0_00011.1\target\quartz\demo\QCLI_demo\build\gcc\output\port_trace.txt"
always "error"
this my "port_trace.txt" data
 
09:36:30: INFO: FH_LOADER WAS CALLED EXACTLY LIKE THIS
************************************************
D:\QCA4020_24\QCA4020.OR.3.0_00011.1\target\build\tools\flash\fh_loader.exe --port=\\.\COM25 --porttracename=output\port_trace.txt --memoryname=spinor --sendxml=output\generated_fwd_table.xml --search_path=D:\QCA4020_24\QCA4020.OR.3.0_00011.1\target\quartz\demo\QCLI_demo\build\gcc\output,D:\QCA4020_24\QCA4020.OR.3.0_00011.1\target\bin\cortex-m0\threadx,D:\QCA4020_24\QCA4020.OR.3.0_00011.1\target\bin\wlan,output 
************************************************
 
09:36:30: DEBUG: Binary build date: Jul 19 2018 @ 13:19:46
 
09:36:30: DEBUG: Build Version: 18.07.19.13.19.46
 
09:36:30: INFO: Current working dir (cwd): D:\QCA4020_24\QCA4020.OR.3.0_00011.1\target\quartz\demo\QCLI_demo\build\gcc\
09:36:30: INFO: Showing network mappings to allow debugging
09:36:30: DEBUG: 會記錄新的網路連線。
 
09:36:30: DEBUG: 
 
09:36:30: DEBUG: 
 
09:36:30: DEBUG: 狀態       本機        遠端                    網路
 
09:36:30: DEBUG: 
 
09:36:30: DEBUG: -------------------------------------------------------------------------------
 
09:36:30: DEBUG: 命令已經成功完成。
 
09:36:30: DEBUG: 
 
09:36:30: INFO: 'output\' changed to
09:36:30: INFO: this 'D:\QCA4020_24\QCA4020.OR.3.0_00011.1\target\quartz\demo\QCLI_demo\build\gcc\output\'
09:36:30: INFO: 
 
 
 
09:36:30: INFO: Trying to store 'output\generated_fwd_table.xml' in string table
09:36:30: DEBUG: ==================================================================================
09:36:30: DEBUG: ==================================================================================
09:36:30: INFO: Looking for file 'output\generated_fwd_table.xml'
09:36:30: DEBUG: 1. Calling stat(D:\QCA4020_24\QCA4020.OR.3.0_00011.1\target\quartz\demo\QCLI_demo\build\gcc\output\output\generated_fwd_table.xml')
09:36:30: DEBUG: 1. Calling stat(D:\QCA4020_24\QCA4020.OR.3.0_00011.1\target\bin\cortex-m0\threadx\output\generated_fwd_table.xml')
09:36:30: DEBUG: 1. Calling stat(D:\QCA4020_24\QCA4020.OR.3.0_00011.1\target\bin\wlan\output\generated_fwd_table.xml')
09:36:30: DEBUG: 1. Calling stat(D:\QCA4020_24\QCA4020.OR.3.0_00011.1\target\quartz\demo\QCLI_demo\build\gcc\output\output\generated_fwd_table.xml')
09:36:30: DEBUG: 2. Calling stat(output\generated_fwd_table.xml')
09:36:30: DEBUG: 2. Calling fopen('D:\QCA4020_24\QCA4020.OR.3.0_00011.1\target\quartz\demo\QCLI_demo\build\gcc\output\generated_fwd_table.xml') with AccessMode='rb'
09:36:30: DEBUG: Trying get filesize, calling fseek()
09:36:30: DEBUG: Found 'output\generated_fwd_table.xml' (611 bytes) in local directory 'D:\QCA4020_24\QCA4020.OR.3.0_00011.1\target\quartz\demo\QCLI_demo\build\gcc\
09:36:30: DEBUG: 2. Calling fopen('D:\QCA4020_24\QCA4020.OR.3.0_00011.1\target\quartz\demo\QCLI_demo\build\gcc\output\generated_fwd_table.xml') with AccessMode='r'
09:36:30: DEBUG: Trying get filesize, calling fseek()
09:36:30: INFO: User wants to talk to port '\\.\COM25'
09:36:30: DEBUG: port_fd=0xE4
 
09:36:30: INFO: Took       0.00000000 seconds to open port
09:36:30: INFO: Sorting TAGS to ensure order is <configure>,<erase>, others, <patch>,<power>
09:36:30: INFO: If  you don't want this, use --dontsorttags
 
09:36:30: INFO: Sending <configure>
09:36:30: DEBUG: CHANNEL DATA (P0000) (H00202) (    248 bytes) - HOST TO TARGET -->
===========================================================================================================
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<configure MemoryName="spinor" Verbose="0" AlwaysValidate="0" MaxDigestTableSizeInBytes="8192" MaxPayloadSizeToTargetInBytes="1048576" ZlpAwareHost="1" SkipStorageInit="0" TargetName="8960" />
</data>
 
============================================================================================================
 
09:36:30: DEBUG: CharsInBuffer=0 Trying to read from USB 8192 bytes
09:36:30: DEBUG: CHANNEL DATA (1313 bytes) <-- TARGET to HOST
09:36:30: DEBUG: CharsInBuffer = 1313
09:36:30: DEBUG: printBuffer:5276 PRETTYPRINT Buffer is 1313 bytes
 
09:36:30: DEBUG: printBuffer:5353 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31 <?xml version="1
09:36:30: DEBUG: printBuffer:5353 2E 30 22 20 65 6E 63 6F 64 69 6E 67 3D 22 55 54 .0" encoding="UT
09:36:30: DEBUG: printBuffer:5353 46 2D 38 22 20 3F 3E 0A 3C 64 61 74 61 3E 0A 3C F-8" ?>.<data>.<
09:36:30: DEBUG: printBuffer:5353 6C 6F 67 20 76 61 6C 75 65 3D 22 42 69 6E 61 72 log value="Binar
09:36:30: DEBUG: printBuffer:5353 79 20 62 75 69 6C 64 20 64 61 74 65 3A 20 4E 6F y build date: No
09:36:30: DEBUG: printBuffer:5353 76 20 20 39 20 32 30 31 38 20 40 20 31 34 3A 33 v  9 2018 @ 14:3
09:36:30: DEBUG: printBuffer:5353 39 3A 34 32 22 2F 3E 0A 3C 2F 64 61 74 61 3E 3C 9:42"/>.</data><
09:36:30: DEBUG: printBuffer:5353 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31 2E ?xml version="1.
09:36:30: DEBUG: printBuffer:5353 30 22 20 65 6E 63 6F 64 69 6E 67 3D 22 55 54 46 0" encoding="UTF
09:36:30: DEBUG: printBuffer:5353 2D 38 22 20 3F 3E 0A 3C 64 61 74 61 3E 0A 3C 6C -8" ?>.<data>.<l
09:36:30: DEBUG: printBuffer:5353 6F 67 20 76 61 6C 75 65 3D 22 43 61 6E 6E 6F 74 og value="Cannot
09:36:30: DEBUG: printBuffer:5353 20 67 65 74 20 63 68 69 70 20 73 65 72 69 61 6C  get chip serial
09:36:30: DEBUG: printBuffer:5353 20 6E 75 6D 62 65 72 2C 20 73 65 63 62 6F 6F 74  number, secboot
09:36:30: DEBUG: printBuffer:5353 5F 68 77 5F 67 65 74 5F 73 65 72 69 61 6C 5F 6E _hw_get_serial_n
09:36:30: DEBUG: printBuffer:5353 75 6D 28 29 20 72 65 74 75 72 6E 65 64 20 65 72 um() returned er
09:36:30: DEBUG: printBuffer:5353 72 6E 6F 3D 31 22 2F 3E 0A 3C 2F 64 61 74 61 3E rno=1"/>.</data>
09:36:30: DEBUG: printBuffer:5353 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31 <?xml version="1
09:36:30: DEBUG: printBuffer:5353 2E 30 22 20 65 6E 63 6F 64 69 6E 67 3D 22 55 54 .0" encoding="UT
09:36:30: DEBUG: printBuffer:5353 46 2D 38 22 20 3F 3E 0A 3C 64 61 74 61 3E 0A 3C F-8" ?>.<data>.<
09:36:30: DEBUG: printBuffer:5353 6C 6F 67 20 76 61 6C 75 65 3D 22 45 52 52 4F 52 log value="ERROR
09:36:30: DEBUG: printBuffer:5353 20 30 3A 20 4C 69 6E 65 20 31 34 38 3A 20 46 41  0: Line 148: FA
09:36:30: DEBUG: printBuffer:5353 49 4C 55 52 45 5F 43 48 49 50 5F 53 45 52 49 41 ILURE_CHIP_SERIA
09:36:30: DEBUG: printBuffer:5353 4C 5F 4E 55 4D 42 45 52 22 2F 3E 0A 3C 2F 64 61 L_NUMBER"/>.</da
09:36:30: DEBUG: printBuffer:5353 74 61 3E 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E ta><?xml version
09:36:30: DEBUG: printBuffer:5353 3D 22 31 2E 30 22 20 65 6E 63 6F 64 69 6E 67 3D ="1.0" encoding=
09:36:30: DEBUG: printBuffer:5353 22 55 54 46 2D 38 22 20 3F 3E 0A 3C 64 61 74 61 "UTF-8" ?>.<data
09:36:30: DEBUG: printBuffer:5353 3E 0A 3C 6C 6F 67 20 76 61 6C 75 65 3D 22 43 68 >.<log value="Ch
09:36:30: DEBUG: printBuffer:5353 69 70 20 73 65 72 69 61 6C 20 6E 75 6D 3A 20 30 ip serial num: 0
09:36:30: DEBUG: printBuffer:5353 20 28 30 78 30 29 22 2F 3E 0A 3C 2F 64 61 74 61  (0x0)"/>.</data
09:36:30: DEBUG: printBuffer:5353 3E 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 ><?xml version="
09:36:30: DEBUG: printBuffer:5353 31 2E 30 22 20 65 6E 63 6F 64 69 6E 67 3D 22 55 1.0" encoding="U
09:36:30: DEBUG: printBuffer:5353 54 46 2D 38 22 20 3F 3E 0A 3C 64 61 74 61 3E 0A TF-8" ?>.<data>.
09:36:30: DEBUG: printBuffer:5353 3C 6C 6F 67 20 76 61 6C 75 65 3D 22 53 75 70 70 <log value="Supp
09:36:30: DEBUG: printBuffer:5353 6F 72 74 65 64 20 46 75 6E 63 74 69 6F 6E 73 3A orted Functions:
09:36:30: DEBUG: printBuffer:5353 20 70 72 6F 67 72 61 6D 20 63 6F 6E 66 69 67 75  program configu
09:36:30: DEBUG: printBuffer:5353 72 65 20 6E 6F 70 20 66 69 72 6D 77 61 72 65 77 re nop firmwarew
09:36:30: DEBUG: printBuffer:5353 72 69 74 65 20 70 61 74 63 68 20 73 65 74 62 6F rite patch setbo
09:36:30: DEBUG: printBuffer:5353 6F 74 61 62 6C 65 73 74 6F 72 61 67 65 64 72 69 otablestoragedri
09:36:30: DEBUG: printBuffer:5353 76 65 20 75 66 73 20 65 6D 6D 63 20 70 6F 77 65 ve ufs emmc powe
09:36:30: DEBUG: printBuffer:5353 72 20 62 65 6E 63 68 6D 61 72 6B 20 72 65 61 64 r benchmark read
09:36:30: DEBUG: printBuffer:5353 20 67 65 74 73 74 6F 72 61 67 65 69 6E 66 6F 20  getstorageinfo 
09:36:30: DEBUG: printBuffer:5353 67 65 74 73 68 61 32 35 36 64 69 67 65 73 74 20 getsha256digest 
09:36:30: DEBUG: printBuffer:5353 65 72 61 73 65 20 22 2F 3E 0A 3C 2F 64 61 74 61 erase "/>.</data
09:36:30: DEBUG: printBuffer:5353 3E 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 ><?xml version="
09:36:30: DEBUG: printBuffer:5353 31 2E 30 22 20 65 6E 63 6F 64 69 6E 67 3D 22 55 1.0" encoding="U
09:36:30: DEBUG: printBuffer:5353 54 46 2D 38 22 20 3F 3E 0A 3C 64 61 74 61 3E 0A TF-8" ?>.<data>.
09:36:30: DEBUG: printBuffer:5353 3C 6C 6F 67 20 76 61 6C 75 65 3D 22 66 68 2E 61 <log value="fh.a
09:36:30: DEBUG: printBuffer:5353 74 74 72 73 2E 4D 61 78 50 61 79 6C 6F 61 64 53 ttrs.MaxPayloadS
09:36:30: DEBUG: printBuffer:5353 69 7A 65 54 6F 54 61 72 67 65 74 49 6E 42 79 74 izeToTargetInByt
09:36:30: DEBUG: printBuffer:5353 65 73 20 6F 66 20 31 30 34 38 35 37 36 20 3E 20 es of 1048576 > 
09:36:30: DEBUG: printBuffer:5353 66 68 2E 63 68 61 6E 6E 65 6C 5F 62 75 66 66 65 fh.channel_buffe
09:36:30: DEBUG: printBuffer:5353 72 5F 63 61 70 61 63 69 74 79 20 6F 66 20 34 30 r_capacity of 40
09:36:30: DEBUG: printBuffer:5353 39 36 22 2F 3E 0A 3C 2F 64 61 74 61 3E 3C 3F 78 96"/>.</data><?x
09:36:30: DEBUG: printBuffer:5353 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31 2E 30 22 ml version="1.0"
09:36:30: DEBUG: printBuffer:5353 20 65 6E 63 6F 64 69 6E 67 3D 22 55 54 46 2D 38  encoding="UTF-8
09:36:30: DEBUG: printBuffer:5353 22 20 3F 3E 0A 3C 64 61 74 61 3E 0A 3C 6C 6F 67 " ?>.<data>.<log
09:36:30: DEBUG: printBuffer:5353 20 76 61 6C 75 65 3D 22 43 61 6C 6C 69 6E 67 20  value="Calling 
09:36:30: DEBUG: printBuffer:5353 75 73 62 5F 61 6C 5F 62 75 6C 6B 5F 73 65 74 5F usb_al_bulk_set_
09:36:30: DEBUG: printBuffer:5353 7A 6C 70 5F 6D 6F 64 65 28 54 52 55 45 29 20 73 zlp_mode(TRUE) s
09:36:30: DEBUG: printBuffer:5353 69 6E 63 65 20 5A 6C 70 41 77 61 72 65 48 6F 73 ince ZlpAwareHos
09:36:30: DEBUG: printBuffer:5353 74 3D 27 31 27 22 2F 3E 0A 3C 2F 64 61 74 61 3E t='1'"/>.</data>
09:36:30: DEBUG: printBuffer:5353 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31 <?xml version="1
09:36:30: DEBUG: printBuffer:5353 2E 30 22 20 65 6E 63 6F 64 69 6E 67 3D 22 55 54 .0" encoding="UT
09:36:30: DEBUG: printBuffer:5353 46 2D 38 22 20 3F 3E 0A 3C 64 61 74 61 3E 0A 3C F-8" ?>.<data>.<
09:36:30: DEBUG: printBuffer:5353 72 65 73 70 6F 6E 73 65 20 76 61 6C 75 65 3D 22 response value="
09:36:30: DEBUG: printBuffer:5353 4E 41 4B 22 20 4D 69 6E 56 65 72 73 69 6F 6E 53 NAK" MinVersionS
09:36:30: DEBUG: printBuffer:5353 75 70 70 6F 72 74 65 64 3D 22 31 22 20 4D 65 6D upported="1" Mem
09:36:30: DEBUG: printBuffer:5353 6F 72 79 4E 61 6D 65 3D 22 73 70 69 6E 6F 72 22 oryName="spinor"
09:36:30: DEBUG: printBuffer:5353 20 4D 61 78 50 61 79 6C 6F 61 64 53 69 7A 65 46  MaxPayloadSizeF
09:36:30: DEBUG: printBuffer:5353 72 6F 6D 54 61 72 67 65 74 49 6E 42 79 74 65 73 romTargetInBytes
09:36:30: DEBUG: printBuffer:5353 3D 22 34 30 39 36 22 20 4D 61 78 50 61 79 6C 6F ="4096" MaxPaylo
09:36:30: DEBUG: printBuffer:5353 61 64 53 69 7A 65 54 6F 54 61 72 67 65 74 49 6E adSizeToTargetIn
09:36:30: DEBUG: printBuffer:5353 42 79 74 65 73 3D 22 34 30 39 36 22 20 4D 61 78 Bytes="4096" Max
09:36:30: DEBUG: printBuffer:5353 50 61 79 6C 6F 61 64 53 69 7A 65 54 6F 54 61 72 PayloadSizeToTar
09:36:30: DEBUG: printBuffer:5353 67 65 74 49 6E 42 79 74 65 73 53 75 70 70 6F 72 getInBytesSuppor
09:36:30: DEBUG: printBuffer:5353 74 65 64 3D 22 34 30 39 36 22 20 4D 61 78 58 4D ted="4096" MaxXM
09:36:30: DEBUG: printBuffer:5353 4C 53 69 7A 65 49 6E 42 79 74 65 73 3D 22 34 30 LSizeInBytes="40
09:36:30: DEBUG: printBuffer:5353 39 36 22 20 56 65 72 73 69 6F 6E 3D 22 31 22 20 96" Version="1" 
09:36:30: DEBUG: printBuffer:5353 54 61 72 67 65 74 4E 61 6D 65 3D 22 51 43 41 34 TargetName="QCA4
09:36:30: DEBUG: printBuffer:5353 30 32 30 22 20 44 61 74 65 54 69 6D 65 3D 22 4E 020" DateTime="N
09:36:30: DEBUG: printBuffer:5353 6F 76 20 20 39 20 32 30 31 38 20 2D 20 31 34 3A ov  9 2018 - 14:
09:36:30: DEBUG: printBuffer:5353 33 39 3A 34 32 22 20 2F 3E 0A 3C 2F 64 61 74 61 39:42" />.</data
09:36:30: DEBUG: printBuffer:5353 3E                                              >
09:36:30: DEBUG: printBuffer:5366 
 
 
09:36:30: DEBUG: XML FILE (111 bytes): CharsInBuffer=1313-111=1202
-------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="Binary build date: Nov  9 2018 @ 14:39:42"/>
</data>
-------------------------------------------------------------------------------------------
 
09:36:30: INFO: TARGET SAID: 'Binary build date: Nov  9 2018 @ 14:39:42'
09:36:30: DEBUG: XML FILE (145 bytes): CharsInBuffer=1202-145=1057
-------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="Cannot get chip serial number, secboot_hw_get_serial_num() returned errno=1"/>
</data>
-------------------------------------------------------------------------------------------
 
09:36:30: INFO: TARGET SAID: 'Cannot get chip serial number, secboot_hw_get_serial_num() returned errno=1'
09:36:30: DEBUG: XML FILE (115 bytes): CharsInBuffer=1057-115=942
-------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="ERROR 0: Line 148: FAILURE_CHIP_SERIAL_NUMBER"/>
</data>
-------------------------------------------------------------------------------------------
 
09:36:30: INFO: TARGET SAID: 'ERROR 0: Line 148: FAILURE_CHIP_SERIAL_NUMBER'
09:36:30: DEBUG: XML FILE (94 bytes): CharsInBuffer=942-94=848
-------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="Chip serial num: 0 (0x0)"/>
</data>
-------------------------------------------------------------------------------------------
 
09:36:30: INFO: TARGET SAID: 'Chip serial num: 0 (0x0)'
09:36:30: DEBUG: XML FILE (224 bytes): CharsInBuffer=848-224=624
-------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="Supported Functions: program configure nop firmwarewrite patch setbootablestoragedrive ufs emmc power benchmark read getstorageinfo getsha256digest erase "/>
</data>
-------------------------------------------------------------------------------------------
 
09:36:30: INFO: TARGET SAID: 'Supported Functions: program configure nop firmwarewrite patch setbootablestoragedrive ufs emmc power benchmark read getstorageinfo getsha256digest erase '
09:36:30: DEBUG: XML FILE (156 bytes): CharsInBuffer=624-156=468
-------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="fh.attrs.MaxPayloadSizeToTargetInBytes of 1048576 > fh.channel_buffer_capacity of 4096"/>
</data>
-------------------------------------------------------------------------------------------
 
09:36:30: INFO: TARGET SAID: 'fh.attrs.MaxPayloadSizeToTargetInBytes of 1048576 _ fh.channel_buffer_capacity of 4096'
09:36:30: DEBUG: XML FILE (131 bytes): CharsInBuffer=468-131=337
-------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="Calling usb_al_bulk_set_zlp_mode(TRUE) since ZlpAwareHost='1'"/>
</data>
-------------------------------------------------------------------------------------------
 
09:36:30: INFO: TARGET SAID: 'Calling usb_al_bulk_set_zlp_mode(TRUE) since ZlpAwareHost='1''
09:36:30: DEBUG: XML FILE (337 bytes): CharsInBuffer=337-337=0
-------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<response value="NAK" MinVersionSupported="1" MemoryName="spinor" MaxPayloadSizeFromTargetInBytes="4096" MaxPayloadSizeToTargetInBytes="4096" MaxPayloadSizeToTargetInBytesSupported="4096" MaxXMLSizeInBytes="4096" Version="1" TargetName="QCA4020" DateTime="Nov  9 2018 - 14:39:42" />
</data>
-------------------------------------------------------------------------------------------
 
09:36:30: DEBUG: Response was 'NAK'
09:36:30: INFO: fh.attrs.MaxPayloadSizeToTargetInBytes = 4096
09:36:30: INFO: fh.attrs.MaxPayloadSizeToTargetInBytesSupported = 4096
09:36:30: INFO: Target returned NAK for your <configure> but it does not seem to be an error. This is ok, fh_loader.exe attributes updated
09:36:30: INFO:                         Issuing Erase                       
09:36:30: INFO:  _____              _               _____                   
09:36:30: INFO: |_   _|            (_)             |  ___|                  
09:36:30: INFO:   | | ___ ___ _   _ _ _ __   __ _  | |__ _ __ __ _ ___  ___ 
09:36:30: INFO:   | |/ __/ __| | | | | '_ \ / _` | |  __| '__/ _` / __|/ _ \
09:36:30: INFO:  _| |\__ \__ \ |_| | | | | | (_| | | |__| | | (_| \__ \  __/
09:36:30: INFO:  \___/___/___/\__,_|_|_| |_|\__, | \____/_|  \__,_|___/\___|
09:36:30: INFO:                              __/ |                          
09:36:30: INFO:                             |___/ 
 
 
09:36:30: DEBUG: CHANNEL DATA (P0001) (H00203) (    120 bytes) - HOST TO TARGET -->
===========================================================================================================
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<erase filename="" num_partition_sectors="16" start_sector="3" />
</data>
============================================================================================================
 
09:36:30: DEBUG: CharsInBuffer=0 Trying to read from USB 4096 bytes
09:36:30: DEBUG: CHANNEL DATA (1000 bytes) <-- TARGET to HOST
09:36:30: DEBUG: CharsInBuffer = 1000
09:36:30: DEBUG: printBuffer:5276 PRETTYPRINT Buffer is 1000 bytes
 
09:36:30: DEBUG: printBuffer:5353 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31 <?xml version="1
09:36:30: DEBUG: printBuffer:5353 2E 30 22 20 65 6E 63 6F 64 69 6E 67 3D 22 55 54 .0" encoding="UT
09:36:30: DEBUG: printBuffer:5353 46 2D 38 22 20 3F 3E 0A 3C 64 61 74 61 3E 0A 3C F-8" ?>.<data>.<
09:36:30: DEBUG: printBuffer:5353 6C 6F 67 20 76 61 6C 75 65 3D 22 45 52 52 4F 52 log value="ERROR
09:36:30: DEBUG: printBuffer:5353 3A 20 53 50 49 4E 4F 52 20 45 72 72 6F 72 20 2D : SPINOR Error -
09:36:30: DEBUG: printBuffer:5353 31 20 28 33 29 22 2F 3E 0A 3C 2F 64 61 74 61 3E 1 (3)"/>.</data>
09:36:30: DEBUG: printBuffer:5353 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31 <?xml version="1
09:36:30: DEBUG: printBuffer:5353 2E 30 22 20 65 6E 63 6F 64 69 6E 67 3D 22 55 54 .0" encoding="UT
09:36:30: DEBUG: printBuffer:5353 46 2D 38 22 20 3F 3E 0A 3C 64 61 74 61 3E 0A 3C F-8" ?>.<data>.<
09:36:30: DEBUG: printBuffer:5353 6C 6F 67 20 76 61 6C 75 65 3D 22 45 52 52 4F 52 log value="ERROR
09:36:30: DEBUG: printBuffer:5353 3A 20 53 50 49 4E 4F 52 20 45 72 72 6F 72 20 2D : SPINOR Error -
09:36:30: DEBUG: printBuffer:5353 31 20 28 33 29 22 2F 3E 0A 3C 2F 64 61 74 61 3E 1 (3)"/>.</data>
09:36:30: DEBUG: printBuffer:5353 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31 <?xml version="1
09:36:30: DEBUG: printBuffer:5353 2E 30 22 20 65 6E 63 6F 64 69 6E 67 3D 22 55 54 .0" encoding="UT
09:36:30: DEBUG: printBuffer:5353 46 2D 38 22 20 3F 3E 0A 3C 64 61 74 61 3E 0A 3C F-8" ?>.<data>.<
09:36:30: DEBUG: printBuffer:5353 6C 6F 67 20 76 61 6C 75 65 3D 22 45 52 52 4F 52 log value="ERROR
09:36:30: DEBUG: printBuffer:5353 3A 20 46 61 69 6C 65 64 20 74 6F 20 6F 70 65 6E : Failed to open
09:36:30: DEBUG: printBuffer:5353 20 74 68 65 20 53 50 49 20 4E 4F 52 20 44 65 76  the SPI NOR Dev
09:36:30: DEBUG: printBuffer:5353 69 63 65 20 2D 31 20 28 33 29 22 2F 3E 0A 3C 2F ice -1 (3)"/>.</
09:36:30: DEBUG: printBuffer:5353 64 61 74 61 3E 3C 3F 78 6D 6C 20 76 65 72 73 69 data><?xml versi
09:36:30: DEBUG: printBuffer:5353 6F 6E 3D 22 31 2E 30 22 20 65 6E 63 6F 64 69 6E on="1.0" encodin
09:36:30: DEBUG: printBuffer:5353 67 3D 22 55 54 46 2D 38 22 20 3F 3E 0A 3C 64 61 g="UTF-8" ?>.<da
09:36:30: DEBUG: printBuffer:5353 74 61 3E 0A 3C 6C 6F 67 20 76 61 6C 75 65 3D 22 ta>.<log value="
09:36:30: DEBUG: printBuffer:5353 45 52 52 4F 52 3A 20 46 61 69 6C 65 64 20 74 6F ERROR: Failed to
09:36:30: DEBUG: printBuffer:5353 20 6F 70 65 6E 20 74 68 65 20 64 65 76 69 63 65  open the device
09:36:30: DEBUG: printBuffer:5353 20 32 20 73 6C 6F 74 20 30 20 70 61 72 74 69 74  2 slot 0 partit
09:36:30: DEBUG: printBuffer:5353 69 6F 6E 20 30 22 2F 3E 0A 3C 2F 64 61 74 61 3E ion 0"/>.</data>
09:36:30: DEBUG: printBuffer:5353 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31 <?xml version="1
09:36:30: DEBUG: printBuffer:5353 2E 30 22 20 65 6E 63 6F 64 69 6E 67 3D 22 55 54 .0" encoding="UT
09:36:30: DEBUG: printBuffer:5353 46 2D 38 22 20 3F 3E 0A 3C 64 61 74 61 3E 0A 3C F-8" ?>.<data>.<
09:36:30: DEBUG: printBuffer:5353 6C 6F 67 20 76 61 6C 75 65 3D 22 49 4E 46 4F 3A log value="INFO:
09:36:30: DEBUG: printBuffer:5353 20 44 65 76 69 63 65 20 74 79 70 65 20 32 2C 20  Device type 2, 
09:36:30: DEBUG: printBuffer:5353 73 6C 6F 74 20 30 2C 20 70 61 72 74 69 74 69 6F slot 0, partitio
09:36:30: DEBUG: printBuffer:5353 6E 20 30 2C 20 65 72 72 6F 72 20 33 22 2F 3E 0A n 0, error 3"/>.
09:36:30: DEBUG: printBuffer:5353 3C 2F 64 61 74 61 3E 3C 3F 78 6D 6C 20 76 65 72 </data><?xml ver
09:36:30: DEBUG: printBuffer:5353 73 69 6F 6E 3D 22 31 2E 30 22 20 65 6E 63 6F 64 sion="1.0" encod
09:36:30: DEBUG: printBuffer:5353 69 6E 67 3D 22 55 54 46 2D 38 22 20 3F 3E 0A 3C ing="UTF-8" ?>.<
09:36:30: DEBUG: printBuffer:5353 64 61 74 61 3E 0A 3C 6C 6F 67 20 76 61 6C 75 65 data>.<log value
09:36:30: DEBUG: printBuffer:5353 3D 22 57 41 52 4E 3A 20 47 65 74 20 49 6E 66 6F ="WARN: Get Info
09:36:30: DEBUG: printBuffer:5353 20 66 61 69 6C 65 64 20 74 6F 20 6F 70 65 6E 20  failed to open 
09:36:30: DEBUG: printBuffer:5353 32 20 73 6C 6F 74 20 30 2C 20 70 61 72 74 69 74 2 slot 0, partit
09:36:30: DEBUG: printBuffer:5353 69 6F 6E 20 30 2C 20 65 72 72 6F 72 20 33 22 2F ion 0, error 3"/
09:36:30: DEBUG: printBuffer:5353 3E 0A 3C 2F 64 61 74 61 3E 3C 3F 78 6D 6C 20 76 >.</data><?xml v
09:36:30: DEBUG: printBuffer:5353 65 72 73 69 6F 6E 3D 22 31 2E 30 22 20 65 6E 63 ersion="1.0" enc
09:36:30: DEBUG: printBuffer:5353 6F 64 69 6E 67 3D 22 55 54 46 2D 38 22 20 3F 3E oding="UTF-8" ?>
09:36:30: DEBUG: printBuffer:5353 0A 3C 64 61 74 61 3E 0A 3C 6C 6F 67 20 76 61 6C .<data>.<log val
09:36:30: DEBUG: printBuffer:5353 75 65 3D 22 73 74 6F 72 61 67 65 5F 64 65 76 69 ue="storage_devi
09:36:30: DEBUG: printBuffer:5353 63 65 5F 67 65 74 5F 6E 75 6D 5F 70 61 72 74 69 ce_get_num_parti
09:36:30: DEBUG: printBuffer:5353 74 69 6F 6E 5F 73 65 63 74 6F 72 73 20 46 41 49 tion_sectors FAI
09:36:30: DEBUG: printBuffer:5353 4C 45 44 21 22 2F 3E 0A 3C 2F 64 61 74 61 3E 3C LED!"/>.</data><
09:36:30: DEBUG: printBuffer:5353 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31 2E ?xml version="1.
09:36:30: DEBUG: printBuffer:5353 30 22 20 65 6E 63 6F 64 69 6E 67 3D 22 55 54 46 0" encoding="UTF
09:36:30: DEBUG: printBuffer:5353 2D 38 22 20 3F 3E 0A 3C 64 61 74 61 3E 0A 3C 6C -8" ?>.<data>.<l
09:36:30: DEBUG: printBuffer:5353 6F 67 20 76 61 6C 75 65 3D 22 70 61 72 73 65 53 og value="parseS
09:36:30: DEBUG: printBuffer:5353 65 63 74 6F 72 56 61 6C 75 65 20 63 6F 75 6C 64 ectorValue could
09:36:30: DEBUG: printBuffer:5353 20 6E 6F 74 20 68 61 6E 64 6C 65 20 73 74 61 72  not handle star
09:36:30: DEBUG: printBuffer:5353 74 5F 73 65 63 74 6F 72 20 76 61 6C 75 65 22 2F t_sector value"/
09:36:30: DEBUG: printBuffer:5353 3E 0A 3C 2F 64 61 74 61 3E 3C 3F 78 6D 6C 20 76 >.</data><?xml v
09:36:30: DEBUG: printBuffer:5353 65 72 73 69 6F 6E 3D 22 31 2E 30 22 20 65 6E 63 ersion="1.0" enc
09:36:30: DEBUG: printBuffer:5353 6F 64 69 6E 67 3D 22 55 54 46 2D 38 22 20 3F 3E oding="UTF-8" ?>
09:36:30: DEBUG: printBuffer:5353 0A 3C 64 61 74 61 3E 0A 3C 72 65 73 70 6F 6E 73 .<data>.<respons
09:36:30: DEBUG: printBuffer:5353 65 20 76 61 6C 75 65 3D 22 4E 41 4B 22 20 2F 3E e value="NAK" />
09:36:30: DEBUG: printBuffer:5353 0A 3C 2F 64 61 74 61 3E                         .</data>
09:36:30: DEBUG: printBuffer:5366 
 
 
09:36:30: DEBUG: XML FILE (96 bytes): CharsInBuffer=1000-96=904
-------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="ERROR: SPINOR Error -1 (3)"/>
</data>
-------------------------------------------------------------------------------------------
 
09:36:30: INFO: TARGET SAID: 'ERROR: SPINOR Error -1 (3)'
09:36:30: DEBUG: XML FILE (96 bytes): CharsInBuffer=904-96=808
-------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="ERROR: SPINOR Error -1 (3)"/>
</data>
-------------------------------------------------------------------------------------------
 
09:36:30: INFO: TARGET SAID: 'ERROR: SPINOR Error -1 (3)'
09:36:30: DEBUG: XML FILE (117 bytes): CharsInBuffer=808-117=691
-------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="ERROR: Failed to open the SPI NOR Device -1 (3)"/>
</data>
-------------------------------------------------------------------------------------------
 
09:36:30: INFO: TARGET SAID: 'ERROR: Failed to open the SPI NOR Device -1 (3)'
09:36:30: DEBUG: XML FILE (123 bytes): CharsInBuffer=691-123=568
-------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="ERROR: Failed to open the device 2 slot 0 partition 0"/>
</data>
-------------------------------------------------------------------------------------------
 
09:36:30: INFO: TARGET SAID: 'ERROR: Failed to open the device 2 slot 0 partition 0'
09:36:30: DEBUG: XML FILE (119 bytes): CharsInBuffer=568-119=449
-------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="INFO: Device type 2, slot 0, partition 0, error 3"/>
</data>
-------------------------------------------------------------------------------------------
 
09:36:30: INFO: TARGET SAID: 'INFO: Device type 2, slot 0, partition 0, error 3'
09:36:30: DEBUG: XML FILE (130 bytes): CharsInBuffer=449-130=319
-------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="WARN: Get Info failed to open 2 slot 0, partition 0, error 3"/>
</data>
-------------------------------------------------------------------------------------------
 
09:36:30: INFO: TARGET SAID: 'WARN: Get Info failed to open 2 slot 0, partition 0, error 3'
09:36:30: DEBUG: XML FILE (118 bytes): CharsInBuffer=319-118=201
-------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="storage_device_get_num_partition_sectors FAILED!"/>
</data>
-------------------------------------------------------------------------------------------
 
09:36:30: INFO: TARGET SAID: 'storage_device_get_num_partition_sectors FAILED!'
09:36:30: DEBUG: XML FILE (122 bytes): CharsInBuffer=201-122=79
-------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="parseSectorValue could not handle start_sector value"/>
</data>
-------------------------------------------------------------------------------------------
 
09:36:30: INFO: TARGET SAID: 'parseSectorValue could not handle start_sector value'
09:36:30: DEBUG: XML FILE (79 bytes): CharsInBuffer=79-79=0
-------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<response value="NAK" />
</data>
-------------------------------------------------------------------------------------------
 
09:36:30: DEBUG: Response was 'NAK'
 
 
_____                    
|  ___|                   
| |__ _ __ _ __ ___  _ __ 
|  __| '__| '__/ _ \| '__|
| |__| |  | | | (_) | |   
\____/_|  |_|  \___/|_|  
 
 
09:36:30: {ERROR: handleErase:6931 Something failed with the <erase> command. The port_trace.txt can shed more information on this
Note that for eMMC <erase> is only valid for physical_partition 0. For UFS <erase> is valid for all LUNs
 

now i next step need do what?

Best Regards,

Rick.

  • Up0
  • Down0
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Thu, 2019-01-31 11:28

From the port_trace.txt we could observe the device fails to erase few sectors and its unable to complete programming the flash.

> Can you confirm there is no modifications performed with respect to flash configuration and rebuild the image ?
>Can you confirm if you are able to flash same image on to different CDB device.
> The issue can be due to loaded corrputed image on CDB device.
> However, if you install jumper on J34 1 and 2 the device should go to "HS-USB QDLoader 9008" to let you flash the image.
> After successful flash you should be able to come out of EDL mode.
 

  • Up0
  • Down0
f81258
Join Date: 15 Nov 18
Posts: 21
Posted: Thu, 2019-01-31 18:00

Hi raja_pedada:

> Can you confirm there is no modifications performed with respect to flash configuration and rebuild the image ?

yes, i not modification performed with respect to flash configuration and i have rebuild the image.


>Can you confirm if you are able to flash same image on to different CDB device.

yes, i able to flash same image on to different CDB device, it can success work.


> The issue can be due to loaded corrputed image on CDB device.
> However, if you install jumper on J34 1 and 2 the device should go to "HS-USB QDLoader 9008" to let you flash the image.
> After successful flash you should be able to come out of EDL mode.

now i can not successful flash, and alway unable to come out of EDL mode.

how i need can do it?
 
Best Regards,
 

 

Rick.
  • Up0
  • Down0
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Fri, 2019-02-01 15:23

Its hard to debug the issue as we dont see such cases where device stuck in EDL mode always.

​Kindly follow the below steps to resolve the issue:

​> Unplug the device from USB and remove the USB cable from laptop/PC.
​> Based on latest image provided via drive link, remove the Jumpers on J16, remove jumper on J33.
​> Put jumper on J34  1&2,  insert USB cable on J6 and other end to different slot on PC/laptop.
​> Check if you are able to detect the EDL and flash the image.
> If you still face issue while flashing or unable to come out of EDL mode after flashing, we suspect issue some issue might be with the hardware as you confirmed that with same image you are able to flash on different CDB device.

  • Up0
  • Down0
f81258
Join Date: 15 Nov 18
Posts: 21
Posted: Tue, 2019-02-12 18:19

Hi raja_pedada

I tried it many times and the results are the same.

if hardware issue, how i can do it?

Where can I send it for repair?

Best Regards,

Rick.

  • Up0
  • Down0
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Tue, 2019-02-26 16:19

Its suggested to check with the vendor on how to ship the device for hardware issues.

  • Up0
  • Down0
chuckbrodeur
Profile picture
Join Date: 16 Aug 19
Location: Rhode Island
Posts: 15
Posted: Tue, 2020-06-02 10:42

I'm running in to the same issue, trying to use EDL mode. The erase step fails with SPI-NOR Errors. Has anyone run into this and found a solution. (I'm using a Silex module.)

  • Up0
  • Down0
andreas
Join Date: 21 Oct 19
Posts: 34
Posted: Wed, 2020-06-10 23:36

Hi,

I ran into a similar problem once, when we got a new batch of Silex modules. The root cause was that the Silex module used a different flash type not supported by SDK version I used. I needed to step-up to a new SDK version, now on 3.1 and it worked again.

Maybe this works for you as well.

Andreas

  • Up0
  • Down0
Re: USB Flash question Best Answer
chuckbrodeur
Profile picture
Join Date: 16 Aug 19
Location: Rhode Island
Posts: 15
Posted: Thu, 2020-06-11 05:43

Thanks Andreas. Sounds like I ran into the same thing. I have been meaning to follow up on this and confirm that going to the v3.2SDK solved the issue. In my case, I had migrated to the new SDK but had an environment variable set pointing to the old one, which meant that I was actually mixing both. Once I removed that, it worked.

Chuck

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.