cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
filleellif1987
Visitor
Visitor
2,931 Views
Registered: ‎05-19-2010

Problem with µC/OS-II and µBlaze.

Hi,

 

I'm having a problem, when I try to build a software platform as described in the µC/OS-II application note. This is my libgen log:

 

Release 11.5 - libgen Xilinx EDK 11.5 Build EDK_LS5.70
 (nt)
Copyright (c) 1995-2009 Xilinx, Inc.  All rights reserved.

Command Line: libgen -hw C:/Test/microblaze/SDK/SDK_Export/hw/microblaze.xml -pe
microblaze_0 -od . -lp C:/edk_user_repository -lp
C:/Test/microblaze/SDK/SDK_Export -log libgen.log Test5.mss

INFO:EDK:1740 - List of peripherals connected to processor instance
   microblaze_0:
  - Generic_GPIO
  - Generic_GPIO_1
  - Generic_SPI
  - LEDS
  - Push_Buttons
  - RS232
  - dlmb_cntlr
  - ilmb_cntlr
  - mdm_0
  - xps_intc_0
  - xps_timer_0

Staging source files.
Running DRCs.
uC/OS-II DRC ...
Running generate.
Running post_generate.
Running include - 'make -s include "COMPILER=mb-gcc" "ARCHIVER=mb-ar"
"COMPILER_FLAGS=-mno-xl-soft-mul -mxl-pattern-compare -mcpu=v7.20.d  -O2 -c"
"EXTRA_COMPILER_FLAGS=-g"'.

cp: cannot create regular file `../../../include/os_cpu.h': Permission denied
make[1]: *** [standalone_includes] Error 1
make[1]: Target `include' not remade because of errors
ERROR:EDK:368 -  make failed for target "include"
ERROR:EDK:1189 - Error(s) while running "make" for processor microblaze_0.

make: *** [microblaze_0/lib/libxil.a] Error 2
make: Target `all' not remade because of errors.

 

 

It seems that I don't have permission to write the os_cpu.h file, but I don't understand why? Can anyone please help??

 

I'm using Windows 7 x86 and EDK11.5.

 

Best regards,

Kristoffer.

0 Kudos
2 Replies
centaur19
Xilinx Employee
Xilinx Employee
2,874 Views
Registered: ‎08-01-2007

Kristoffer,

 

Based on the error, it might be a file permission problem. Can you check your read/write permissions on the project folder and all its sub-folders?

 

Alternatively, you may not have the file that is being copied. This looks like a file from the uC/OS-II source files.If you do have the file, then it is likely not in the right location. The embedded system tools reference manual, available in the doc center will help you locate your files in the right location.

 

In addition, there are a couple of things here

 

1. You are using Windows 7. EDK has not been tested on this OS. It is unclear what the behavior of Cygwin and its libs would be .

 

2. Where did you get the uC/OS-II BSP from? Xilinx does not provide these libraries and hence the support will be from third party vendors.

 

Hope this helps...

 

0 Kudos
filleellif1987
Visitor
Visitor
2,861 Views
Registered: ‎05-19-2010

Thx for your reply.

 

I can assure that it is not a Windows 7 issue because other students from my university succesfully have implemented µC/OS-II in their Microblaze using Windows 7. So far EDK works great with Windows 7.

 

I agree that it looks like a write permission issue. The strange thing though is that the file (os-cpu.h) actually IS copied to the appropiate location even though this error appears. I have no experience with cygwin at all but I have tried to do stuff there too - no luck. In a month my project has to be done so for now I have just written a simple scheduler but I would like to use µC/OS.

 

The BSP I got from Micrium who makes µC/OS-II and I followed the AN step by step so I am pretty sure that is not the issue either.

 

I am really confused and would appreciate any help.

 

Thanks in advance.

Kristoffer

0 Kudos