Page 1 of 1

Starting up - compiling the SID project?

Posted: Sun Nov 21, 2010 6:12 pm
by williamk
Guys, I'm starting up playing around with the XC1-A. (yes!!) I read the whole XC manual several times, while I waited for the board to arrive. ;-)

Now I want to test the SID emulator, but to be honest, I have no clue on what to do with the files, as they don't open with the XC Dev Desktop.

https://www.xcore.com/projects/xc-1-sid-emulator-demo

Any pointers would be most appreciated, just so I could play around with it a bit, hack the files, and learn a bit how they did the audio part.

My main project would be to create a very simple synth, them evolve from there. 8-)

I'm also working with the Arduino Mega, that's why I'm a bit lost on XC for now...

Wk

Re: Starting up - compiling the SID project?

Posted: Sun Nov 21, 2010 11:08 pm
by Bianco
Create a new project with XDE;
Copy all the files from the SID project to the new project directory;
Add the source files (.c and .xc) to your project (search for something like "add existing file to project").

I think this should work... i haven't verified.

Re: Starting up - compiling the SID project?

Posted: Mon Nov 22, 2010 12:23 pm
by paul
Have you tried contacting the project author?

Re: Starting up - compiling the SID project?

Posted: Mon Nov 22, 2010 2:38 pm
by lilltroll
I have compiled it several times under different XDE versions, just to play McGyver.
If you are stuck I can save it as a XC proj. for you.
I have to know which board you have. The original code was written for the (old) XC-1 card, I have both the new and the old one.
Have you check the ports? Using <plattform.h> can solve such issues automatically, but I'm note sure that's the case for the code.

I also played with higher order DeltaSigma (software) converter with dither. You/We should test it on the SID.
Listen to a sin-wave makes a sound with less non-harmonic dist. :D

PS. Yes you have the XC-1A board. DS

Re: Starting up - compiling the SID project?

Posted: Mon Nov 22, 2010 2:40 pm
by infiniteimprobability
Putting all of the files in a fresh project should do it - that's what I did a while back and it worked fine. Only thing to note is that optimisation needs to be turned up a bit (it's quite a full project memory-wise).

Project->Build Config->set active->Release does that..

Re: Starting up - compiling the SID project?

Posted: Mon Nov 22, 2010 6:32 pm
by williamk
Thanks guys, been the lazy guy that I am, I would love the project files for the newly XC1-A released. ;-) 8-) :geek:

Wk

Re: Starting up - compiling the SID project?

Posted: Tue Nov 23, 2010 8:59 am
by lilltroll
williamk wrote:Thanks guys, been the lazy guy that I am, I would love the project files for the newly XC1-A released. ;-) 8-) :geek:

Wk
OK, it's

File -> Import -> Existing Project into workspace -> {The second radio button} Select archived file

(O3) compile is included

You might have to press and hold the A button when you plug in the USB cable, since you want to boot in JTAG mode.

Re: Starting up - compiling the SID project?

Posted: Tue Nov 23, 2010 2:01 pm
by williamk
Thank you so much! It works perfectly. :mrgreen:

Wk