Si tu as une question au sujet du uTasker, ne pas hésiter de me la demander - j'essayera de répondre à toutes les questions aussi rapidement comme possible.
Here are details of how you can create a listening socket using uTasker:Hi oOZz
In response to your question sent in a direct email:1. uTasker is an operating system (OS or RTOS) with TCP/IP stack and also various drivers needed to be able to use the M5223X peripherals). It is delivered in the form of a demo project that can be built using CW (that is, it is delivered with a CW project). In the next service pack there will also be a GNU make file which allows a project to be built also with GCC and debugged using GDB (using Eclipse for example).
>> How do I create my own CW project. I have tried making a new project and adding various uTasker files but this gives loads of errors when I try to compile it. I have studied the uTasker tutorial but there is no explanation about how to create a new CW project. Am I going about it the wrong way?
2. The simplest method of making your own project is not to make a new CW project (although this is possible – see point 3) but to copy the directory \Applications\uTaskerV1.3. Rename it to the name of your project and open the CodeWarrior_M5223X directory in it and use the uTaskerV1.3.mcp project (if you want you can rename the project as well).
This should build as the uTaskerV1.3 project.
Then you can make any changes that you would like to make. For example removing parts that you don’t need and adding new tasks and files.
3. If you want to build a completely new project you will have to ensure that the CW is set up correctly.
You will need the following files in the project:
- M52235EVB_FLASH.lcf for the linker
- startup.s (mcf5223x_boot.s is only required by the boot project and so is not required in the application project). If you want to be able to upload your project over the web server you will need to have a build configuration using M5223_BOOT_APP_FLASH.lcf (see the demo project since it supports multiple configurations).
- M5223X.c This includes main() so that the assembler code can jump to the operating system.
- the uTasker directory for the operating system.
- the stack directory to be able to use the TCP/IP support
- An application part (this will depend on the task configuration and the main project configuration – these are defined in config.h and TaskConfig.h and app_hw_m5223x.h). For example TaskConfig.h defines that the project runs tasks called application(), debug() and possibly other too. The ones which are defined have to be somewhere in the project!
The processor target must be set to suit the M52233.
Access paths have to be set to suit the project (include files)
The C/C++ -Processor settings must include project defines (#define _M5223X #define _CODE_WARRIOR #define _CODE_WARRIOR_CF) are required for the uTasker project for the M5223X.
This means that setting up a project does require knowledge of how CW works as well as various details of the project itself, and so can be a little complicated.
For this reason it is certainly simpler to follow suggestion 2 because the CW project is then already set up to run, and you can concentrate on your own application code rather than studying how CW operates.
Note that the uTasker tutorial doesn’t explain how to create a CW project since there are details about this in the CW help. The uTasker supplies the necessary CW project so it is normally not necessary to understand the CW details to be able to use the uTasker and also to modify the demo project for your own applications.
I hope that this helps you.
Regards
Mark