Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

Cygnal 8051 port compilation issue

Posted by Nobody/Anonymous on November 20, 2004
Using the makefile the following error is encountered

C:\Dev\FreeRTOS\Demo\Cygnal>make
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
Fatal: '..\..\Source\tasks.rel' does not exist - don't know how to make it

snapshot SDCC NOV/2004 was used and the project files and directories were installed in C:\Dev\FreeRTOS

Thanks for your support
athari9@telus.net


RE: Cygnal 8051 port compilation issue

Posted by Richard on November 20, 2004
Hi,

Using Borland's make does not seem to work. I just tried it and got exactly the same error. Using the UNX Utils version works fine. See:

http://unxutils.sourceforge.net/

Make sure the UNX Utils version of make appears in your PATH before the Borland version.

Regards.

RE: Cygnal 8051 port compilation issue

Posted by Nobody/Anonymous on November 21, 2004
Thanks for the quick reponse.
I tried GNU MAKE 3.75 and UNX MAKE for windows and this is the error I get in both cases

11/20/2004 02:42 PM <DIR> .
11/20/2004 02:42 PM <DIR> ..
11/20/2004 02:27 PM 37,317 8051rtos.wsp
05/04/2004 08:19 AM 27,090 c8051f120.h
11/20/2004 01:59 PM 16,594 main.c
11/21/2004 12:15 AM 3,065 Makefile
11/17/2004 02:17 PM <DIR> ParTest
11/20/2004 02:30 PM 36,898 sdcc.wsp
11/20/2004 02:01 PM <DIR> serial
5 File(s) 120,964 bytes
4 Dir(s) 23,118,036,992 bytes free

C:\Dev\FreeRTOS\Demo\Cygnal>make
make: *** No targets specified and no makefile found. Stop.

As you can see the makefile is in the directory.
Your help is greatly appriciated.

Adam

RE: Cygnal 8051 port compilation issue

Posted by Richard on November 21, 2004
That is very odd. If you type "make --v" what do you get. My output is as:

GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

If you are using the same version I cannot see any reason why it would think the makefile was not there.

Some thoughts:

Could it be that it does not like the capital 'M' in Makefile. Try making it a lower case 'm'.

Try specifiying the file to make, as in "make --makefile=Makefile" - maybe even with the path also.

Which host operating system are you using? I am using Win2k.




RE: Cygnal 8051 port compilation issue

Posted by Nobody/Anonymous on November 21, 2004
Hi,

Results:
1) make -v
C:\Dev\FreeRTOS\Demo\Cygnal>make -v
GNU Make version 3.75, by Richard Stallman and Roland McGrath.
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96
Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to <bug-gnu-utils@prep.ai.mit.edu>.


C:\Dev\FreeRTOS\Demo\Cygnal>

2)Tried changing Makefile to makefile.
No differrence

3)Tried "make --makefile=Makefile"
C:\Dev\FreeRTOS\Demo\Cygnal>make --makefile=makefile
sdcc -c --model-large -I. -I..\Common\include -I..\include -I..\..\Source\includ
e -DSDCC_CYGNAL --debug --less-pedantic --xram-size 8448 --stack-auto --no-peep
--int-long-reent --float-reent ..\..\Source\tasks.c
-:0: error 4: 'fopen' failed on file '....Sourcetasks.c'
make: *** [..\..\Source\tasks.rel] Error 1

C:\Dev\FreeRTOS\Demo\Cygnal>

5) Using Windows XP

We are getting closer but no cigar.
Thanks.
Adam

RE: Cygnal 8051 port compilation issue

Posted by Richard on November 21, 2004
Hmm. Still strange. It seems to be taking Sourcetasks.c as a single file, rather than Source\Tasks.c. XP should not care which way round the slashes go.

I will not be able to test on an XP machine until tomorrow unfortunately as I don't have one available here.

What happens if you run the command line manually rather than through make?

---------
sdcc -c --model-large -I. -I..\Common\include -I..\include -I..\..\Source\includ
e -DSDCC_CYGNAL --debug --less-pedantic --xram-size 8448 --stack-auto --no-peep
--int-long-reent --float-reent ..\..\Source\tasks.c
---------

If this builds the single file ok then the finger still points at make. If this has the same problem then make is probably ok now. If this works then maybe you could convert the makefile into a batch file until I have a change to try it under XP.

Regards,
Richard.

RE: Cygnal 8051 port compilation issue

Posted by Nobody/Anonymous on November 22, 2004
Hi Richard,
Calling the compiler directly seems to work. Tasks.c was built with no difficulty.
Thanks for your help and I'll wait for your update.

Cheers
Adam


RE: Cygnal 8051 port compilation issue

Posted by Richard on November 22, 2004
I just tried:

- putting unx tools, the latest FreeRTOS release, and SDCC onto a clean (i.e. never installed before) XP machine.

- Opening up a command prompt and from there adding the unx tools and sdcc paths to the PATH environment variable as the first two paths in the list.

- Navigating to the Cygnal directory and typing 'make'.

The demo built with no errors or warnings.

This is a puzzle but seems to be something related only to your machine. Could you try the 3.80 version of make?

Regards.

RE: Cygnal 8051 port compilation issue

Posted by Nobody/Anonymous on December 16, 2004
i am having iar c cross compiler can i use

RE: Cygnal 8051 port compilation issue

Posted by Richard on December 16, 2004
Each port requires a particular device and a particular compiler. As each compiler uses memory in a different way and generates different code sequences it is unlikely that you would be able to use the IAR compiler without some porting effort.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists