- Configure a pin that will activate the SBL mode when a chip starts.
- First time, flash firmware using a J-Link flasher or XDS-110 proble.
- The firmware assumes that the active state is LOW (connected to GND).
- Assumed that you can connect your chip to a computer using a UART-USB stick or corresponding schematics on your DIY board. Chips may use different pins for SBL UART.
- Press and hold the Reset button or disconnect power.
- Press and hold the SBL button.
- Unpress the Reset button or connect power.
- Start serial flashing utility (author’s page) from a command line.
cc2538-bsl_x64.exe -p COM18 -ewv "c:\path_to\firmware.hex"
COM18 – replace it with your COM port number. You can find it in Devices Manager.
firmware.hex – your firmware file with a full path.
The normal uploading process will look like this:
Invoking bootloader by method 1 (default) Opening port COM18, baud 500000 Reading data from firmware.hex Your firmware looks like an Intel Hex file Connecting to target… CC1350 PG2.0 (7x7mm): 352KB Flash, 20KB SRAM, CCFG.BL_CONFIG at 0x00057FD8 Primary IEEE Address: 00:12:4B:00:24:C0:F3:49 Performing mass erase Erasing all main bank flash sectors Erase done Writing 360448 bytes starting at address 0x00000000 Write 104 bytes at 0x00057F988 Write done Verifying by comparing CRC32 calculations. Verified (match: 0x7d5e5a99)
Flash Programmer 2
You can also use Texas Instruments Flash Programmer 2 v 1.8.2 and higher (you’ll need a free account to download a file).
- Select the UART port assigned to your CC2652 chip.
- Select the chip type.
- Select the firmware file.
- Select programming options (Erase – Program – Verify).
- Click the “Start” button.
- Check a status.
Wolfgang
Hi, I got a bare cc2562P chip (i.e. just the SMB board with a PCB antenna) and I wonder which additional flashing tools I need. I’ve got a cc programmer that works fine with the cc2531 and alternatively I can connect it to an RPi. Unfortunately I did not find any instructions on how to connect the bare chip to flash it with the TI flash programmer. Many thanks for aný advice!
Owner
You need a J-Link or XDS110 flasher. The chip has special pins for programming (TMS, TCK, RESET, +3.3V, Ground). The link below contains more info.
https://ptvo.info/cc2652r1-cc2652rb-cc2652p-cc1352p2-configurable-router-firmware-748/
Sometimes, these chips already contain firmware, and you can flash them using UART.
https://ptvo.info/zigbee-configurable-firmware-features/serial-bootloader-sbl-on-cc2652/