Texas Instruments 2531NANO Benutzerhandbuch
13/21
4.5.1
Note on the batch files:
znp.bat and pp_cc2531f256sb.bat use tools located in different directories, therefore be careful to
respect the proper location of your files:
znp.bat : calls znp.js which shall be located in "$PROJ_DIR$\tools" (1st option of znp.bat) where
$PROJ_DIR$ refers to your project directory containing znp.eww. znp.js usessim2bin.exe wich
actually converts a .sim file into a .bin file. The .sim file is an output of IAR, sim2bin.exe fetches it in
the "CC2531-ProdSBL" (2nd option of znp.bat) directory located in the project directory. Ensure that
all the files and directories are properly located and named.
respect the proper location of your files:
znp.bat : calls znp.js which shall be located in "$PROJ_DIR$\tools" (1st option of znp.bat) where
$PROJ_DIR$ refers to your project directory containing znp.eww. znp.js usessim2bin.exe wich
actually converts a .sim file into a .bin file. The .sim file is an output of IAR, sim2bin.exe fetches it in
the "CC2531-ProdSBL" (2nd option of znp.bat) directory located in the project directory. Ensure that
all the files and directories are properly located and named.
pp_cc2531f256sb.bat : calls oadbbin.exe located in "$PROJ_DIR$\..\..\common\cc2530\
”, where one
“..\” means one on-directory. oadbbin.exe uses rnp_cc2531.a51 (ouput of IAR) located in
"$PROJ_DIR$\CC2531F256_SB\Exe\
"$PROJ_DIR$\CC2531F256_SB\Exe\
” and creates rnp_cc2531.bin located in
"$PROJ_DIR$\CC2531F256_SB\Exe\
”. Ensure that all the files and directories are properly located
and named.
This remark holds for the linker file location, cf. below.
4.5.2 Modify the code placement:
The SBL resides in the beginning of flash. So the linker command file needs to place the application
image in an area of memory that does not overlap the SBL (and further more at a start address
expected by the SBL).
1. On the left pannel select Linker
2. Select "Config" tab.
3. Change the linker command file to:
a. For the Z-stack: $PROJ_DIR$\..\..\Tools\CC2530DB\cc2530-sb.xcl
b. For the RemoTI stack: $PROJ_DIR$\..\..\common\cc2530\ti_51ew_cc2531f256_sb.xcl
4. Rebuild your project.
image in an area of memory that does not overlap the SBL (and further more at a start address
expected by the SBL).
1. On the left pannel select Linker
2. Select "Config" tab.
3. Change the linker command file to:
a. For the Z-stack: $PROJ_DIR$\..\..\Tools\CC2530DB\cc2530-sb.xcl
b. For the RemoTI stack: $PROJ_DIR$\..\..\common\cc2530\ti_51ew_cc2531f256_sb.xcl
4. Rebuild your project.