File in uCOS-II (Shao Beibei)-use Borland C4.5 to compile the ucosii Process

Source: Internet
Author: User

File in uCOS-II (Shao Beibei) -- use Borland C4.5 to compile the ucosii Process

1. Is the IDE Borland C ++ v3.1 or Borland C ++ v4.5?

The code attached to the book Shao Beibei in uCOS-II shows Borland C ++ v4.5, which is relatively easy to operate by the author. Download here: http://www.cndzz.com/download/371_0/32293.html

 

Ii. bc45 uCOS-II compilation process

UCOS-II compilation process in bc45
After a day of hard work, I finally compiled the first ucoⅱ example under bc45. Now I want to explain the process as follows to cainiao like me.
1. decompress the ucos_ii source code to the C root directory to form the software folder.
2. Install bc45 in the root directory of the C drive to form the bc45 folder.
3. Copy the include. H, PC. H, ucos_ii.h, OS _cfg.h, and OS _cpu.h files to the bc45/include folder.
4. Modify include. h:
// # Include "/software/uCOS-II/ix86l/OS _cpu.h"
// # Include "OS _cfg.h"
// # Include "/software/blocks/PC/source/PC. H"
// # Include "/software/uCOS-II/source/ucos_ii.h"
# Include "C:/bc45/include/OS _cpu.h"
# Include "C:/bc45/include/OS _cfg.h"
# Include "C:/bc45/include/PC. H"
# Include "C:/bc45/include/ucos_ii.h"
5. Create an engineering file IDE in bc45 environment and select DOS mode
6. Add the following files to the project file:
Software/ucos_ii/ix86/OS _cpu_a.asm
Software/ucos_ii/ix86/OS _cpu_c.c
Software/ucos_ii/exclux86l/bc45/source/test. c
Software/blocks/PC/bc45/PC. c
Software/ucos_ii/source/ucos_ii.c
7. Compile and run (from: http://www.dzsc.com/dzbbs/20070111/200765201510343411.html)

 

Iii. troubleshooting:

Report: cocould not locate: tasm. EXE.

Solution:

1. Install Borland tasm5.0 to C:/tasm (run install. EXE installation requires you to enter the installation partition first, followed by the installation path, preferably C:/tasm, and then some installation options, which can be used by default)
2. Right-click my computer ---> properties ---> advanced ---> environment variable ---> the "environment variable" dialog box is displayed.
3. Find the path in the "user variables" list and add "; C:/tasm/bin;" at the end of the variable value (it is possible that the installer has already added it)

4. Compile
Menu project ---> compile/make all/build all, or click the button on the toolbar
The compilation result has many warnings, but there are no errors. Therefore, you can run the experiment program normally ~

You can also refer to the following website, it gives the method to generate Lib: http://hi.baidu.com/zys2049/blog/item/6d43c6f38f3271c30b46e02a.html/cmtid/299e1f397d198bfe3a87ce11

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.