background image

 

 

140-00217-100 

 

7. Click 

Next

 and finish install by following the instruction of dialog. If you see 

Security Warning

 

dialog during the installation, click 

Install Anyway

 

8. Restart Eclipse. 

 

9. From top menu, click 

Window > Preference

10. At left pane of 

Preference

 dialog, select 

MCU > Global OpenOCD Path

11. Set 

Folder

 to: 

C:\Program Files (x86)\openocd\bin 

Summary of Contents for SX-ULPGN-BTZ

Page 1: ...APPLICATION NOTE SX ULPGN BTZ Development Quick Start Guide Silex Technology America 201 East Sandpointe Suite 245 Santa Ana CA 92707 Revision 1 5 February 2020...

Page 2: ...dix B EVB_V01 update 1 2 Apr 23 2019 T Nakase Section 6 Jumper setting update correction 1 3 Aug 23 2019 T Nakase Section 4 2 OpenOCD availability note Section 5 BDF update Section 6 2 minor wording c...

Page 3: ...e for C C Developer 6 4 6 QCA4020 SDK 6 5 Software Configuration 7 5 1 WiFi Board Data File 7 5 2 Bluetooth LE and IEEE 802 15 4 NVM Configuration File 7 5 3 GNU MCU Eclipse Plug in 8 5 4 Create Exter...

Page 4: ...Build Demo Project 19 8 Flash Firmware 20 9 Run Firmware 20 10 Debug Firmware 21 Appendix A Emergency Loader EDL 25 Appendix B What s different from Qualcomm CDB20 M20 26 Jumper Header 26 Debug Header...

Page 5: ...2 1 GNU Arm Embedded Toolchain 6 2016 q4 major https developer arm com open source gnu toolchain gnu rm downloads 2 2 2 OpenOCD 20170609 http gnutoolchains com arm eabi openocd 2 2 3 Python 2 7 15 ht...

Page 6: ...oad gcc arm none eabi 6_2 2016q4 20161216 win32 exe from the download link Section 2 2 1 above 2 Run installer with default settings 3 Add following path to PATH user variables1 C Program Files x86 GN...

Page 7: ...n32 x86_64 zip from the download link Section 2 2 5 above 2 Extract it to C Program Files eclipse 4 6 QCA4020 SDK 1 Download QCA4020 OR 3 0 QCA OEM SDK CDB from the download link Section 2 2 6 above 2...

Page 8: ...riginal BDF wlan_fw_img bin as wlan_fw_img cdb bin 3 Overwrite original BDF with updated BDF 5 2 Bluetooth LE and IEEE 802 15 4 NVM Configuration File 1 Copy updated NVM file QCA4020_2p0_WCBN3516A_201...

Page 9: ...elp Install New Software 2 In Install dialog set Work with to http gnu mcu eclipse netlify com v4 neon updates 3 Click Add 4 In Add Repository dialog set Name to GNU MCU Eclipse plug ins 5 Click OK 6...

Page 10: ...ction of dialog If you see Security Warning dialog during the installation click Install Anyway 8 Restart Eclipse 9 From top menu click Window Preference 10 At left pane of Preference dialog select MC...

Page 11: ...nfiguration for Firmware Flashing 1 From Eclipse IDE top menu click Run External Tools External Tools Configuration 2 Right click on Program of External Tools Configurations dialog and click on New 3...

Page 12: ...ject_loc build gcc 6 Click Apply 7 Click Close 6 Hardware Setup 6 1 Jumper 6 1 1 3 3V Power Supply Connect following pins to enable 3 3V Power Supply J111 Pin 1 2 J116 Pin 1 2 J120 Pin 2 3 J118 Pin 2...

Page 13: ...J92 Pin 1 2 J108 Pin 2 3 J109 Pin 2 3 6 1 3 JTAG Connect following pins to enable JTAG J37 Pin 2 3 J38 Pin 2 J39 Pin 3 J39 Pin 2 J38 Pin 3 J40 Pin 2 3 J102 Pin 2 J106 Pin 1 J112 Pin 1 2 J113 Pin 1 2 N...

Page 14: ...k Section 2 2 7 above 2 Connect USB1 and USB2 of EVK board to Host PC with USB cables and Gender Changer 3 Start zadig 2 4 exe 4 From top menu enable Options List All Devices and look for Dual RS232 H...

Page 15: ...ow Import Projects from File System or Archive dialog window 4 Set import source to SDK_source target quartz demo QCLI_demo 5 Confirm QCLI_demo is selected and click Finish2 2 You will see two errors...

Page 16: ...disable Deep Sleep mode as follows 1 Open target quartz demo QCLI_demo src export DevCfg_master_devcfg_out_cdb xml with editor 2 Set 0 zero to the field shown below 7 3 Update Project Property 1 From...

Page 17: ...100 3 Set Build command to build bat 4 Click on Behavior tab 5 Set Build incremental build to t 4020 cdb 6 Set Clean to clobber3 3 Batch file clean operation of this SDK release doesn t work due to Wi...

Page 18: ...Right click on GDB OpenOCD Debugging of Debug Configurations dialog and click on New 3 At the right pane set Name to QCLI_demo_Debug 4 Select Main tab 5 Set Project to QCLI_demo 6 Set C C Application...

Page 19: ...Files x86 openocd bin openocd exe 10 Set Config options in OpenOCD Setup to f project_loc build gcc qca402x_openocd cfg 11 Set Executable name in GDB Client Setup to C Program Files x86 GNU Tools ARM...

Page 20: ...14 Set text filed in Run Restart Commands to source v2 quartzcdb gdbinit 15 Set Set breakpoint at to app_init 16 Click Apply 17 Click Close 7 5 Build Demo Project 1 Start build process from top menu...

Page 21: ...ssfully message on Console 9 Run Firmware 1 Confirm 3 3V Power Supply and Debug UART is enabled See Section 6 above 2 Unplug USB cable from USB1 port of EVK board if you connected EVK board 3 Remove j...

Page 22: ...ower Supply and JTAG is enabled See Section 6 above 2 Connect USB1 and USB2 port of EVK board to Host PC with USB cables if you didn t connect EVK board 3 From Eclipse IDE top menu click Run Debug Con...

Page 23: ...22 140 00217 100 5 Click Debug 6 If you see C Local Application dialog select Quartz elf and click OK 7 If you see Windows Security Alert dialog click Allow access...

Page 24: ...t Confirm Perspective Switch dialog before switching perspective to Debug Click Yes 9 Execution will stop at default breakpoint at _main and sbl1_main_ctl You can safely ignore error that the source c...

Page 25: ...clicking Run Resume to resume execution until it reach to app_init Note You can ignore following error messages appeared on Console Error Failed to read memory at 0xfffff000 Error address size wrappe...

Page 26: ...G 3 Connect J106 Pin 1 2 for EDL Emergency Loader mode 4 Connect USB1 of EVK board with USB cable to Host PC 5 Confirm COM port with Device Manager Look for Qualcomm HS USB QDLoader 9008 under Ports C...

Page 27: ...he Bluetooth blue LED Connect pins 5 and 6 for the Bluetooth blue LED Connect pins 7 and 8 for the red Tri LED Connect pins 7 and 8 for the red Tri LED Connect pins 9 and 10 for the blue Tri LED Conne...

Page 28: ...Header Qualcomm CDB20 has Arduino compatible header External PA Qualcomm M20 QCA4020 module has external PA to the RF path of Bluetooth LE ZigBee Thread 802 15 4 Measured gain is 10 15 dBm over SX ULP...

Reviews: