Compile UCOS-II under Linux (Fedora Core 2)!

xiaoxiao2021-03-06  52

First download the transplant under Linux from the UC / OS-II, and then decompressed the compressed package with Tar -XZVF. 1 Find Linux-Test first, you can see a Makefile in its directory, then Make is definitely not pass. Because I haven't copied UC / OS-II source files yet. 2 Locate the UCOS-II directory, there are two directory below: one is ports, this is the placement file; the other directory is very long, and it changes it into Source. Copy the source file of UC / OS-II to the Source directory, pay attention to all lowercase, the extension is also. 3 Modify UCOS_II.c under the Source directory, remove all the paths in #include "/software/os_sem.c", become such a #include "os_sem.c" 3 Back to Linux-Test directory, modify makefile, put GCC-3.3 is changed to GCC. 4 Modify the incrudes.h under the Linux-Test directory, remove the comment before the heads #include before. It should be compiled again and should be passed. However, it is not known to the problem of transplantation, or the application problem, the transplantation under Linux is not working properly, and "Segment Employment" and "Floating Point Exception" will appear for a while. If you have time recently, I will study what is going on.

转载请注明原文地址:https://www.9cbs.com/read-83946.html

New Post(0)