preenfm Forum

PreenFM => preenfm2 and preenfm3 => Topic started by: funkyfli on December 30, 2014, 11:54:58 PM

Title: Compile Toolchain
Post by: funkyfli on December 30, 2014, 11:54:58 PM
Hi Xavier,
  probably a stupid question, but where can I find the setup information for the compile toolchain for Windows?  I've been searching for a while...

Thanks,
  Martin
Title: Re: Compile Toolchain
Post by: funkyfli on January 01, 2015, 01:21:31 PM
tools here: https://launchpad.net/gcc-arm-embedded/+download

Other stuff that can be installed...?  (If you are missing a make) (I didn't use - but looks helpful)
guide to install stuff etc: http://www.jann.cc/2013/10/10/embedded_development_with_open_source_tools_on_windows.html#build-a-simple-hello-world-program-with-gcc
Title: Re: Compile Toolchain
Post by: Xavier on January 01, 2015, 02:57:45 PM

Hi Martin,

Thanks fo your reply to your question  ;)
Seems like i'm too late and that you've found everything.

My answer would actually be to use https://launchpad.net/gcc-arm-embedded
But i've never compiled the firmware under windows so i have not a clear idea of all the required tools.

With MacOS or Linux, it's really straightforward, let me know how it goes under Windows.

Happy hacking and happy new year,

Xavier
Title: Re: Compile Toolchain
Post by: funkyfli on January 01, 2015, 03:56:04 PM
You're welcome.  ;D

Windows setup was very easy with the gcc-arm-embedded executable.  (Especially, after setting up the Shruthi environment.)  I had the other stuff already installed.

The compile worked fine with a number of warnings for the USB host code.  The recompiled code is slightly smaller than the downloadable p2_106o.bin file. (probably due to the new compiler version?)  Everything seems good on my initial tests.  Now off to break it!  :)

Happy New Year!

Martin.
Title: Re: Compile Toolchain
Post by: funkyfli on January 03, 2015, 06:45:18 PM
Spoke too soon.  :(  After first thinking my hacking damaged the firmware, I realized, that when I compile both the pfm and pfmo firmware on the latest gnu tools, I get a nasty high-frequency distortion on the waveforms.  It's only really very evident on the sine wave.  I'm going to try an older gnu tools version...
Title: Re: Compile Toolchain
Post by: funkyfli on January 03, 2015, 07:22:53 PM
Well, 4.8 had the same issue and created bin files at 300kB.  But, 4.7 has a clean sounding sine wave.  I used the last release which created a slightly larger file... https://launchpad.net/gcc-arm-embedded/4.7/4.7-2013-q3-update   Which version are you using?

Thanks.
Title: Re: Compile Toolchain
Post by: Xavier on January 04, 2015, 10:04:16 AM

The GCC installed on my main build Linux machine is :
gcc version 4.7.3 20121207 (release) [ARM/embedded-4_7-branch revision 194305] (GNU Tools for ARM Embedded Processors)

I never made the switch to 4.8.
Don't know what the problem is. What you describe is not really something expected.

What kind of hack did you do ?

Xavier
Title: Re: Compile Toolchain
Post by: funkyfli on January 04, 2015, 04:34:23 PM
Thanks.  I got the 'aliasing' type sound without any hacks.  I re-downloaded your code to be certain.   
The hacks create oscillators out of the step sequencers and envelope 8 which could easily create havoc.  I get clean sine waves with the hacks and 4.7.  :)