Z1-Mini/How to flash
Once a .hex file is created, there are 2 ways to flash Z1-Mini whit it:
With CC-Debugger or SmartRF04EB
- Download and install SmartRF Flash programmer 1.12.8 (not V2) from Texas Instruments site
- Connect CC-Debugger or SmartRF04EB to PC: check if driver are automatically recognized in device manager.
- Disconnect CC-Debugger or SmartRF04EB from PC; connect 10 pin flat cable between programmer and Z1-Mini. Pay attention to the correct connector alignment and orientation (pin 1 on pin 1)!!!. Depending on programmer features, board should be powered externally or not; if board doesn’t appear in Flash programmer software, must be powered externally (pins V+ and GND). Connect again debugger to the PC.
- Open Flash programmer software: debugger and CC2530 should appear in System on chip section; if not press reset button on debugger.
- Set options as image below and choose .hex file to flash in Flash image frame.
- Press Perform action and wait until Program and verify OK message appear.
- Done! Z1-Mini start and try to connect to the available coordinator (orange led flash quickly). Once connected led will flash slowly. Now can shut off, disconnect programmer and PC.
With a Raspberry without any programmer
- Install Wiringpi:
sudo apt-get install wiringpi
- Install software flash_cc2531:
git clone https://github.com/jmichault/flash_cc2531.git
- Turn off; connect Z1-Mini to Raspberry as image below.
- Turn On and check connection and installation:
cd flash_cc2531 ./cc_chipid
- should return..
ID = b524
- Using WinSCP copy .hex created firmware to flash in flash_cc2531 folder of the raspberry.
- Again in SSH: erase cc2530 chip:
./cc_erase
- Flash .hex firmware file on cc2530:
./cc_write NAME-OF-YOUR-FILE.hex -m 300
- Done! Z1-Mini start and try to connect to the available coordinator (orange led flash quickly). Once connected led will flash slowly. Now can shut off and disconnect Z1-Mini from Raspberry.