Z-Stack-firmware/coordinator/CC2530_CC2591/README.md

18 lines
1011 B
Markdown
Raw Normal View History

# CC2530_CC2591 coordinator firmware
1. Copy `..\firmware.patch` to `Z-Stack Home 1.2.2a.44539`
2. Open Git Bash, go to `Z-Stack Home 1.2.2a.44539` and apply the patch using `git apply firmware.patch`.
3. Open `Z-Stack Home 1.2.2a.44539\Projects\zstack\ZNP\CC253x\znp.eww` with IAR Embedded workbench for 8051.
4. You will get a warning: *The project file 'CC253(0/1).ewp' is in an old format. Would you like to convert it for use with this version?*. Press **yes** for both.
5. In the dropdown, set target to *CC2530 - ProdHex*.
![Target](images/target.png)
6. Right-click on *CC2530 - ProdHex** and press options. Go to C/C++ compiler -> preprocessor. Change the *Defined symbols* to:
2018-08-24 12:57:27 +02:00
```c
FIRMWARE_CC2530_CC2591_DEFAULT
2019-02-06 19:12:19 +01:00
// Uncomment this if you want to compile the SBL (.bin) firmware:
// FIRMWARE_SBL
2018-08-24 12:57:27 +02:00
```
7. Press OK.
8. Right-click on *CC2530 - ProdHex** and click *Rebuild all*.
9. Once finished, you can find the `CC2530ZNP-Prod.hex` file in `Z-Stack Home 1.2.2a.44539\Projects\zstack\ZNP\CC253x\dev`.