Hi Don,

If you'd like to make some progress, try these steps.

Stop doing anything with cygwin.

Go to the sdcc site on sourceforge and download the windows installer for sdcc:
http://sourceforge.net/projects/sdcc/?source=directory

Just click on the green button that says 'Download'.

Save the sdcc installer file to your local drive and run the installer, accept 
the defaults.

Make sure you make a note of what folder sdcc was installed into, such as 
c:\programs\sdcc or c:\programs (x86)\sdcc.

Open Silabs IDE and click on Project, Tool Chain Integration, then near the 
top, select
 the drop box arrow next to Preset Name.  Select preset name sdcc 3.x 
read only and press enter.  Click on each of the three tabs, assembler, 
compiler, and linker, and verify the path and program names are correct.  

Next, start a new project, and add a new file.  Select the radio button for 'C 
Source File', and click OK.  In the new file type something simple like:

void main(void)
{

}

and save the file.   

At this point, you should be able to compile the program for sdcc from within 
Silabs. Click on Project, Build/Make, to start compiling.

I just did the above steps and the program compiled and linked successfully.

Good luck!

Rich.

--- On Fri, 1/4/13, jpo...@hetnet.nl <jpo...@hetnet.nl> wrote:

From: jpo...@hetnet.nl <jpo...@hetnet.nl>
Subject: Re: [Sdcc-user] Fw:  Silabs IDE
To: sdcc-user@lists.sourceforge.net
Date: Friday, January 4, 2013, 5:20 PM


 
 


Hello Don,
 
I have no experience with CYGWIN so can't help you there. Why do'nt you run 
SDCC in Silabs IDE under Windows 7 ?
 
regards 
 
Co   



From: iTronix [mailto:itro...@mymts.net]
Sent: Fri 12/28/2012 4:19 PM
To: sdcc-user@lists.sourceforge.net
Subject: [Sdcc-user] Fw: Silabs IDE



HI Guys
Thank you for your input. I think part of the problem is that I am trying to 
run the Silab IDE and the SDCC compiler on a Windows 7 machine and I have no 
idea how to use cygwin. I have installed cygwin and can open the little black 
window with the command prompt. After that I have no idea what to do? I know 
nothing about linix. I do not understand how you can run a Linix program  like 
SDCC inside a windows 7 programs like Silab IDE?
 
The contents of the file cyglink.txt file is the following:
 

"C:\Users\Don\Documents\iTech\DTMF Project\DTMF SDCC 
Code\generator\dtmfgen.obj"  TO( "C:\Users\Don\Documents\iTech\DTMF 
Project\DTMF SDCC Code\generator\DTMF Generator SDCC" ) RS(256) PL(68) PW(78) 
LIBPATH(C:\Program Files (x86)\SDCC\lib) 
This file is created when I run the SDCC compiler in the Silabs IDE.
 
Any more help would be much appreciated. Remember I am a Newbie to compiling. 
The last time I did microcontroller development work we were using assembler 
language.
THANX Don Voth




From: jpo...@hetnet.nl 
Sent: Friday, December 28, 2012 8:03 AM
To: sdcc-user@lists.sourceforge.net 
Subject: Re: [Sdcc-user] Silabs IDE



I'm using the sdcc with SILABS IDE for several years now and never encountered 
a problem with SDCC. 
 
Regards 
 
Co poppe




From: Rich Bayless [mailto:richard.bayl...@att.net]
Sent: Tue 12/25/2012 7:19 PM
To: sdcc-user@lists.sourceforge.net
Subject: Re: [Sdcc-user] Silabs IDE






--- On Mon, 12/24/12, Raphael Neider <rnei...@web.de> wrote:


From: Raphael Neider <rnei...@web.de>
Subject: Re: [Sdcc-user] cygwin??
To: sdcc-user@lists.sourceforge.net
Date: Monday, December 24, 2012, 8:11 PM


Hi iTronix, 
 






sdcpp.exe: fatal error: when writing output to : No error
at 1: warning 119: don't know what to do with file 'DB'. file extension 
unsupported
at 1: warning 119: don't know what to do with file 'OE'. file extension 
unsupported
at 1: warning 119: don't know what to do with file 'QUIET'. file extension 
unsupported
at 1: warning 119: don't know what to do with file 'INTXD'. file extension 
unsupported
at 1: warning 119: don't know what to do with file 'OT(6,Speed)'. file 
extension unsupported
at 1: warning 119: don't know what to do with file 
'PIN(C:\SiLabs\MCU\Inc;C:\Program'. file extension unsupported
at 1: warning 119: don't know what to do with file 'Files'. file extension 
unsupported
at 1: warning 119: don't know what to do with file '(x86)\SDCC\inc;C:\Program'. 
file extension unsupported
at 1: warning 119: don't know what to do with file 'Files'. file extension 
unsupported
at 1: warning 119: don't know what to do with file '(x86)\SDCC\inc\51)'. file 
extension unsupported




This looks weird -- symbols from the C source / .asm output interpreted as 
filenames? Might be due to some problems with pipes between preprocessor, 
compiler, assembler, and linker in cygwin. If I remember correctly, this at one 
time was indeed a problem -- unfortunately I do not remember the solution (or 
workaround). You might try searching the mailing list archive or the web for 
"pipe cygwin" and your Windows version (XP?).


Could you post Windows version, exact command line, command line and output 
with -V (capital Vee) added? If you pass complete filenames, you might need to 
quote them ("Program Files (x86)" is otherwise treated as three files ...).
Sorry, I have no clue as to how to do this with Silabs IDE. Could you run sdcc 
from the command line / cygwin shell directly and report the results?
 




c8051f300.h:15: syntax error: token -> 'P0' ; column 6
Link in progress...
C:\Program Files (x86)\SDCC\bin\sdcc.exe @"C:\Users\Don\Documents\iTech\DTMF 
Project\DTMF SDCC Code\generator\cyglink.txt"
 
at 1: warning 119: don't know what to do with file 
'@C:\Users\Don\Documents\iTech\DTMF Project\DTMF SDCC 
Code\generator\cyglink.txt'. file extension unsupported


The leading "@" confuses me. Maybe the above hints help to sort this out as 
well ... What's the contents of cyglink.txt? Is this file generated by the IDE 
or hand-written?


Kind regards and Merry Christmas,
Raphael
========================

Hello,

(Note, this question probably should have been directed to the Silabs forums.)

This is the first time I've heard of people using Silicon Labs IDE with sdcc, 
so I downloaded and installed the Silabs IDE program, in Win XP.  The default 
toolchain settings calls Ride, using these commands:

DB OE QUIET INTXD OT(6,Speed) PIN(C:\SiLabs\MCU\Inc;C:\RIDE\inc;C:\RIDE\inc\51)

sdcpp doesn't know what to do with these commands, since they are targeted for 
rc51.

In Silabs IDE, click on Project, Tool Chain Integration, then select the drop 
box down arrow under Tool Definition Presets, and select SDCC 3.xx.  Then 
browse to find where SDCC is installed. 

Hope this helps!

Rich.

-----Inline Attachment Follows-----


_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user




------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812 



_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

-----Inline Attachment Follows-----

------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
-----Inline Attachment Follows-----

_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user
------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to