The development environment of this article is as follows:
IAR version: 8.1
Hardware platform: TI's
cc2530 zstack version: 2.3.0-1.4.0
Continually updated
Get started with cc2530
-
- How to open a project
- Compile common errors
-
- Error[e16]: Segment RAM_CODE_FLASH (size: 0x27 align: 0) is too long for segment definition. At least 0x4 more bytes needed. The problem occurred while processing the segment placement command
- Error[e46]: Undefined external "?V1" referred in AF ( D:\code\MCU\cc2530\air_sensor\Projects\zstack\Samples\SampleApp\CC2530DB\CoordinatorEB-Pro\Obj\AF.r51 )
- Error[Pa045]: function "" has no prototype D:\code\MCU\cc2530\chuankou\ZStack-CC2530-2.3.0-1.4.0\Projects\zstack\Samples\SampleApp\Source\iic_fxread.c 204
How to open a project
The general project file path is: ZStack-CC2530-2.3.0-1.4.0\Projects\zstack\Samples\SampleApp\CC2530DB The
.eww file is the IAR project file.
After opening, the following dialog boxes may appear, which is caused by the high version of IAR, don't worry, just go a mile yes\ confirm it.
After opening the project, we can see a workspace on the left. Although there are many folders, we mainly care about several files for drawing arrows, as shown in the following figure:
From top to bottom, it mainly includes: user application layer code, zstack Configuration, main function.
Then we right-click the project and select Rebuild all to compile the entire project.
Compile common errors
Error[e16]: Segment RAM_CODE_FLASH (size: 0x27 align: 0) is too long for segment definition. At least 0x4 more bytes needed. The problem occurred while processing the segment placement command
This kind of error prompt: the allocated space is not enough, we first find the f8w2530.xcl file under the TOOLS file, and use CTRL+F to find the item that reported the error, as shown below:
Modify the following code and allocate 4 more spaces bytes, as follows:
-D_RAM_CODE_FLASH_END=(_RAM_CODE_FLASH_START+0x26)
Error[e46]: Undefined external “?V1” referred in AF ( D:\code\MCU\cc2530\air_sensor\Projects\zstack\Samples\SampleApp\CC2530DB\CoordinatorEB-Pro\Obj\AF.r51 )
In response to this kind of error, we right-click the project, select Options, and change the number of virtual to 8, as shown in the following figure:
At this time, when compiling, it is found that the same error will still be reported. This is still the pot of the IAR version. Find the chipcon_cstartup.s51 file in the Projects\zstack\ZMain\TI2530DB directory
to replace this file, link to the Baidu network disk , and extract the code abcd .
You can recompile after replacement.
Error[Pa045]: function “” has no prototype D:\code\MCU\cc2530\chuankou\ZStack-CC2530-2.3.0-1.4.0\Projects\zstack\Samples\SampleApp\Source\iic_fxread.c 204
This kind of problem generally occurs after adding functions written by ourselves. We can deselect Require prototypes in the previous options option.