mirror of
https://github.com/Koenkk/Z-Stack-firmware.git
synced 2024-11-26 03:45:27 +01:00
1.8 KiB
1.8 KiB
Compiling the firmware
Setup development environment
- Download and install SIMPLELINK-CC13XX-CC26XX-SDK_6_30_00_84
- Download and install Code Composer Studio 12.1.0.00007
Compiling
- Start Code Composer Studio
- Go to File -> Import -> Code Composer Studio -> CCS Projects -> Select search-directory:
simplelink_cc13xx_cc26xx_sdk_6_30_00_84/examples/rtos
. - Select:
zr_genericapp_CC26X2R1_LAUNCHXL_tirtos7_ticlang
zr_genericapp_CC1352P_2_LAUNCHXL_tirtos7_ticlang
zr_genericapp_LP_CC2652RB_tirtos7_ticlang
- Press Finish.
- In Code Composer Studio, expand the 3 projects and for each open
zr_genericapp.syscfg
, expandPower Management
and changeMinimal Poll Period (ms)
to1000
, change it back to100
immediately and save the file. - Go to your CCS workspace and copy
firmware.patch
to the root. - Open Git Bash, go to your CCS root and apply the patch using
git apply firmware.patch --ignore-space-change
. - Build the 3 projects; right click -> Build project.
- Important: by default the launchpad variant of the CC1352P2_CC2652P (=
zr_genericapp_CC1352P_2_LAUNCHXL_tirtos7_ticlang
) is build. To build the other variant comment#define LAUNCHPAD_CONFIG 1
inpreinclude.h
(located underStack/Config/
), don't forget to save.
- Important: by default the launchpad variant of the CC1352P2_CC2652P (=
- Once finished, the firmware can be found under
zr_genericapp_[CC26X2R1/CC1352P_2/CC2652RB]_LAUNCHXL_tirtos7_ticlang/default/zr_genericapp_[CC26X2R1/CC2652RB/CC1352P_2]_LAUNCHXL_tirtos7_ticlang.hex
zr_genericapp_CC26X2R1_LAUNCHXL_tirtos7_ticlang.hex
-> CC2652Rzr_genericapp_LP_CC2652RB_tirtos7_ticlang.hex
-> CC2652RBzr_genericapp_CC1352P_2_LAUNCHXL_tirtos7_ticlang.hex
-> CC1352P-2 and CC2652P