Add SBL firmware. #31

This commit is contained in:
Koen Kanters 2019-02-06 19:12:19 +01:00
parent d5ad664183
commit 7104e21e29
8 changed files with 18 additions and 3 deletions

View File

@ -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*.

View File

@ -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*.

View File

@ -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*.

View File

@ -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