Skip to content

Commit

Permalink
Add firmware for CC2538-CC2592 based USB stick by MODKAM.RU (Koenkk#144)
Browse files Browse the repository at this point in the history
* Add firmware for CC2538-CC2592 based USB stick by MODKAM.RU

* Add COMPILE_modkamruv3.md

* Fix dev tools version

* Fix IAR link

* Update

Co-authored-by: Koen Kanters <[email protected]>
  • Loading branch information
reverieline and Koenkk authored Feb 7, 2020
1 parent c82d286 commit d0e58b6
Show file tree
Hide file tree
Showing 4 changed files with 671 additions and 3 deletions.
30 changes: 27 additions & 3 deletions coordinator/Z-Stack_3.0.x/COMPILE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Compiling the firmware
# CC2530, CC2530_CC2591, CC2530_CC2592, CC2531

## Setup development environment
1. Download and install [Z-STACK-3.0.2](http://www.ti.com/tool/Z-STACK).
Expand All @@ -7,8 +7,8 @@
*NOTE: For IAR Embedded Workbench for 8051 you need either the full (paid) version or the 30-days evaluation version.*

## Compiling
1. Copy `firmware.patch` to `Z-Stack 3.0.2`
2. Open Git Bash, go to `Z-Stack 3.0.2` and apply the patch using `git apply firmware.patch --ignore-space-change`.
1. Copy `firmware_CC2531_CC2530.patch` to `Z-Stack 3.0.2`
2. Open Git Bash, go to `Z-Stack 3.0.2` and apply the patch using `git apply firmware_CC2531_CC2530.patch --ignore-space-change`.
3. Open `Z-Stack 3.0.2\Projects\zstack\ZNP\CC253x\znp.eww` with IAR Embedded workbench for 8051.
4. Select the correct target:
- For CC2531 select *CC2531 - ZNP-with-SBL*
Expand All @@ -21,3 +21,27 @@
7. Press OK.
8. Right-click on your target and click *Rebuild all*.
9. Once finished, you can find the `CC253(0|1)ZNP-Prod.(hex|bin)` file in `Z-Stack 3.0.2\Projects\zstack\ZNP\CC253x\dev`.

# CC2538_CC2592_MODKAMRU_V3

## Setup development environment
1. Download and install [Z-STACK-3.0.2](http://www.ti.com/tool/Z-STACK).
2. Download and install [IAR Embedded Workbench for ARM](https://www.iar.com/iar-embedded-workbench/#!?architecture=Arm).

*NOTE: For IAR Embedded Workbench for ARM you need either the full (paid) version or the 30-days evaluation version.*

## Compiling
1. Copy `firmware_CC2538_CC2592_MODKAMRU_V3.patch` to `Z-Stack 3.0.2`
2. Open Git Bash, go to `Z-Stack 3.0.2` and apply the patch using:
`git apply --reject --whitespace=fix firmware_CC2538_CC2592_MODKAMRU_V3.patch`
3. Open `Z-Stack 3.0.2\Projects\zstack\ZNP\CC2538\ZNP.eww` with IAR Embedded workbench for ARM.
4. Select `CC2538ZNP-Debug` target.
5. Right-click on your target and press options. Go to C/C++ compiler -> preprocessor. Depending on what you want to compile, correct the following symbols in *Defined symbols*:
- to use USB interface: `HAL_UART_USB`, `xHAL_UART=TRUE`, `xZNP_ALT`;
- to use UART interface without flow control: `xHAL_UART_USB`, `HAL_UART=TRUE`, `ZNP_ALT`;
- to use UART interface with flow control enabled: `xHAL_UART_USB`, `HAL_UART=TRUE`, `xZNP_ALT`.
6. Go to Output Converter, check `Generate additional output` checkbox, select `Intel Extended hex` output format and uncheck `Override default` checkbox.
7. Press OK.
8. Right-click on your target and click *Rebuild all*.
9. Once finished, you can find the `ZNP.hex` file in `Z-Stack 3.0.2\Projects\zstack\ZNP\CC2538\CC2538ZNP-Debug\Exe\`.

Binary file not shown.
File renamed without changes.
Loading

0 comments on commit d0e58b6

Please sign in to comment.