Trouble programming TAG4

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I received my new TAG4 last week, but so far I am unable to program it. I have done the following:

1. Upgraded to SDK 2.2.3

2. Set SW4 to VUSB and SW5 to VREG

3. Set all SW6, SW8 and SW9 DIP switches to OFF, except

   a. SW6: 2 and 4 are ON

   b. SW8: 1, 3 and 5 are ON

4. Left all the jumpers unconnected

5. Connected the USB cable and saw two ports appear in device manager:

   - Silicon Labs Dual CP210x USB to UART Bridge: Enhanced COM Port (COM4)

   - Silicon Labs Dual CP210x USB to UART Bridge: Standard COM Port (COM3)

6. Picked "watch-BCM920737TAG_Q32 download" on the list of targets and hit Build

Result: download fails - see output below. Unlike my TAG3, the TAG4 doesn't flash any LEDs when connected or when attempting to download the app.

Output:

17:56:36 **** Build of configuration Release for project WICED-Smart-SDK ****

"C:\\Users\\<username>\\Documents\\WICED\\WICED-Smart-SDK-2.2.3\\WICED-Smart-SDK\\make.exe" watch-BCM920737TAG_Q32 download

Compiling spar_setup.c

Compiling watch_db.c

Compiling watch.c

Compiling gatt_client.c

Compiling time_client.c

Compiling findme_client.c

Compiling ancs_client.c

Compiling sparinit.c

Compiling lib_installer.c

Linking target ELF

OK, made elf.

Call to watch_spar_crt_setup @ 002072f1

OK, made C:/Users/<username>/Documents/WICED/WICED-Smart-SDK-2.2.3/WICED-Smart-SDK/Wiced-Smart/spar/../../build/watch-BCM920737TAG_Q32-rom-ram-Wiced-release/A_20737A1-watch-rom-ram-spar.cgs. MD5 sum is:

7b8698bc2409ef1cc5304d8b82cf42a9 *../../build/watch-BCM920737TAG_Q32-rom-ram-Wiced-release/A_20737A1-watch-rom-ram-spar.cgs

--------------------------------------------------------------------------------

Patches start at                  0x00204568 (RAM address)

Patches end at                    0x00205988 (RAM address)

Application starts at             0x00205554 (RAM address)

Application ends at               0x002072EE (RAM address)

Patch size (including reused RAM)       5152 bytes

Patch size                              4076 bytes

Application size                        7578 bytes

                                      ------

Total RAM footprint                    11654 bytes (11.4kiB)

--------------------------------------------------------------------------------

Converting CGS to HEX...

Conversion complete

Creating OTA images...

Conversion complete

OTA image footprint in NV is 13445 bytes

Detecting device...

Device found

Downloading application...

****Download failed - Press the reset button on the device and retry ****

17:56:45 Build Finished (took 8s.582ms)

0 Likes
1 Solution
JacobT_81
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

From a soon to be released forum guide on Tag4:

Tag 4 Quick Hardware Setup:

       1. Default switch settings for USB power, Booting EEPROM:

                 A. SW6 – 2,4 ON, rest OFF

                 B. SW9 – all ON

                 C. SW8 – 1,3,5 ON, rest OFF

                 D. SW4 VUSBs

                 E. SW5 – VREG

       2. On its very first download, the board requires a recovery:

                 A. Press-hold BOOT, press-release RESET, release BOOT

                 B. Edit any make target: replace “download” with “recover UART=COMxx”

                 C. Use make target. Replace ‘xx’ with your COM port (found in Device Manager)

                 D. Double click make target to execute build.

       NOTE: After your initial recovery, regular “download” can be used.

Jacob

View solution in original post

6 Replies
Anonymous
Not applicable

OK found it. What page 16 of the  Quick Start Guide should say is, "Verify that SW8 DIP switches 1, 3, 5 are OFF and that the others are ON". Please fix the document!

0 Likes
JacobT_81
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

From a soon to be released forum guide on Tag4:

Tag 4 Quick Hardware Setup:

       1. Default switch settings for USB power, Booting EEPROM:

                 A. SW6 – 2,4 ON, rest OFF

                 B. SW9 – all ON

                 C. SW8 – 1,3,5 ON, rest OFF

                 D. SW4 VUSBs

                 E. SW5 – VREG

       2. On its very first download, the board requires a recovery:

                 A. Press-hold BOOT, press-release RESET, release BOOT

                 B. Edit any make target: replace “download” with “recover UART=COMxx”

                 C. Use make target. Replace ‘xx’ with your COM port (found in Device Manager)

                 D. Double click make target to execute build.

       NOTE: After your initial recovery, regular “download” can be used.

Jacob

jakewtorres

I added these corrections to the TAG4 QSG document description found here: WICED Smart Quick Start Guide (SDK 2.x and TAG4 Board)

0 Likes
Anonymous
Not applicable

No Sir, 1C should be SW8 – 1,3,5 OFF, rest ON. That's the way the switches come from factory, and that's the way I found it works. I didn't have to do recovery, though.

0 Likes
JacobT_81
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

As said in the title of the post, those settings are for downloading to EEPROM. They are correct for that purpose.

The settings you've stated "SW8 – 1,3,5 OFF, rest ON" are for downloading to SFLASH.

Jacob

0 Likes
Anonymous
Not applicable

Thanks, that helps! It looks like it's important to first set the SW8 switches to the position, and then to restore. I used the "Enhanced COM Port" for restoration.

0 Likes