mirror of
https://github.com/Koenkk/Z-Stack-firmware.git
synced 2025-01-19 04:11:19 +01:00
Add SBL firmware. #31
This commit is contained in:
parent
d5ad664183
commit
7104e21e29
@ -8,6 +8,9 @@
|
||||
6. Right-click on *CC2530 - ProdHex** and press options. Go to C/C++ compiler -> preprocessor. Change the *Defined symbols* to:
|
||||
```c
|
||||
FIRMWARE_CC2530_DEFAULT
|
||||
|
||||
// Uncomment this if you want to compile the SBL (.bin) firmware:
|
||||
// FIRMWARE_SBL
|
||||
```
|
||||
7. Press OK.
|
||||
8. Right-click on *CC2530 - ProdHex** and click *Rebuild all*.
|
||||
|
Binary file not shown.
@ -8,6 +8,9 @@
|
||||
6. Right-click on *CC2530 - ProdHex** and press options. Go to C/C++ compiler -> preprocessor. Change the *Defined symbols* to:
|
||||
```c
|
||||
FIRMWARE_CC2530_CC2591_DEFAULT
|
||||
|
||||
// Uncomment this if you want to compile the SBL (.bin) firmware:
|
||||
// FIRMWARE_SBL
|
||||
```
|
||||
7. Press OK.
|
||||
8. Right-click on *CC2530 - ProdHex** and click *Rebuild all*.
|
||||
|
Binary file not shown.
@ -8,6 +8,9 @@
|
||||
6. Right-click on *CC2531 - ProdHex** and press options. Go to C/C++ compiler -> preprocessor. Change the *Defined symbols* to:
|
||||
```c
|
||||
FIRMWARE_CC2531_DEFAULT
|
||||
|
||||
// Uncomment this if you want to compile the SBL (.bin) firmware:
|
||||
// FIRMWARE_SBL
|
||||
```
|
||||
7. Press OK.
|
||||
8. Right-click on *CC2531 - ProdHex** and click *Rebuild all*.
|
||||
|
Binary file not shown.
Binary file not shown.
@ -83,13 +83,19 @@ index 7c6c77e..b49a5ca 100644
|
||||
znpCfg1 = P2_0;
|
||||
diff --git a/Projects/zstack/ZNP/CC253x/Source/preinclude.h b/Projects/zstack/ZNP/CC253x/Source/preinclude.h
|
||||
new file mode 100644
|
||||
index 0000000..317cf94
|
||||
index 0000000..326889b
|
||||
--- /dev/null
|
||||
+++ b/Projects/zstack/ZNP/CC253x/Source/preinclude.h
|
||||
@@ -0,0 +1,63 @@
|
||||
@@ -0,0 +1,69 @@
|
||||
+// Shared accross all firmwares
|
||||
+#define ASSERT_RESET
|
||||
+#define FAKE_CRC_SHDW
|
||||
+
|
||||
+#if defined FIRMWARE_SBL
|
||||
+ #define MAKE_CRC_SHDW
|
||||
+#else
|
||||
+ #define FAKE_CRC_SHDW
|
||||
+#endif
|
||||
+
|
||||
+#define TC_LINKKEY_JOIN
|
||||
+#define SECURE 1
|
||||
+#define INCLUDE_REVISION_INFORMATION
|
||||
|
Loading…
Reference in New Issue
Block a user