This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Now, I am developing CC2530.
But I don't know how to develop CC2530.
Firstly, I prepared ZStack for CC2530 and IAR EW8051.
I download ZStack and installed.
After that, I opened sample file of ZStack using EW8051.
There are many folders.
I would like to know how to custmize sample file for CC2530.
And I would like to know that I should develop folders and files.
Here I create the system that consists of coordinator and end devices.
I am a beginner of micro controller.
Please tell us kindly.
Inside the sample project (i.e GenericApp) there is a "source" folder.
Inside this folder there are 3 files "GenericApp.c", "GenericApp.h" and "OSAL_GenericApp.c"
As a first step try to understand "GenericApp.c " and "GenericApp.h", you'll be probably basing
your application by changing some content in this files.
The rest of the files and folders in the project are not of an interest to you at this moment.
In addition you have to get familiar with couple of APIs, like HAL_API and OSAL_API, which will
help you in further development (you can find these pdf file in Z-stack installation folder/Documents).
Thank you for marking the thread as answered if your question was answered :)
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Igor Sherer:
Thank you for your reply.
What is the different of coordionator and end device for program?
Is it written in GenericApp.c ?
In reply to kami:
There are a lot of differences, however most of them found inside Stack modules,
thus you shouldn't be troubled so much with this question (at least not now). :)
A good start point for you, at this moment, is the Z-Stack developer's guide, by reading it
you'll get the main idea, the differences and a lot of other stuff regarding ZigBee, Stack,
End devices, routers, coordinator and etc..
I don't know option settings.
For example, I don't the setting
Supress these Diagnostics: Pe001, Pa010
Is there the reference document about this ?
Try the Help tab in IAR EW (Guides like 8051 Embedded Workbench User Guide, etc...)
In " GenericApp.c" , it is written
This application sends "Hello World" to another "Generic" applicaiton every 15 Seconds.
The application will also receive "Hello World" packets.
Here, I have a question.
Where is written sending time "15 Seconds" ?
Probably, it indicates Timer program.
I think there is a minor mistake, the period should be 5 seconds, not 15, however this is not the point.
The answer you are looking for lies in the ZDO_STATE_CHANGE (search for it in GenericApp.c).
You'll find a call for scheduling an OSAL timer (which later invokes another event):
osal_start_timerEx( GenericApp_TaskID, GENERICAPP_SEND_MSG_EVT, GENERICAPP_SEND_MSG_TIMEOUT );
GENERICAPP_SEND_MSG_TIMEOUT defined in GenericApp.h and the value of this constant is 5000
(which means 5 seconds).
In order to better understand this function, please refer to "OSAL_API.pdf" document.
There is one more place the with the same call of this function, it is in GENERICAPP_SEND_MSG_EVT
event, where the event is basically reschedules itself.
I agree your responce.
I have more 2 questions.
See GenericApp.c .
I don't know global and local variables.
I think these variables are struct.
I would like to know these detail.
Where is the main function?
Is there in Zmain folder ?
1) Can you please specify the names of these variables?
2) The main function can be found in zmain.c, which is located in
Please tell me
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.