mirror of
https://github.com/Koenkk/Z-Stack-firmware.git
synced 2025-01-19 12:21:18 +01:00
CC2531 Z-Stack 3 firmware!
This commit is contained in:
parent
fb1064b597
commit
b6159f8e02
@ -1,2 +1,2 @@
|
|||||||
# 20190417
|
# 20190418
|
||||||
- Initial version.
|
- Initial version.
|
@ -11,8 +11,8 @@
|
|||||||
2. Open Git Bash, go to `Z-Stack 3.0.2` and apply the patch using `git apply firmware.patch`.
|
2. Open Git Bash, go to `Z-Stack 3.0.2` and apply the patch using `git apply firmware.patch`.
|
||||||
3. Open `Z-Stack 3.0.2\Projects\zstack\ZNP\CC253x\znp.eww` with IAR Embedded workbench for 8051.
|
3. Open `Z-Stack 3.0.2\Projects\zstack\ZNP\CC253x\znp.eww` with IAR Embedded workbench for 8051.
|
||||||
4. Select the correct target:
|
4. Select the correct target:
|
||||||
- For CC2531 select *CC2531 - ZNP-without-SBL*
|
- For CC2531 select *CC2531 - ZNP-with-SBL*
|
||||||
- For CC2530 or CC2530_CC2591 select *CC2530 - ZNP-without-SBL*
|
- For CC2530 or CC2530_CC2591 select *CC2530 - ZNP-with-SBL*
|
||||||
5. Right-click on your target and press options. Go to C/C++ compiler -> preprocessor. Depending on what you want to compile, add one of the following symbols to *Defined symbols*:
|
5. Right-click on your target and press options. Go to C/C++ compiler -> preprocessor. Depending on what you want to compile, add one of the following symbols to *Defined symbols*:
|
||||||
- `FIRMWARE_CC2530` (TODO)
|
- `FIRMWARE_CC2530` (TODO)
|
||||||
- `FIRMWARE_CC2530_CC2531` (TODO)
|
- `FIRMWARE_CC2530_CC2531` (TODO)
|
||||||
|
BIN
coordinator/Z-Stack_3.0.x/bin/CC2531_20190418.zip
Normal file
BIN
coordinator/Z-Stack_3.0.x/bin/CC2531_20190418.zip
Normal file
Binary file not shown.
@ -22,11 +22,11 @@ index f374554..720a8fe 100644
|
|||||||
2, /* Software maintenance release number */
|
2, /* Software maintenance release number */
|
||||||
diff --git a/Components/mt/revision_info.h b/Components/mt/revision_info.h
|
diff --git a/Components/mt/revision_info.h b/Components/mt/revision_info.h
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000..f3887eb
|
index 0000000..ae3d86b
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/Components/mt/revision_info.h
|
+++ b/Components/mt/revision_info.h
|
||||||
@@ -0,0 +1 @@
|
@@ -0,0 +1 @@
|
||||||
+#define CODE_REVISION_NUMBER 20190407
|
+#define CODE_REVISION_NUMBER 20190418
|
||||||
\ No newline at end of file
|
\ No newline at end of file
|
||||||
diff --git a/Components/stack/af/AF.c b/Components/stack/af/AF.c
|
diff --git a/Components/stack/af/AF.c b/Components/stack/af/AF.c
|
||||||
index 5e54237..988416f 100644
|
index 5e54237..988416f 100644
|
||||||
@ -67,25 +67,12 @@ index 5e54237..988416f 100644
|
|||||||
else if ( (epDesc = afFindEndPointDesc( aff->DstEndPoint )) )
|
else if ( (epDesc = afFindEndPointDesc( aff->DstEndPoint )) )
|
||||||
{
|
{
|
||||||
pList = afFindEndPointDescList( epDesc->endPoint );
|
pList = afFindEndPointDescList( epDesc->endPoint );
|
||||||
diff --git a/Components/stack/zdo/ZDApp.c b/Components/stack/zdo/ZDApp.c
|
|
||||||
index 4947bd8..83a590c 100644
|
|
||||||
--- a/Components/stack/zdo/ZDApp.c
|
|
||||||
+++ b/Components/stack/zdo/ZDApp.c
|
|
||||||
@@ -3676,7 +3676,7 @@ void ZDApp_NVUpdate( void )
|
|
||||||
*/
|
|
||||||
uint16 ZDApp_CoordStartPANIDConflictCB( uint16 panid )
|
|
||||||
{
|
|
||||||
- return ( panid + 1 );
|
|
||||||
+ return ( panid );
|
|
||||||
}
|
|
||||||
|
|
||||||
/*********************************************************************
|
|
||||||
diff --git a/Projects/zstack/ZNP/Source/preinclude.h b/Projects/zstack/ZNP/Source/preinclude.h
|
diff --git a/Projects/zstack/ZNP/Source/preinclude.h b/Projects/zstack/ZNP/Source/preinclude.h
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000..8f8aebf
|
index 0000000..2ac6bb2
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/Projects/zstack/ZNP/Source/preinclude.h
|
+++ b/Projects/zstack/ZNP/Source/preinclude.h
|
||||||
@@ -0,0 +1,70 @@
|
@@ -0,0 +1,67 @@
|
||||||
+// Shared accross all firmwares
|
+// Shared accross all firmwares
|
||||||
+#define TC_LINKKEY_JOIN
|
+#define TC_LINKKEY_JOIN
|
||||||
+#define FAKE_CRC_SHDW
|
+#define FAKE_CRC_SHDW
|
||||||
@ -93,8 +80,10 @@ index 0000000..8f8aebf
|
|||||||
+#define INCLUDE_REVISION_INFORMATION
|
+#define INCLUDE_REVISION_INFORMATION
|
||||||
+#define SECURE 1
|
+#define SECURE 1
|
||||||
+#define BDB_FINDING_BINDING_CAPABILITY_ENABLED 0
|
+#define BDB_FINDING_BINDING_CAPABILITY_ENABLED 0
|
||||||
+#define ZDSECMGR_TC_DEVICE_MAX 27
|
+#define ZDSECMGR_TC_DEVICE_MAX 30
|
||||||
+#define DISABLE_GREENPOWER_BASIC_PROXY
|
+#define DISABLE_GREENPOWER_BASIC_PROXY
|
||||||
|
+#define MT_SYS_KEY_MANAGEMENT 1
|
||||||
|
+#define TP2_LEGACY_ZC
|
||||||
+
|
+
|
||||||
+// Save memory
|
+// Save memory
|
||||||
+#undef NWK_MAX_BINDING_ENTRIES
|
+#undef NWK_MAX_BINDING_ENTRIES
|
||||||
@ -126,22 +115,17 @@ index 0000000..8f8aebf
|
|||||||
+#define MAX_BCAST 12
|
+#define MAX_BCAST 12
|
||||||
+
|
+
|
||||||
+/**
|
+/**
|
||||||
+ * Enable MTO concentrator
|
+ * Device tables
|
||||||
+ */
|
+ */
|
||||||
+#define CONCENTRATOR_ENABLE TRUE
|
+#define NWK_MAX_DEVICE_LIST 10
|
||||||
+#define CONCENTRATOR_ROUTE_CACHE TRUE
|
+#define MAX_NEIGHBOR_ENTRIES 6
|
||||||
+#define CONCENTRATOR_DISCOVERY_TIME 120
|
|
||||||
+#define MAX_RTG_SRC_ENTRIES 35
|
|
||||||
+#define SRC_RTG_EXPIRY_TIME 0
|
|
||||||
+
|
+
|
||||||
+/**
|
+/**
|
||||||
+ * CC2531
|
+ * CC2531
|
||||||
+ */
|
+ */
|
||||||
+#if defined FIRMWARE_CC2531
|
+#if defined FIRMWARE_CC2531
|
||||||
+ #define CC2531ZNP
|
+ #define CC2531ZNP
|
||||||
+ #define NWK_MAX_DEVICE_LIST 5
|
+ #define MAXMEMHEAP 3205
|
||||||
+ #define MAX_NEIGHBOR_ENTRIES 8
|
|
||||||
+ #define MAXMEMHEAP 3189
|
|
||||||
+
|
+
|
||||||
+/**
|
+/**
|
||||||
+ * CC2530
|
+ * CC2530
|
||||||
|
Loading…
Reference in New Issue
Block a user