Starting up - compiling the SID project?

New to XMOS and XCore? Get started here.
User avatar
williamk
Experienced Member
Posts: 114
Joined: Fri Oct 01, 2010 7:47 pm

Starting up - compiling the SID project?

Postby williamk » Sun Nov 21, 2010 6:12 pm

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.

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
Wusik Dot Com (http://www.Wusik.com)
William-K.com (http://www.William-K.com)
User avatar
Bianco
XCore Expert
Posts: 754
Joined: Thu Dec 10, 2009 6:56 pm

Postby Bianco » Sun Nov 21, 2010 11:08 pm

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.
User avatar
paul
XCore Addict
Posts: 169
Joined: Fri Jan 08, 2010 12:13 am

Postby paul » Mon Nov 22, 2010 12:23 pm

Have you tried contacting the project author?
Paul

On two occasions I have been asked, 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
User avatar
lilltroll
XCore Expert
Posts: 955
Joined: Fri Dec 11, 2009 3:53 am
Location: Sweden, Eskilstuna

Postby lilltroll » Mon Nov 22, 2010 2:38 pm

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
Probably not the most confused programmer anymore on the XCORE forum.
User avatar
infiniteimprobability
XCore Legend
Posts: 1124
Joined: Thu May 27, 2010 10:08 am

Postby infiniteimprobability » Mon Nov 22, 2010 2:40 pm

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..
User avatar
williamk
Experienced Member
Posts: 114
Joined: Fri Oct 01, 2010 7:47 pm

Postby williamk » Mon Nov 22, 2010 6:32 pm

Thanks guys, been the lazy guy that I am, I would love the project files for the newly XC1-A released. ;-) 8-) :geek:

Wk
Wusik Dot Com (http://www.Wusik.com)
William-K.com (http://www.William-K.com)
User avatar
lilltroll
XCore Expert
Posts: 955
Joined: Fri Dec 11, 2009 3:53 am
Location: Sweden, Eskilstuna

Postby lilltroll » Tue Nov 23, 2010 8:59 am

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.
You do not have the required permissions to view the files attached to this post.
Probably not the most confused programmer anymore on the XCORE forum.
User avatar
williamk
Experienced Member
Posts: 114
Joined: Fri Oct 01, 2010 7:47 pm

Postby williamk » Tue Nov 23, 2010 2:01 pm

Thank you so much! It works perfectly. :mrgreen:

Wk
Wusik Dot Com (http://www.Wusik.com)
William-K.com (http://www.William-K.com)

Who is online

Users browsing this forum: No registered users and 0 guests