mirror of
https://github.com/Koenkk/Z-Stack-firmware.git
synced 2024-11-29 13:25:21 +01:00
2.6 KiB
2.6 KiB
Compiling the firmware
Setup development environment
- Download and install SIMPLELINK-LOWPOWER-F2-SDK 7.41.00.17
- Download and install Code Composer Studio 12.6.0
Compiling
- Create a folder called
workspace
in the folder where the SDK is installed. In the SDK installation folder you should see files likeMakefile
andlicense_simplelink_cc13xx_cc26xx_sdk_7_41_00_17.txt
. - Start Code Composer Studio, it will ask you to select a workspace folder, select the
workspace
folder you created in the previous step. - Go to File -> Import -> Code Composer Studio -> CCS Projects -> Select search-directory:
simplelink_cc13xx_cc26xx_sdk_7_41_00_17/examples/rtos
. - Select:
znp_CC1352P_2_LAUNCHXL_tirtos7_ticlang
znp_CC26X2R1_LAUNCHXL_tirtos7_ticlang
znp_LP_CC1352P7_4_tirtos7_ticlang
znp_LP_CC2652R7_tirtos7_ticlang
znp_LP_CC2652RB_tirtos7_ticlang
- Press Finish.
- In Code Composer Studio, expand the 5 projects and for each open
znp.syscfg
, expandPower Management
and changeMinimal Poll Period (ms)
to1000
, change it back to100
immediately and save the file. - Copy
firmware.patch
to the SDK installation folder, open a Git Bash in this folder and apply the patch usinggit apply firmware.patch --ignore-space-change
. - Build the 5 projects; right click -> Build project.
- Important: by default the launchpad variant of the CC1352P2_CC2652P (=
znp_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
znp_*_tirtos7_ticlang/default/znp_*_tirtos7_ticlang.hex
znp_CC1352P_2_LAUNCHXL_tirtos7_ticlang.hex
-> CC1352P-2 and CC2652P based boardsznp_CC26X2R1_LAUNCHXL_tirtos7_ticlang.hex
-> CC2652R based boardsznp_LP_CC1352P7_4_tirtos7_ticlang.hex
-> CC1352P7 based boardsznp_LP_CC2652R7_tirtos7_ticlang.hex
-> CC2652R7 based boardsznp_LP_CC2652RB_tirtos7_ticlang.hex
-> CC2652RB based boards
Binary maclib_*.a
changes in firmware.patch
Note that the firmware.patch
patches the binary maclib_*.a
files.
These changes are required to fix the coordinator crashing when the TX power is set to 5+.
In SDK 7.10.02.23 TI made changes to macSetTxPowerVal
which introduced this issue.
The patch reverts these changes.
The patched maclib_*.a
files were provided by a TI employee and will only work for the 7.41.00.17 SDK.