Starting up - compiling the SID project?

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

Starting up - compiling the SID project?

Post 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


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
Contact:

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

Post by paul »

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: 956
Joined: Fri Dec 11, 2009 3:53 am
Location: Sweden, Eskilstuna

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

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

Post 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
Wusik Dot Com (http://www.Wusik.com)
William-K.com (http://www.William-K.com)
User avatar
lilltroll
XCore Expert
Posts: 956
Joined: Fri Dec 11, 2009 3:53 am
Location: Sweden, Eskilstuna

Post 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.
Attachments
SID_XC-1A.zip
SID for the XC-1A
(843.79 KiB) Downloaded 265 times
SID_XC-1A.zip
SID for the XC-1A
(843.79 KiB) Downloaded 265 times
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

Post by williamk »

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

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