CooCox CoOS User's Guide
CooCox CoOS User's Guide
CooCox CoOS User's Guide
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
espectively which used to storing header files and source files;<br />
4> Copy files to the project directory:<br />
(1)Copy LPC17xx.h and system_LPC17xx.h in the directory of<br />
Demo\Sample\CMSIS in 'The first <strong>CoOS</strong> Program' package to the 'inc' folder,<br />
copy system_LPC17xx.c and startup_LPC17xx.s(the startup code of LPC17xx)<br />
to the 'src' folder;<br />
(2)Copy config.h in Source folder to the 'inc' folder, copy main.c in the<br />
directory of Demo\Sample to the 'src' folder;<br />
(3)Copy LED.c, Retarget.c, Serial.c in the directory of Demo\Sample\driver<br />
to the 'src' folder, copy serial.h, led.h to the 'inc' folder;<br />
(4)Copy all the files in the directory of Source\kernel and<br />
Source\portable\Keil (except .h files)to the 'ccrtos' folder, copy all the .h files<br />
to the 'inc' folder.<br />
1.2.2 Create Project<br />
1> Create an empty project used MDK software, device selects LPC1766 of NXP<br />
(do not choose the default startup code);<br />
2> Add application-driven code to the project:<br />
Add all the source files in 'src' folder to the project;<br />
3> Add <strong>CoOS</strong> source code to the project:<br />
Add all the source files in the 'ccrtos' folder to the project(Header files do not<br />
contain);<br />
4> Project Configuration<br />
Make the appropriate configuration to the project, add include path .\inc in<br />
C/C++. After that you should have been able to compile successfully, if not,<br />
please check whether the steps and the settings are correct.<br />
(If you would like to use first rather than do the work above to save<br />
your time, you can use our ready-made project that we have prepared<br />
for you, the storage path is \Demo\getting_start_sample)<br />
4