mirror of
https://github.com/Koenkk/Z-Stack-firmware.git
synced 2025-01-03 21:27:34 +01:00
Experimental firmware https://github.com/Koenkk/zigbee2mqtt/issues/134
This commit is contained in:
parent
3ead212f49
commit
efb43525d5
@ -3,28 +3,18 @@
|
|||||||
2. 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.
|
2. 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.
|
||||||
3. In the dropdown, set target to *CC2531 - ProdHex*.
|
3. In the dropdown, set target to *CC2531 - ProdHex*.
|
||||||
![Target](images/target.png)
|
![Target](images/target.png)
|
||||||
4. Right-click on *CC2531 - ProdHex** and press options. Go to C/C++ compiler, preprocessor and in *Defined symbols* change `xTC_LINKKEY_JOIN` to `TC_LINKKEY_JOIN`. Press OK.
|
4. Right-click on *CC2531 - ProdHex** and press options. Go to C/C++ compiler -> preprocessor. Change the *Defined symbols* to:
|
||||||
![Symbols](images/symbols.png)
|
|
||||||
5. Open *CC2531 - ProdHex** -> `NWK/nwk_globals.h` and change:
|
|
||||||
```c
|
|
||||||
#define NWK_MAX_DEVICE_LIST 20
|
|
||||||
```
|
```
|
||||||
to
|
CC2531ZNP
|
||||||
```c
|
ASSERT_RESET
|
||||||
#define NWK_MAX_DEVICE_LIST 25
|
FAKE_CRC_SHDW
|
||||||
```
|
TC_LINKKEY_JOIN
|
||||||
6. Open *CC2531 - ProdHex** -> `ZMain/OnBoard.h` and change:
|
SECURE=1
|
||||||
```c
|
NWK_MAX_DEVICE_LIST=0
|
||||||
#if defined TC_LINKKEY_JOIN
|
MAXMEMHEAP=3500
|
||||||
#define MAXMEMHEAP 2170
|
INTER_PAN
|
||||||
#else
|
|
||||||
```
|
|
||||||
to
|
|
||||||
```c
|
|
||||||
#if defined TC_LINKKEY_JOIN
|
|
||||||
#define MAXMEMHEAP 2827
|
|
||||||
#else
|
|
||||||
```
|
```
|
||||||
|
6. Press OK.
|
||||||
7. Right-click on *CC2531 - ProdHex** and click *Rebuild all*.
|
7. Right-click on *CC2531 - ProdHex** and click *Rebuild all*.
|
||||||
8. Once finished, you can find the `CC2531ZNP-Prod.hex` file in `Z-Stack Home 1.2.2a.44539\Projects\zstack\ZNP\CC253x\dev`.
|
8. Once finished, you can find the `CC2531ZNP-Prod.hex` file in `Z-Stack Home 1.2.2a.44539\Projects\zstack\ZNP\CC253x\dev`.
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user